Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (18 sloc) 502 Bytes
require 'iron_cache'
require 'uber_config'
require 'yaml'
require 'open-uri'
class ConfigPusher
def push
@config = UberConfig.load
puts @config.to_yaml
c =['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}"
#puts url_with_token
puts `heroku config:add CONFIG_CACHE_KEY=#{url_with_token}`
Something went wrong with that request. Please try again.