capify-ec2 1.8.0.pre → 1.8.0.pre2

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -3,4 +3,3 @@
3
3
  Gemfile.lock
4
4
  pkg/*
5
5
  .idea
6
-
data/Changelog.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 1.8.0.pre2 (Nov 14, 2014)
2
+
3
+ Features:
4
+
5
+ - Added support for comma seperated project tags (thanks theist).
6
+
1
7
  ## 1.8.0.pre (Nov 14, 2014)
2
8
 
3
9
  Features:
data/lib/capify-ec2.rb CHANGED
@@ -215,7 +215,7 @@ class CapifyEc2
215
215
  end
216
216
 
217
217
  def project_instances
218
- @instances.select {|instance| @ec2_config[:project_tags].include?(instance.tags[@ec2_config[:aws_project_tag]])}
218
+ @instances.select {|instance| instance.tags[@ec2_config[:aws_project_tag]].split(%r{,\s*}).include?(@ec2_config[:project_tag]) rescue false }
219
219
  end
220
220
 
221
221
  def desired_instances(region = nil)
@@ -1,6 +1,6 @@
1
1
  module Capify
2
2
  module Ec2
3
- VERSION = "1.8.0.pre"
3
+ VERSION = "1.8.0.pre2"
4
4
  end
5
5
  end
6
6
 
data/readme.md CHANGED
@@ -37,7 +37,7 @@ Note: `:aws_access_key_id` and `:aws_secret_access_key` are required, unless you
37
37
 
38
38
  * :project_tag
39
39
 
40
- If this is defined, Capify-EC2 will only create namespaces and tasks for the EC2 instances that have a matching 'Project' tag. By default, all instances available to the specified AWS access key will be used.
40
+ If this is defined, Capify-EC2 will only create namespaces and tasks for the EC2 instances that include a matching project in a comma separated list 'Project' tag. By default, all instances available to the specified AWS access key will be used.
41
41
 
42
42
  It is possible to include multiple projects simultaneously by using the :project_tags parameter, like so:
43
43
 
@@ -109,7 +109,7 @@ You will need to create instance tags using the AWS Management Console or API, t
109
109
 
110
110
  * Tag 'Project'
111
111
 
112
- Used with the `:project_tag` option in `config/ec2.yml` to limit Capify-EC2's functionality to a subset of your instances.
112
+ Used with the `:project_tag` option in `config/ec2.yml` to limit Capify-EC2's functionality to a subset of your instances. This can also be a comma separated list of projects involving this machine.
113
113
 
114
114
  * Tag 'Roles'
115
115
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capify-ec2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.0.pre
4
+ version: 1.8.0.pre2
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors: