Module: UberConfig::Pusher
- Defined in:
- lib/uber_config/pusher.rb
Class Method Summary collapse
Class Method Details
.push ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/uber_config/pusher.rb', line 15 def self.push config = UberConfig.load raise "Config needs an app_name field." unless config['app_name'] c = IronCache::Client.new(config['iron']) cache = c.cache("configs") item = cache.put(config['app_name'], config.to_yaml) p item url = cache.url(config['app_name']) url_with_token = url + "?oauth=#{c.token}" url_with_token end |
.push_heroku ⇒ Object
29 30 31 32 33 34 35 |
# File 'lib/uber_config/pusher.rb', line 29 def self.push_heroku url_with_token = push #puts url_with_token puts `heroku config:add CONFIG_CACHE_KEY=#{url_with_token}` end |