Module: DevDNSd::ApplicationMethods::System::ClassMethods
- Defined in:
- lib/devdnsd/application.rb
Overview
Class methods.
Instance Method Summary (collapse)
-
- (String) daemon_name
Returns the name of the daemon.
-
- (String) pid_directory
Returns the standard location of the PID file.
-
- (String) pid_fn
Returns the complete path of the PID file.
Instance Method Details
- (String) daemon_name
Returns the name of the daemon.
20 21 22 |
# File 'lib/devdnsd/application.rb', line 20 def daemon_name File.basename(self.instance.config.pid_file, ".pid") end |
- (String) pid_directory
Returns the standard location of the PID file.
27 28 29 |
# File 'lib/devdnsd/application.rb', line 27 def pid_directory File.dirname(self.instance.config.pid_file) end |
- (String) pid_fn
Returns the complete path of the PID file.
34 35 36 |
# File 'lib/devdnsd/application.rb', line 34 def pid_fn self.instance.config.pid_file end |