Class: Vines::Agent::Command::Start
- Inherits:
-
Object
- Object
- Vines::Agent::Command::Start
- Defined in:
- lib/vines/agent/command/start.rb
Instance Method Summary collapse
Instance Method Details
#run(opts) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/vines/agent/command/start.rb', line 7 def run(opts) raise 'vines-agent [--pid FILE] start' unless opts[:args].size == 0 require opts[:config] agent = Vines::Agent::Agent.new(Config.instance) daemonize(opts) if opts[:daemonize] agent.start end |