Class: Nito::Hostname

Inherits:
Object
  • Object
show all
Defined in:
lib/nito/hostname.rb

Instance Method Summary collapse

Constructor Details

#initialize(hostname) ⇒ Hostname

Returns a new instance of Hostname.



5
6
7
8
9
10
# File 'lib/nito/hostname.rb', line 5

def initialize(hostname)
  @hostname = hostname
  @hostname_file = '/etc/hostname'
  @hosts_file = '/etc/hosts'
  new
end