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) log_directory
Returns the standard location of the log file.
-
- (String) log_file_path
Returns the complete path of the log file.
-
- (String) process_file_path
Returns the complete path of the PID file.
-
- (String) working_directory
(also: #runtime_directory)
Returns the standard location 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(instance.config.pid_file, ".pid") end |
- (String) log_directory
Returns the standard location of the log file.
49 50 51 |
# File 'lib/devdnsd/application.rb', line 49 def log_directory File.dirname(instance.config.log_file) end |
- (String) log_file_path
Returns the complete path of the log file.
42 43 44 |
# File 'lib/devdnsd/application.rb', line 42 def log_file_path instance.config.log_file end |
- (String) process_file_path
Returns the complete path of the PID file.
35 36 37 |
# File 'lib/devdnsd/application.rb', line 35 def process_file_path instance.config.pid_file end |
- (String) working_directory Also known as: runtime_directory
Returns the standard location of the PID file.
27 28 29 |
# File 'lib/devdnsd/application.rb', line 27 def working_directory File.dirname(instance.config.pid_file) end |