Class: Heroku::Command::Config
- Inherits:
-
BaseWithApp
- Object
- BaseWithApp
- Heroku::Command::Config
- Defined in:
- lib/heroku/command/config.rb
Instance Method Summary collapse
Instance Method Details
#pull ⇒ Object
5 6 7 8 9 10 |
# File 'lib/heroku/command/config.rb', line 5 def pull File.open(".environment", "w") do |file| file.puts YAML.dump(heroku.config_vars(app)) end display "Config for #{app} written to .environment" end |
#push ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/heroku/command/config.rb', line 12 def push error "No .environment file" unless File.exists?(".environment") config = YAML.load_file(".environment") heroku.clear_config_vars(app) heroku.add_config_vars(app, config) display "Config in .environment written to #{app}" end |