SugoiAliasesUpdator

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

Installation

gem 'sugoi_aliases_updator'

Requirement

'ruby' >= '1.9'

Usage

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

$ cat /etc/aliases
www:            root, [email protected]
ftp-bugs:       root
postfix:        root, [email protected]
$ sugoi_aliases_updator /etc/aliases add [email protected] TO=www
www:            root, [email protected], [email protected]
ftp-bugs:       root
postfix:        root, [email protected]
$ sugoi_aliases_updator /etc/aliases rm [email protected] FROM=www,postfix
www:            root
ftp-bugs:       root
postfix:        root
$ sugoi_aliases_updator /etc/aliases list [email protected]
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