capistrano-ec2_tagged 0.1.0 → 0.1.1

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: 16ae4280f72385dfef742c8ae8951d86ab49c8f8
4
- data.tar.gz: a40b37c8cf10cb9d64044deb1b6594801eb2124a
3
+ metadata.gz: a537d63b24ad865db1c49a83ebe6d0efed7c7ccf
4
+ data.tar.gz: 9f483bfdc0aed79a6459461fe2fced51a217f5b3
5
5
  SHA512:
6
- metadata.gz: 9bc7d584deca42734a841b10df52257c1a9709a4a649c5128afe45c65fb3a05ca5efe601e939271b720035df11eb644b64d8d8a95328f29e4b0e77d3e2a0e864
7
- data.tar.gz: b1125777e7a8efa696287e4e61e8b0ba5e61b9268e449bce3fa48eb8c48d73beea3bd20b6a0a1e3909287d8243363a9b3eaef43137e1ed655c01bd72e4940322
6
+ metadata.gz: d6cb9596b911a82787460d0e8812f231b6644417fd9bd9526d8e9ec9cf412bf55417eaef2a34591dc18fa40efb9fe49423c1c8849bb4921e524e887fa50bc2c6
7
+ data.tar.gz: e2928742482c45f58a710227a73c011e0a446604476292397ca892c8908e30a4de60f4d0443bc57c79cce4506005df4f5dafebe875ac32e1069eea103f32521e
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Capistrano::Ec2Tagged
2
2
 
3
- Get ip addresses of AWS EC2 instances filtered by their tags.
3
+ Get IP addresses of AWS EC2 instances filtered by their tags.
4
4
 
5
5
  ## Requirements
6
6
 
@@ -43,13 +43,13 @@ Then call `ec2_tagged` method in each stage files like config/deploy/production.
43
43
  ```ruby
44
44
  role :web, ec2_tagged("Name" => "my-web-server")
45
45
  role :app, ec2_tagged("Name" => "my-app-server")
46
- role :db, ec2_tagged("Name" => "my-db-server"), :primary => true
46
+ role :db, ec2_tagged("Name" => "my-db-server")
47
47
  ```
48
48
 
49
49
 
50
50
  ## Contributing
51
51
 
52
- 1. Fork it ( http://github.com/<my-github-username>/capistrano-ec2_tagged/fork )
52
+ 1. Fork it ( http://github.com/a2ikm/capistrano-ec2_tagged/fork )
53
53
  2. Create your feature branch (`git checkout -b my-new-feature`)
54
54
  3. Commit your changes (`git commit -am 'Add some feature'`)
55
55
  4. Push to the branch (`git push origin my-new-feature`)
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_dependency "aws-sdk"
21
+ spec.add_dependency "aws-sdk", "< 2"
22
22
  spec.add_dependency "capistrano", "~> 3.0"
23
23
  spec.add_development_dependency "bundler", "~> 1.5"
24
24
  spec.add_development_dependency "rake"
@@ -17,9 +17,11 @@ module Capistrano
17
17
  instances = instances.tagged_values(value.to_s) if value != true
18
18
  end
19
19
 
20
- instances.map { |instance|
21
- instance.ip_address || instance.private_ip_address if instance.status == :running
22
- }.compact
20
+ AWS.memoize do
21
+ instances.map { |instance|
22
+ instance.ip_address || instance.private_ip_address if instance.status == :running
23
+ }.compact
24
+ end
23
25
  end
24
26
  end
25
27
  end
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Ec2Tagged
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-ec2_tagged
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masato Ikeda
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-26 00:00:00.000000000 Z
11
+ date: 2014-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "<"
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: '2'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "<"
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: '2'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: capistrano
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -106,3 +106,4 @@ signing_key:
106
106
  specification_version: 4
107
107
  summary: Get ip addresses of AWS EC2 instances filtered by their tags.
108
108
  test_files: []
109
+ has_rdoc: