Class: Syrup::Executor

Inherits:
Object
  • Object
show all
Defined in:
lib/syrup/executor.rb

Instance Method Summary collapse

Instance Method Details

#execute_daemon(name, script, fabric, props) ⇒ Object

Starts a script as a daemon. Returns the pid.



14
15
# File 'lib/syrup/executor.rb', line 14

def execute_daemon(name, script, fabric, props)
end

#execute_foreground(name, script, fabric, props) ⇒ Object

Executes a script in the “foreground” (ie, it only forks once). The pid is recorded in memory, and the process will return.



5
6
7
# File 'lib/syrup/executor.rb', line 5

def execute_foreground(name, script, fabric, props)
  
end

#kill_all_foregroundObject

Kills all processes running in the foreground.



10
11
# File 'lib/syrup/executor.rb', line 10

def kill_all_foreground
end

#stop_daemon(name, pid) ⇒ Object



17
18
# File 'lib/syrup/executor.rb', line 17

def stop_daemon(name, pid)
end