capistrano-getservers 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +12 -1
- data/capistrano-getservers.gemspec +2 -1
- data/lib/capistrano-getservers/get_servers.rb +1 -1
- metadata +25 -18
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 6864cde628f93fb1f1f520de59aef0f42917c509
|
4
|
+
data.tar.gz: a9751c5f719f7989ee243bdc845bd38932e3097b
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 7849fd31a594bf7709e3c7e68e2a634e334148b19534b99bf387e8e5e271276f520d3ac4ac90c029e3d9b35c739936dbed7e5cae01d2f7803aabcb8da731ce65
|
7
|
+
data.tar.gz: 20d373670f9a20e74ec934f6f465599b5b17cf7f054f5401c6a57b7e302066c7dd4b13a99d9d2669e0a0a5be6c70129fcf4f5b6d41008e9dd6dfa625001e6d55
|
data/README.md
CHANGED
@@ -51,6 +51,17 @@ Then, via the command line:
|
|
51
51
|
|
52
52
|
`$ cap staging deploy TAGS=key1:value1,key2:value2,key3:value3...`
|
53
53
|
|
54
|
+
### Instances behind Amazon's VPC
|
55
|
+
If you have instances located in a VPC with no public IP address,
|
56
|
+
capistrano-getservers will return their private ip address. You will
|
57
|
+
then need to use capistrano's gateway support to deploy to these
|
58
|
+
machines.
|
59
|
+
|
60
|
+
The following line of code accomplishes just that:
|
61
|
+
|
62
|
+
```
|
63
|
+
set :gateway, "gateway_address"
|
64
|
+
```
|
54
65
|
|
55
66
|
### Notes
|
56
67
|
|
@@ -60,7 +71,7 @@ default to the `us-east-1` region.
|
|
60
71
|
All servers will receive the role 'web' unless you specify a different
|
61
72
|
role using the `get_servers` method.
|
62
73
|
|
63
|
-
Example: `get_servers(:role,{'deploy' => 'some value', 'app' => 'some_value'})`
|
74
|
+
Example: `get_servers(:role, 'us-east-1', {'deploy' => 'some value', 'app' => 'some_value'})`
|
64
75
|
|
65
76
|
## Changelog
|
66
77
|
|
@@ -5,7 +5,7 @@ require 'capistrano-getservers/get_servers'
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |gem|
|
7
7
|
gem.name = "capistrano-getservers"
|
8
|
-
gem.version = '1.0.
|
8
|
+
gem.version = '1.0.3'
|
9
9
|
gem.authors = ["Alfred Moreno"]
|
10
10
|
gem.email = ["alfred.moreno@zumba.com"]
|
11
11
|
gem.description = %q{A capistrano plugin for simplifying EC2 deployment processes}
|
@@ -19,4 +19,5 @@ Gem::Specification.new do |gem|
|
|
19
19
|
|
20
20
|
gem.add_dependency 'capistrano', '>=2.1.0'
|
21
21
|
gem.add_dependency 'fog', '>=1.5.0'
|
22
|
+
gem.add_dependency 'rake'
|
22
23
|
end
|
@@ -32,7 +32,7 @@ module Capistrano
|
|
32
32
|
ec2.servers.all.each do |instance|
|
33
33
|
begin
|
34
34
|
instance_tags = instance.tags.reject { |k,v| cli_tags[k] != instance.tags[k] }
|
35
|
-
server instance.public_ip_address, role || :web if instance_tags.eql?
|
35
|
+
server (instance.public_ip_address || instance.private_ip_address), (role || :web) if instance_tags.eql?(cli_tags)
|
36
36
|
rescue => error
|
37
37
|
end
|
38
38
|
end
|
metadata
CHANGED
@@ -1,48 +1,57 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-getservers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
5
|
-
prerelease:
|
4
|
+
version: 1.0.3
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Alfred Moreno
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2013-08-08 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: capistrano
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - '>='
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: 2.1.0
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - '>='
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: 2.1.0
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: fog
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - '>='
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: 1.5.0
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - '>='
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: 1.5.0
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
46
55
|
description: A capistrano plugin for simplifying EC2 deployment processes
|
47
56
|
email:
|
48
57
|
- alfred.moreno@zumba.com
|
@@ -61,27 +70,25 @@ files:
|
|
61
70
|
- lib/capistrano-getservers/get_servers.rb
|
62
71
|
homepage: ''
|
63
72
|
licenses: []
|
73
|
+
metadata: {}
|
64
74
|
post_install_message:
|
65
75
|
rdoc_options: []
|
66
76
|
require_paths:
|
67
77
|
- lib
|
68
78
|
required_ruby_version: !ruby/object:Gem::Requirement
|
69
|
-
none: false
|
70
79
|
requirements:
|
71
|
-
- -
|
80
|
+
- - '>='
|
72
81
|
- !ruby/object:Gem::Version
|
73
82
|
version: '0'
|
74
83
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
75
|
-
none: false
|
76
84
|
requirements:
|
77
|
-
- -
|
85
|
+
- - '>='
|
78
86
|
- !ruby/object:Gem::Version
|
79
87
|
version: '0'
|
80
88
|
requirements: []
|
81
89
|
rubyforge_project:
|
82
|
-
rubygems_version:
|
90
|
+
rubygems_version: 2.0.2
|
83
91
|
signing_key:
|
84
|
-
specification_version:
|
92
|
+
specification_version: 4
|
85
93
|
summary: A capistrano plugin for simplifying EC@ deployment processes
|
86
94
|
test_files: []
|
87
|
-
has_rdoc:
|