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 +4 -4
- data/README.md +3 -3
- data/capistrano-ec2_tagged.gemspec +1 -1
- data/lib/capistrano/ec2_tagged.rb +5 -3
- data/lib/capistrano/ec2_tagged/version.rb +1 -1
- metadata +7 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a537d63b24ad865db1c49a83ebe6d0efed7c7ccf
|
4
|
+
data.tar.gz: 9f483bfdc0aed79a6459461fe2fced51a217f5b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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")
|
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
|
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
|
-
|
21
|
-
|
22
|
-
|
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
|
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.
|
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-
|
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: '
|
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: '
|
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:
|