Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ライブラリの指定方法を環境変数を使わずにやりたい #2

Open
fkfk opened this issue Feb 5, 2010 · 3 comments
Open
Labels

Comments

@fkfk
Copy link
Collaborator

fkfk commented Feb 5, 2010

現在は ENV['notify'] にライブラリを指定していますが、例えば Notify.setup というメソッドを準備してそこで指定するのはどうでしょう。

Notify.setup :library => 'growlruby'

ホストやポートの設定も出来ると嬉しい人がいるかもです。現状ホストもポートもデフォルトだけですし。

Notify.setup :host => 'hogehoge', :port => '12345'

@jugyo
Copy link
Owner

jugyo commented Feb 5, 2010

いいですねぇ。
ちょっと実装を考えてみます。
というかすでに考えてたりします?

@fkfk
Copy link
Collaborator Author

fkfk commented Feb 5, 2010

実は手元に実装しかけたのがあったりします。
イケてない部分も多々あるのですが、とりあえず動きそうです。
別ブランチでやっているので、ちゃんと動くの確認したらpushしますね。

@fkfk
Copy link
Collaborator Author

fkfk commented Feb 5, 2010

動くものをpushしました。
本当はホスト指定とかポート指定とかも出来るようにしていたのですが、ちょっとまだ考え中です。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants