Class: HerokuCLI::Maintenance

Inherits:
Base
  • Object
show all
Defined in:
lib/heroku_cli/maintenance.rb

Overview

Maintenance status of app

Instance Attribute Summary

Attributes inherited from Base

#application

Instance Method Summary collapse

Methods inherited from Base

#heroku, #initialize

Constructor Details

This class inherits a constructor from HerokuCLI::Base

Instance Method Details

#offObject

take the app out of maintenance mode



10
11
12
# File 'lib/heroku_cli/maintenance.rb', line 10

def off
  heroku 'maintenance:off'
end

#onObject

put the app into maintenance mode



15
16
17
# File 'lib/heroku_cli/maintenance.rb', line 15

def on
  heroku 'maintenance:on'
end

#statusObject

display the current maintenance status of app



5
6
7
# File 'lib/heroku_cli/maintenance.rb', line 5

def status
  heroku('maintenance').strip
end