Module: ActiveWorker::HostInformation

Defined in:
lib/active_worker/host_information.rb

Class Method Summary collapse

Class Method Details

.hostnameObject



4
5
6
# File 'lib/active_worker/host_information.rb', line 4

def self.hostname
  `hostname -f`.chomp
end

.short_hostnameObject



8
9
10
# File 'lib/active_worker/host_information.rb', line 8

def self.short_hostname
  `hostname`.chomp
end