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.
Files changed (2) hide show
  1. data/lib/awsome/ec2/instance.rb +6 -5
  2. metadata +1 -1
@@ -34,7 +34,12 @@ module Awsome
34
34
  end
35
35
 
36
36
  def associate_cnames(*cnames)
37
- cnames.each { |cname| associate_cname(cname) }
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awsome
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.16
4
+ version: 0.0.17
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: