Class: Nito::Hostname
- Inherits:
-
Object
- Object
- Nito::Hostname
- Defined in:
- lib/nito/hostname.rb
Instance Method Summary collapse
-
#initialize(hostname) ⇒ Hostname
constructor
A new instance of Hostname.
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 |