Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

file 24 lines (18 sloc) 0.444 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
require 'iron_cache'
require 'uber_config'
require 'yaml'
require 'open-uri'

class ConfigPusher
  def push

    @config = UberConfig.load
    puts @config.to_yaml

    c = IronCache::Client.new
    cache = c.cache("configs")
    item = cache.put(@config['app_name'], @config.to_yaml)
    p item

    url = cache.url(@config['app_name'])
    puts "url: #{url}"
    url_with_token = url + "?oauth=#{c.token}"
    puts url_with_token


  end
end
Something went wrong with that request. Please try again.