awsome 0.0.16 → 0.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/awsome/ec2/instance.rb +6 -5
- metadata +1 -1
data/lib/awsome/ec2/instance.rb
CHANGED
|
@@ -34,7 +34,12 @@ module Awsome
|
|
|
34
34
|
end
|
|
35
35
|
|
|
36
36
|
def associate_cnames(*cnames)
|
|
37
|
-
cnames.each
|
|
37
|
+
cnames.each do |cname|
|
|
38
|
+
zone = cname['zone']
|
|
39
|
+
cname['names'].each do |name|
|
|
40
|
+
Awsome::R53.redefine_cname(zone, name, @properties['private_dns_name'])
|
|
41
|
+
end
|
|
42
|
+
end
|
|
38
43
|
end
|
|
39
44
|
|
|
40
45
|
def associate_ips(*elastic_ips)
|
|
@@ -78,10 +83,6 @@ module Awsome
|
|
|
78
83
|
@properties = instance.properties.clone
|
|
79
84
|
end
|
|
80
85
|
|
|
81
|
-
def associate_cname(cname)
|
|
82
|
-
Awsome::R53.redefine_cname(cname[:zone], cname[:name], @properties['private_dns_name'])
|
|
83
|
-
end
|
|
84
|
-
|
|
85
86
|
def has_ssh?
|
|
86
87
|
Awsome::Ssh.has_ssh?(@properties['public_dns_name'])
|
|
87
88
|
end
|