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
- 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