Class: Angus::ServerCommand

Inherits:
Thor::Group
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/angus/commands/server_command.rb

Instance Method Summary collapse

Methods included from Thor::Actions

#new_project, #resource

Instance Method Details

#serverObject



8
9
10
11
12
# 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