class Angus::ServerCommand

Public Instance Methods

server() click to toggle source
# File lib/angus/commands/server_command.rb, line 8
def server
  port_option = "-p #{options[:port]}" || ''
  host_option = "--host #{options[:host]}" || ''
  command_processor.run("rackup #{port_option} #{host_option}", verbose: false)
end

Private Instance Methods

command_processor() click to toggle source
# File lib/angus/commands/server_command.rb, line 16
def command_processor
  @command_processor ||= Angus::CommandProcessor.new
end