Module: DevDNSd::ApplicationMethods::System::ClassMethods

Defined in:
lib/devdnsd/application.rb

Overview

Class methods.

Instance Method Summary (collapse)

Instance Method Details

- (String) daemon_name

Returns the name of the daemon.

Returns:

  • (String)

    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.

Returns:

  • (String)

    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.

Returns:

  • (String)

    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.

Returns:

  • (String)

    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.

Returns:

  • (String)

    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