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

Defined in:
lib/devdnsd/application.rb

Overview

Class methods.

Instance Method Summary collapse

Instance Method Details

#daemon_nameString

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

#pid_directoryString

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 pid_directory
  File.dirname(instance.config.pid_file)
end

#pid_fnString

Returns the complete path of the PID file.

Returns:

  • (String)

    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