auser-poolparty 0.2.64 → 0.2.65
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/server-update-hosts +1 -3
- data/lib/poolparty/version.rb +1 -1
- data/poolparty.gemspec +1 -1
- metadata +1 -1
data/bin/server-update-hosts
CHANGED
@@ -30,8 +30,6 @@ o.loaded_pools.each do |pool|
|
|
30
30
|
end
|
31
31
|
end.join("\n")
|
32
32
|
|
33
|
-
puts new_hosts_listing
|
34
|
-
|
35
33
|
if testing
|
36
34
|
puts new_hosts_listing
|
37
35
|
else
|
@@ -42,7 +40,7 @@ o.loaded_pools.each do |pool|
|
|
42
40
|
parts = line.split(/\t/).map {|a| a.chomp }
|
43
41
|
ip,hostname,aliases = parts[0], parts[1], parts[2..-1]
|
44
42
|
puts "ip: #{ip} for #{hostname}"
|
45
|
-
arr << PoolParty::Resources::Host.new(:
|
43
|
+
arr << PoolParty::Resources::Host.new(:name => hostname, :ip => Resolv::DNS.new.getaddress(ip).to_s, :alias => aliases).to_string
|
46
44
|
end
|
47
45
|
end
|
48
46
|
|
data/lib/poolparty/version.rb
CHANGED
data/poolparty.gemspec
CHANGED