Class: Devbin::Commands::Rails::Off

Inherits:
Devbin::Command show all
Defined in:
lib/devbin/commands/rails/off.rb

Instance Method Summary collapse

Methods inherited from Devbin::Command

#command, #cursor, #docker_pwd, #docker_sync_pwd, #editor, #exec_exist?, #find_pwd, #generator, #pager, #pastel, #platform, #prompt, #screen, #which

Constructor Details

#initialize(options) ⇒ Off

Returns a new instance of Off.



9
10
11
# File 'lib/devbin/commands/rails/off.rb', line 9

def initialize(options)
  @options = options
end

Instance Method Details

#execute(input: $stdin, output: $stdout) ⇒ Object



13
14
15
16
17
# File 'lib/devbin/commands/rails/off.rb', line 13

def execute(input: $stdin, output: $stdout)
  require_relative "stop"
  Devbin::Commands::Rails::Stop.new(@app_name, {all: true}).execute
  output.puts "OK"
end