Class: Chamber::Commands::Heroku::Clear

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

Instance Method Summary collapse

Methods included from Chamber::Commands::Heroku

#initialize

Methods inherited from Base

call, #initialize

Instance Method Details

#callObject



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

def call
  chamber.to_environment.keys.each do |key|
    next unless configuration.match(key)

    if dry_run
      shell.say_status 'remove', key, :blue
    else
      shell.say_status 'remove', key, :green
      shell.say heroku("config:unset #{key}")
    end
  end
end