Method: Eye::Process::Data#shell_string
- Defined in:
- lib/eye/process/data.rb
#shell_string(dir = true) ⇒ Object
68 69 70 71 72 73 74 75 76 |
# File 'lib/eye/process/data.rb', line 68 def shell_string(dir = true) str = '' str += "cd #{self[:working_dir]} && " if dir str += environment_string str += ' ' str += self[:start_command] str += ' &' if self[:daemonize] str end |