Mercurial > rsstweet
diff config/config_init.rb @ 135:3fc882b0884d
Refactored client initialization
author | nanaya <me@nanaya.pro> |
---|---|
date | Wed, 13 Dec 2017 02:51:27 +0900 |
parents | f76d44baa3dc |
children |
line wrap: on
line diff
--- a/config/config_init.rb Wed Dec 13 02:28:34 2017 +0900 +++ b/config/config_init.rb Wed Dec 13 02:51:27 2017 +0900 @@ -1,10 +1,12 @@ $cfg = { - :twitter0 => { - :consumer_key => ENV["RT_CONSUMER_KEY"], - :consumer_secret => ENV["RT_CONSUMER_SECRET"], - :access_token => ENV["RT_ACCESS_TOKEN"], - :access_token_secret => ENV["RT_ACCESS_TOKEN_SECRET"] - }, + :twitter => [ + { + :consumer_key => ENV["RT_CONSUMER_KEY"], + :consumer_secret => ENV["RT_CONSUMER_SECRET"], + :access_token => ENV["RT_ACCESS_TOKEN"], + :access_token_secret => ENV["RT_ACCESS_TOKEN_SECRET"], + }, + ], :redis_server => ENV["RT_REDIS_SERVER"] }