class SrvManager::Command

Attributes

dir[R]
env[R]
pidfile[R]
rvm[R]
text[R]

Public Class Methods

new(text, options={}) click to toggle source
# File lib/srv_manager/command.rb, line 10
def initialize(text, options={})
  @text = text
  @dir = File.expand_path options[:dir].to_s
  @env = options[:env] || {}
  @rvm = options[:rvm] || false
  @pidfile = File.expand_path(options[:pidfile]) if options[:pidfile]
end

Public Instance Methods

to_hash() click to toggle source
# File lib/srv_manager/command.rb, line 18
def to_hash
  {text: text, dir: dir, env: env, rvm: rvm, pidfile: pidfile}
end