class Devbin::Commands::Rails

Public Instance Methods

attach(app_name) click to toggle source
# File lib/devbin/commands/rails.rb, line 32
def attach(app_name)
  if options[:help]
    invoke :help, ["attach"]
  else
    require_relative "rails/attach"
    Devbin::Commands::Rails::Attach.new(app_name, options).execute
  end
end
console(app_name) click to toggle source
# File lib/devbin/commands/rails.rb, line 44
def console(app_name)
  if options[:help]
    invoke :help, ["console"]
  else
    require_relative "rails/console"
    Devbin::Commands::Rails::Console.new(app_name, options).execute
  end
end
off(*) click to toggle source
# File lib/devbin/commands/rails.rb, line 84
def off(*)
  if options[:help]
    invoke :help, ["off"]
  else
    require_relative "rails/off"
    Devbin::Commands::Rails::Off.new(options).execute
  end
end
restart(app_name) click to toggle source
# File lib/devbin/commands/rails.rb, line 72
def restart(app_name)
  if options[:help]
    invoke :help, ["restart"]
  else
    require_relative "rails/restart"
    Devbin::Commands::Rails::Restart.new(app_name, options).execute
  end
end
server(app_name) click to toggle source
# File lib/devbin/commands/rails.rb, line 20
def server(app_name)
  if options[:help]
    invoke :help, ["server"]
  else
    require_relative "rails/server"
    Devbin::Commands::Rails::Server.new(app_name, options).execute
  end
end
stop(app_name = "") click to toggle source
# File lib/devbin/commands/rails.rb, line 58
def stop(app_name = "")
  if options[:help]
    invoke :help, ["stop"]
  else
    require_relative "rails/stop"
    Devbin::Commands::Rails::Stop.new(app_name, options).execute
  end
end