Class: Chamber::Commands::Heroku::Push

Inherits:
Base
  • Object
show all
Includes:
Chamber::Commands::Heroku, Securable
Defined in:
lib/chamber/commands/heroku/push.rb

Instance Method Summary collapse

Methods included from Chamber::Commands::Heroku

#initialize

Methods included from Securable

#initialize

Methods inherited from Base

call, #initialize

Instance Method Details

#callObject



12
13
14
15
16
17
18
19
20
21
# File 'lib/chamber/commands/heroku/push.rb', line 12

def call
  securable_environment_variables.each do |key, value|
    if dry_run
      shell.say_status 'push', key, :blue
    else
      shell.say_status 'push', key, :green
      shell.say heroku(%Q{config:set #{key}=#{value}})
    end
  end
end