class Azuki::Command::Maintenance
manage maintenance mode for an app
Public Instance Methods
index()
click to toggle source
maintenance display the current maintenance status of app
Example:
$ azuki maintenance off
# File lib/azuki/command/maintenance.rb, line 16 def index validate_arguments! case api.get_app_maintenance(app).body['maintenance'] when true display('on') when false display('off') end end
off()
click to toggle source
maintenance:off take the app out of maintenance mode
Example:
$ azuki maintenance:off Disabling maintenance mode for example
# File lib/azuki/command/maintenance.rb, line 53 def off validate_arguments! action("Disabling maintenance mode for #{app}") do api.post_app_maintenance(app, '0') end end
on()
click to toggle source
maintenance:on put the app into maintenance mode
Example:
$ azuki maintenance:on Enabling maintenance mode for example
# File lib/azuki/command/maintenance.rb, line 36 def on validate_arguments! action("Enabling maintenance mode for #{app}") do api.post_app_maintenance(app, '1') end end