instance_selector 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/lib/instance_selector/capistrano.rb +1 -1
- data/lib/instance_selector/version.rb +1 -1
- metadata +3 -3
data/README.md
CHANGED
@@ -28,7 +28,7 @@ By default, only running instances will be included in the results. Overriding
|
|
28
28
|
### Standalone
|
29
29
|
|
30
30
|
require 'instance_selector/connection'
|
31
|
-
conn = InstanceSelector::Connection.
|
31
|
+
conn = InstanceSelector::Connection.factory(:aws)
|
32
32
|
instances = connection.instances(:tags => {"Environment" => "staging"})
|
33
33
|
|
34
34
|
### With Capistrano
|
@@ -2,7 +2,7 @@ require 'instance_selector'
|
|
2
2
|
|
3
3
|
Capistrano::Configuration.instance(:must_exist).load do
|
4
4
|
def instance_selector(cap_role, provider, args={})
|
5
|
-
client = InstanceSelector::Connection.factory(
|
5
|
+
client = InstanceSelector::Connection.factory(provider)
|
6
6
|
instances = client.instances(client.args_to_filters(args))
|
7
7
|
instances.keys.each { |instance| role(cap_role, *instances.keys) }
|
8
8
|
end
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: instance_selector
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0.
|
5
|
+
version: 0.0.2
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Kevin McFadden
|
@@ -106,7 +106,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
106
106
|
- !ruby/object:Gem::Version
|
107
107
|
segments:
|
108
108
|
- 0
|
109
|
-
hash:
|
109
|
+
hash: -1808796389303404044
|
110
110
|
version: '0'
|
111
111
|
none: false
|
112
112
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
@@ -115,7 +115,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
115
115
|
- !ruby/object:Gem::Version
|
116
116
|
segments:
|
117
117
|
- 0
|
118
|
-
hash:
|
118
|
+
hash: -1808796389303404044
|
119
119
|
version: '0'
|
120
120
|
none: false
|
121
121
|
requirements: []
|