Class: SimpleDaemon::Base
- Inherits:
-
Object
- Object
- SimpleDaemon::Base
- Defined in:
- lib/simple-daemon.rb
Class Method Summary collapse
Class Method Details
.classname ⇒ Object
7 8 9 |
# File 'lib/simple-daemon.rb', line 7 def self.classname name.split("::").last end |
.daemonize ⇒ Object
15 16 17 |
# File 'lib/simple-daemon.rb', line 15 def self.daemonize Controller.daemonize(self) end |
.pid_fn ⇒ Object
11 12 13 |
# File 'lib/simple-daemon.rb', line 11 def self.pid_fn File.join(SimpleDaemon::WORKING_DIRECTORY, "#{classname}.pid") end |