Class: Chamber::Commands::Heroku::Clear
- Includes:
- Chamber::Commands::Heroku
- Defined in:
- lib/chamber/commands/heroku/clear.rb
Instance Attribute Summary
Attributes inherited from Base
#chamber, #dry_run, #rootpath, #shell
Instance Method Summary collapse
Methods included from Chamber::Commands::Heroku
Methods inherited from Base
Instance Method Details
#call ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/chamber/commands/heroku/clear.rb', line 12 def call chamber.to_environment.each_key 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 |