Class: SimpleDaemon::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/simple-daemon.rb

Class Method Summary collapse

Class Method Details

.classnameObject



7
8
9
# File 'lib/simple-daemon.rb', line 7

def self.classname
  name.split("::").last
end

.daemonizeObject



15
16
17
# File 'lib/simple-daemon.rb', line 15

def self.daemonize
  Controller.daemonize(self)
end

.pid_fnObject



11
12
13
# File 'lib/simple-daemon.rb', line 11

def self.pid_fn
  File.join(SimpleDaemon::WORKING_DIRECTORY, "#{classname}.pid")
end