capistrano-ec2_role_tag 0.1.2 → 0.1.4

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: 8bec9d6d643d2ff12f6aa951deae6d643ae3f9e7
4
- data.tar.gz: c7e30f27480b8a140d1063fac84aacdb1ae4fc7f
3
+ metadata.gz: 241bca275072fc6863dfeee8c56e818761ecf164
4
+ data.tar.gz: 839ac440fe9b8b82810e7c7a7bba6a547338f4de
5
5
  SHA512:
6
- metadata.gz: 51f40c6ee71d89f38969408ecce3a4b639cca8e4c068f7f04252f5f7afd8e1119872adc4d6d20b81c3b7d69d4f66ec0cd40b021bc143fd680d00cbf2adc1b57f
7
- data.tar.gz: 76dc6250ebe6cdf32cb2b6bd31db8c659768ea62d14a4c8fd9de1b098509ec4426237d3bc35245375cca846d1200975dd81aa6669f80445c063bb6c09dcf3605
6
+ metadata.gz: 436d1f969070c47012683aea36c0f95896870fe497a8246d3b180fcd03ab433f16a04545962b2b58577b3fa1940e95f69942e54460540952dd7ed323f2e5cc0d
7
+ data.tar.gz: 8a3843d20befe68d171fe28bde56835a11ca48f0220f37ed8d0de103db3cec16318f01b3c37fb091143ded089ae863803de997c9ee09678587fe970294e8cd8d
@@ -1,5 +1,10 @@
1
1
  ## [In git](https://github.com/heosuax/capistrano-ec2_role_tag/compare/v0.0.2...HEAD)
2
2
 
3
+ ## [v0.1.0](https://github.com/heosuax/capistrano-ec2_role_tag/tree/v0.1.4)
4
+
5
+ * Fix bug get all reservations
6
+ * Fix aws key query
7
+
3
8
  ## [v0.1.0](https://github.com/heosuax/capistrano-ec2_role_tag/tree/v0.1.0)
4
9
 
5
10
  ### New Features
@@ -18,8 +18,14 @@ module Capistrano
18
18
  {name: "instance-state-name", values: ["running"]}
19
19
  ]})
20
20
  return [] if apps.reservations.empty?
21
- return [] if apps.reservations[0].instances.empty?
22
- return apps.reservations[0].instances.map{|instance| instance.private_dns_name }
21
+
22
+ result = []
23
+ apps.reservations.each do |reservation|
24
+ next if reservation.instances.empty?
25
+ result += reservation.instances.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.1.2"
3
+ VERSION = "0.1.4"
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.1.2
4
+ version: 0.1.4
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-09 00:00:00.000000000 Z
11
+ date: 2015-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler