mirror of https://github.com/Calamitous/iris.git
Swap out Socket lib for domain output from hostname
This commit is contained in:
parent
2faf89ddeb
commit
7628afdfb7
3
iris.rb
3
iris.rb
|
@ -21,7 +21,6 @@
|
|||
require 'time'
|
||||
require 'base64'
|
||||
require 'digest'
|
||||
require 'socket'
|
||||
require 'json'
|
||||
require 'etc'
|
||||
|
||||
|
@ -30,7 +29,7 @@ class Config
|
|||
MESSAGE_FILE = "#{ENV['HOME']}/.iris.messages"
|
||||
|
||||
USER = ENV['USER'] || ENV['LOGNAME'] || ENV['USERNAME']
|
||||
HOSTNAME = Socket.gethostname
|
||||
HOSTNAME = `hostname -d`.chomp
|
||||
AUTHOR = "#{USER}@#{HOSTNAME}"
|
||||
|
||||
def self.get(filepath = CONFIG_FILE)
|
||||
|
|
Loading…
Reference in New Issue