Class: Heroku::Command::Maintenance

Inherits:
BaseWithApp show all
Defined in:
lib/heroku/commands/maintenance.rb

Instance Attribute Summary

Attributes inherited from BaseWithApp

#app

Attributes inherited from Base

#args, #autodetected_app

Instance Method Summary collapse

Methods inherited from BaseWithApp

#initialize

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

#offObject



8
9
10
11
# File 'lib/heroku/commands/maintenance.rb', line 8

def off
	heroku.maintenance(app, :off)
	display "Maintenance mode disabled."
end

#onObject



3
4
5
6
# File 'lib/heroku/commands/maintenance.rb', line 3

def on
	heroku.maintenance(app, :on)
	display "Maintenance mode enabled."
end