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