Sha256: cbe4a94552ba56843ddc94d359f8579bcf082cba03b46039bb0aea33b453c45d
Contents?: true
Size: 511 Bytes
Versions: 1
Compression:
Stored size: 511 Bytes
Contents
module Spool class Configuration attr_accessor :processes, :env, :dir, :command, :pidfile, :restart_condition, :source_file def env @env ||= {} end def dir @dir ||= source_file ? File.dirname(source_file) : Dir.pwd end def pidfile @pidfile ||= File.join(dir, (source_file ? "#{File.basename(source_file, '.*')}.pid" : 'pool.pid')) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spool-0.0.1 | lib/spool/configuration.rb |