No commit activity in last 3 years
No release in over 3 years
/etc/aliases uppdator.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.9
>= 0
~> 10.0
>= 0
 Project Readme

SugoiAliasesUpdator

/etc/aliasesなファイルを読み込んで追加削除した結果を標準出力に出す。

Installation

gem i sugoi_aliases_updator

Requirement

'ruby' >= '1.9'

Usage

add, rm(del), list(show)のみ。

$ cat /etc/aliases
www:            root, n905i.1214@gmail.com
ftp-bugs:       root
postfix:        root, n905i.1214@gmail.com
$ sugoi_aliases_updator /etc/aliases add test@exmple.net TO=www
www:            root, n905i.1214@gmail.com, test@exmple.net
ftp-bugs:       root
postfix:        root, n905i.1214@gmail.com
$ sugoi_aliases_updator /etc/aliases rm n905i.1214@gmail.com FROM=www,postfix
www:            root
ftp-bugs:       root
postfix:        root
$ sugoi_aliases_updator /etc/aliases list n905i.1214@gmail.com
www,postfix

Contributing

  1. Fork it ( https://github.com/[my-github-username]/sugoi_aliases_updator/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request