class RanchManager::Hostname
Attributes
ip[RW]
name[RW]
Public Class Methods
all()
click to toggle source
# File lib/ranch-manager/hostname.rb, line 9 def self.all YAML.load_file(RanchManager::HOSTNAMES_FILE).strip.split end
new(name, ip)
click to toggle source
# File lib/ranch-manager/hostname.rb, line 4 def initialize(name, ip) @name = name @ip = ip end