Class: Wakame::Actor::Daemon

Inherits:
Object
  • Object
show all
Includes:
Wakame::Actor
Defined in:
lib/wakame/actor/daemon.rb

Constant Summary

Constants included from Wakame::Actor

STATUS_CANCELED, STATUS_FAILED, STATUS_RUNNING, STATUS_SUCCESS

Instance Method Summary collapse

Methods included from Wakame::Actor

included

Instance Method Details

#reload(resource_dir, cmd) ⇒ Object



17
18
19
# File 'lib/wakame/actor/daemon.rb', line 17

def reload(resource_dir, cmd)
  Wakame::Util.exec("/usr/bin/env #{env_opts} '#{cmd_abs_path(resource_dir, cmd.dup)}' reload")
end

#start(resource_dir, cmd) ⇒ Object



9
10
11
# File 'lib/wakame/actor/daemon.rb', line 9

def start(resource_dir, cmd)
  Wakame::Util.exec("/usr/bin/env #{env_opts} '#{cmd_abs_path(resource_dir, cmd.dup)}' start")
end

#stop(resource_dir, cmd) ⇒ Object



13
14
15
# File 'lib/wakame/actor/daemon.rb', line 13

def stop(resource_dir, cmd)
  Wakame::Util.exec("/usr/bin/env #{env_opts} '#{cmd_abs_path(resource_dir, cmd.dup)}' stop")
end