cap-ec2 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG.md +14 -0
- data/lib/cap-ec2/capistrano.rb +16 -13
- data/lib/cap-ec2/status-table.rb +1 -1
- data/lib/cap-ec2/version.rb +1 -1
- metadata +4 -4
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,19 @@
|
|
1
1
|
# Cap-EC2 changelog
|
2
2
|
|
3
|
+
## 0.0.7
|
4
|
+
|
5
|
+
* Removed monkey patching of `Capistrano::TaskEnhancements` [@rjocoleman](https://github.com/rjocoleman)
|
6
|
+
* Instances don't always have a name tag, would cause `ec2:status` to blow up [@rjocoleman](https://github.com/rjocoleman)
|
7
|
+
|
8
|
+
## 0.0.6
|
9
|
+
|
10
|
+
* Unbreak listing instances
|
11
|
+
|
12
|
+
## 0.0.5
|
13
|
+
|
14
|
+
* Don't return terminated instances when looking up instances from EC2
|
15
|
+
* Fix documentation to refer to correct tag for Stages [@shaneog](https://github.com/shaneog)
|
16
|
+
|
3
17
|
## 0.0.4
|
4
18
|
|
5
19
|
* If you modified any of the tag names, the `ec2:status` table would blow up
|
data/lib/cap-ec2/capistrano.rb
CHANGED
@@ -12,24 +12,27 @@ require_relative 'instance'
|
|
12
12
|
# Load extra tasks
|
13
13
|
load File.expand_path("../tasks/ec2.rake", __FILE__)
|
14
14
|
|
15
|
-
# Monkey patch into Capistrano v3
|
16
|
-
|
17
15
|
module Capistrano
|
18
|
-
module
|
16
|
+
module DSL
|
17
|
+
module Ec2
|
19
18
|
|
20
|
-
|
21
|
-
|
22
|
-
|
19
|
+
def ec2_handler
|
20
|
+
@ec2_handler ||= CapEC2::EC2Handler.new(env.fetch(:ec2_config, "config/ec2.yml"))
|
21
|
+
end
|
23
22
|
|
24
|
-
|
25
|
-
|
26
|
-
|
23
|
+
def ec2_role(name, options={})
|
24
|
+
ec2_handler.get_servers_for_role(name).each do |server|
|
25
|
+
env.role(name, server.contact_point, options)
|
26
|
+
end
|
27
27
|
end
|
28
|
-
end
|
29
28
|
|
30
|
-
|
31
|
-
|
32
|
-
|
29
|
+
def env
|
30
|
+
Configuration.env
|
31
|
+
end
|
33
32
|
|
33
|
+
end
|
34
34
|
end
|
35
35
|
end
|
36
|
+
|
37
|
+
self.extend Capistrano::DSL::Ec2
|
38
|
+
|
data/lib/cap-ec2/status-table.rb
CHANGED
data/lib/cap-ec2/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cap-ec2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-02-
|
12
|
+
date: 2014-02-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -144,7 +144,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
144
144
|
version: '0'
|
145
145
|
segments:
|
146
146
|
- 0
|
147
|
-
hash:
|
147
|
+
hash: 1426469508856454138
|
148
148
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
149
149
|
none: false
|
150
150
|
requirements:
|
@@ -153,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
153
153
|
version: '0'
|
154
154
|
segments:
|
155
155
|
- 0
|
156
|
-
hash:
|
156
|
+
hash: 1426469508856454138
|
157
157
|
requirements: []
|
158
158
|
rubyforge_project:
|
159
159
|
rubygems_version: 1.8.23
|