Class: Freud::Launcher

Inherits:
Object
  • Object
show all
Includes:
Agrippa::Mutable, Logging
Defined in:
lib/freud/launcher.rb

Instance Method Summary collapse

Methods included from Logging

#exit, log_to, logger, #logger

Instance Method Details

#default_stateObject



15
16
17
# File 'lib/freud/launcher.rb', line 15

def default_state
    { process: Process }
end

#run(command, args = []) ⇒ Object



19
20
21
22
23
24
25
26
# File 'lib/freud/launcher.rb', line 19

def run(command, args = [])
    @args = args
    case(command)
        when "help" then show_help
        when "start" then daemonize(fetch_executable(command, true))
        else execute(fetch_executable(command))
    end
end