capistrano-ec2_role_tag 0.0.4 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4877fe43d031e21e0e7548648b46fd1f6be97bcf
4
- data.tar.gz: 3209eb35dba2d6f2bfad427d0d66a535a74b2a7b
3
+ metadata.gz: 81dfdf6c725196bb1be1e49acf1bf8f083926b5e
4
+ data.tar.gz: 96b2d2232b3cd9df6ae7c553c4ea3811a3f6b3b9
5
5
  SHA512:
6
- metadata.gz: 85a1f54004d70b3e6053c86f48634e727af9ee8dc286d6b9e526021a8acc3e6668b98d0f24c8d72199f8e453c0f7eaea8f78fe27e31cdb394657fbe5e6b0b860
7
- data.tar.gz: 55e43ef2bdd359abbca0ba000117499243fc1d9b55ecc14b348d0eb03e6c1c93ab2296b8f726f5012682462dc230b7b9a6bd17ae61dcfac177c3c5db125a1f3f
6
+ metadata.gz: 1dd79fc390e21b72c3badf676c40190bda5912e77a006ef554bca790f0158d9843dd84bb496c21efa4156ed941bc20860154e842ab53b630d07dc59a8b90ad9b
7
+ data.tar.gz: 3bdbc0470ec737b1de31902f247151dc74eb14405a36c29b745daca290887f873d01a1eccd4c0efd98e1b8dd5ec600fe409d342888a087d1cdd3e700f5d29c99
@@ -18,8 +18,14 @@ module Capistrano
18
18
  {name: "instance-state-name", values: ["running"]}
19
19
  ]})
20
20
  return [] if apps.reservation_set.empty?
21
- return [] if apps.reservation_set[0].instances_set.empty?
22
- return apps.reservation_set[0].instances_set.map{|instance| instance.private_dns_name }
21
+
22
+ result = []
23
+ apps.reservation_set.each do |reservation|
24
+ next if reservation.instances_set.empty?
25
+ result += reservation.instances_set.map {|instance| instance.private_dns_name }
26
+ end
27
+
28
+ return result
23
29
  end
24
30
  end
25
31
  end
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Ec2RoleTag
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-ec2_role_tag
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - An Vo Nguyen Thien
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-07 00:00:00.000000000 Z
11
+ date: 2015-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler