class Figaro::CLI::HerokuSet
Public Instance Methods
run()
click to toggle source
# File lib/figaro/cli/heroku_set.rb, line 6 def run system(env, command) end
Private Instance Methods
command()
click to toggle source
# File lib/figaro/cli/heroku_set.rb, line 12 def command "heroku config:set #{vars} #{for_app} #{for_remote}" end
for_app()
click to toggle source
# File lib/figaro/cli/heroku_set.rb, line 16 def for_app options[:app] ? "--app=#{options[:app]}" : nil end
for_remote()
click to toggle source
# File lib/figaro/cli/heroku_set.rb, line 20 def for_remote options[:remote] ? "--remote=#{options[:remote]}" : nil end
var(key)
click to toggle source
# File lib/figaro/cli/heroku_set.rb, line 28 def var(key) Gem.win_platform? ? %(#{key}="%#{key}%") : %(#{key}="$#{key}") end
vars()
click to toggle source
# File lib/figaro/cli/heroku_set.rb, line 24 def vars configuration.keys.map { |k| var(k) }.join(" ") end