Class: HerokuCLI::Maintenance
- Defined in:
- lib/heroku_cli/maintenance.rb
Overview
Maintenance status of app
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#off ⇒ Object
take the app out of maintenance mode.
-
#on ⇒ Object
put the app into maintenance mode.
-
#status ⇒ Object
display the current maintenance status of app.
Methods inherited from Base
Constructor Details
This class inherits a constructor from HerokuCLI::Base
Instance Method Details
#off ⇒ Object
take the app out of maintenance mode
10 11 12 |
# File 'lib/heroku_cli/maintenance.rb', line 10 def off heroku 'maintenance:off' end |
#on ⇒ Object
put the app into maintenance mode
15 16 17 |
# File 'lib/heroku_cli/maintenance.rb', line 15 def on heroku 'maintenance:on' end |
#status ⇒ Object
display the current maintenance status of app
5 6 7 |
# File 'lib/heroku_cli/maintenance.rb', line 5 def status heroku('maintenance').strip end |