cap-ec2 0.0.4 → 0.0.6

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/README.md CHANGED
@@ -62,7 +62,7 @@ The following are optional settings you can use.
62
62
  * stages_tag
63
63
 
64
64
  If this is defined, Cap-EC2 will look for a tag with this name to determine which instances belong to
65
- a given stage. The tag name defaults to "Stage".
65
+ a given stage. The tag name defaults to "Stages".
66
66
 
67
67
  * roles_tag
68
68
 
@@ -115,7 +115,7 @@ Let's say we edited `config/deploy/production.rb`. Adding this configuration to
115
115
  the role `:web` to any instance that has the following properties:
116
116
  * has a tag called "Roles" that contains the string "web"
117
117
  * has a tag called "Project" that contains the string "testapp"
118
- * has a tag called "Stage" that contains the current stage we're executing (in this case, "production")
118
+ * has a tag called "Stages" that contains the current stage we're executing (in this case, "production")
119
119
 
120
120
  Looking at the above table, we can see we would match `server-1` and `server-2`. (You can have multiple
121
121
  roles in tag separated by commas.)
@@ -58,6 +58,7 @@ module CapEC2
58
58
  each_region do |ec2|
59
59
  instances = ec2.instances
60
60
  .filter(tag(project_tag), application)
61
+ .filter('instance-state-code', '16')
61
62
  servers << instances.select do |i|
62
63
  i.tags[roles_tag] =~ /,{0,1}#{role}(,|$)/ && i.tags[stages_tag] =~ /,{0,1}#{stage}(,|$)/
63
64
  end
@@ -1,3 +1,3 @@
1
1
  module CapEC2
2
- VERSION = "0.0.4"
3
- end
2
+ VERSION = "0.0.6"
3
+ end
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
4
+ version: 0.0.6
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-01-16 00:00:00.000000000 Z
12
+ date: 2014-02-03 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: 4028895032890582237
147
+ hash: -3058574493266036746
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: 4028895032890582237
156
+ hash: -3058574493266036746
157
157
  requirements: []
158
158
  rubyforge_project:
159
159
  rubygems_version: 1.8.23