Method: Eye::Process::Data#shell_string

Defined in:
lib/eye/process/data.rb

#shell_string(dir = true) ⇒ Object



78
79
80
81
82
83
84
85
86
# File 'lib/eye/process/data.rb', line 78

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