Sha256: 5c310b9f660b6c8dec73c585c8fa08df4808699a70e0a237e18d7f25049e5f7f
Contents?: true
Size: 622 Bytes
Versions: 4
Compression:
Stored size: 622 Bytes
Contents
module DaemonOgre module OPTS class << self def tmp_folder_path obj= nil @@path ||= nil @@path = obj unless obj.nil? @@path || "#{::TMP.folder_path.to_s}_daemon" end def pid *args self.pidfile end def pid= *args self.pidfile= *args end def method_missing method_name, *args @@tmp_dsl ||= ::TMP.new( self.tmp_folder_path ) if method_name.to_s.reverse[0] == "=" @@tmp_dsl.__send__ method_name,args[0] else @@tmp_dsl.__send__ method_name end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
daemon-ogre-2.1.3 | lib/daemon-ogre/opts.rb |
daemon-ogre-2.1.2 | lib/daemon-ogre/opts.rb |
daemon-ogre-2.1.1 | lib/daemon-ogre/opts.rb |
daemon-ogre-2.0.3 | lib/daemon-ogre/opts.rb |