Class: Madness::CommandLine

Inherits:
Object
  • Object
show all
Includes:
Colsole, Singleton
Defined in:
lib/madness/command_line.rb

Instance Method Summary collapse

Constructor Details

#initializeCommandLine

Returns a new instance of CommandLine.



6
7
# File 'lib/madness/command_line.rb', line 6

def initialize
end

Instance Method Details

#execute(argv = []) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/madness/command_line.rb', line 9

def execute(argv=[])
  if argv.empty?
    launch_server
  else
    launch_server_with_options argv
  end
end