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
- Fork it ( https://github.com/[my-github-username]/sugoi_aliases_updator/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request