Sha256: 26d14664ec464915d0e0dddaeb46dc2df94e8673a1c8a86daf5112084008a5c4
Contents?: true
Size: 504 Bytes
Versions: 4
Compression:
Stored size: 504 Bytes
Contents
module SrvManager class Command attr_reader :text attr_reader :dir attr_reader :env attr_reader :rvm attr_reader :pidfile 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 def to_hash {text: text, dir: dir, env: env, rvm: rvm, pidfile: pidfile} end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
srv_manager-0.0.8 | lib/srv_manager/command.rb |
srv_manager-0.0.7 | lib/srv_manager/command.rb |
srv_manager-0.0.6 | lib/srv_manager/command.rb |
srv_manager-0.0.5 | lib/srv_manager/command.rb |