Mercurial > rsstweet
comparison 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 |
comparison
equal
deleted
inserted
replaced
134:3646b3e319c7 | 135:3fc882b0884d |
---|---|
1 $cfg = { | 1 $cfg = { |
2 :twitter0 => { | 2 :twitter => [ |
3 :consumer_key => ENV["RT_CONSUMER_KEY"], | 3 { |
4 :consumer_secret => ENV["RT_CONSUMER_SECRET"], | 4 :consumer_key => ENV["RT_CONSUMER_KEY"], |
5 :access_token => ENV["RT_ACCESS_TOKEN"], | 5 :consumer_secret => ENV["RT_CONSUMER_SECRET"], |
6 :access_token_secret => ENV["RT_ACCESS_TOKEN_SECRET"] | 6 :access_token => ENV["RT_ACCESS_TOKEN"], |
7 }, | 7 :access_token_secret => ENV["RT_ACCESS_TOKEN_SECRET"], |
8 }, | |
9 ], | |
8 :redis_server => ENV["RT_REDIS_SERVER"] | 10 :redis_server => ENV["RT_REDIS_SERVER"] |
9 } | 11 } |
10 | 12 |
11 config_local = File.expand_path("../config_local_#{Rails.env}.rb", __FILE__) | 13 config_local = File.expand_path("../config_local_#{Rails.env}.rb", __FILE__) |
12 | 14 |