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(self.instance.config.pid_file, ".pid")
end

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

- (String) pid_fn

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
  self.instance.config.pid_file
end