Class: Jets::CLI::Maintenance

Inherits:
Thor::Base show all
Defined in:
lib/jets/cli/maintenance.rb,
lib/jets/cli/maintenance/web.rb,
lib/jets/cli/maintenance/base.rb,
lib/jets/cli/maintenance/mode.rb,
lib/jets/cli/maintenance/worker.rb

Defined Under Namespace

Classes: Base, Mode, Web, Worker

Instance Method Summary collapse

Methods inherited from Thor::Base

dispatch, exit_on_failure?, help_flags, version_flags, website

Methods included from Thor::Help

#capture_stdout_for_help, #help, #paginate_output

Instance Method Details

#offObject



21
22
23
# File 'lib/jets/cli/maintenance.rb', line 21

def off
  Mode.new(options).off
end

#onObject



8
9
10
# File 'lib/jets/cli/maintenance.rb', line 8

def on
  Mode.new(options).on
end

#statusObject



28
29
30
# File 'lib/jets/cli/maintenance.rb', line 28

def status
  Mode.new(options).status
end