Class: Heroku::Command::Maintenance
- Inherits:
-
BaseWithApp
- Object
- Base
- BaseWithApp
- Heroku::Command::Maintenance
- Defined in:
- lib/heroku/commands/maintenance.rb
Instance Attribute Summary
Attributes inherited from BaseWithApp
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from BaseWithApp
Methods inherited from Base
#app_urls, #ask, #display, #error, #escape, #extract_app, #extract_app_in_dir, #extract_option, #format_date, #git_remotes, #git_url, #heroku, #initialize, #shell, #web_url
Methods included from Helpers
#home_directory, #running_on_a_mac?, #running_on_windows?
Constructor Details
This class inherits a constructor from Heroku::Command::BaseWithApp
Instance Method Details
#off ⇒ Object
8 9 10 11 |
# File 'lib/heroku/commands/maintenance.rb', line 8 def off heroku.maintenance(app, :off) display "Maintenance mode disabled." end |
#on ⇒ Object
3 4 5 6 |
# File 'lib/heroku/commands/maintenance.rb', line 3 def on heroku.maintenance(app, :on) display "Maintenance mode enabled." end |