roundsman-sgonyea 0.1.0.2 → 0.1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/roundsman/capistrano.rb +15 -8
- data/lib/roundsman/version.rb +1 -1
- metadata +2 -2
data/lib/roundsman/capistrano.rb
CHANGED
@@ -246,16 +246,23 @@ require 'tempfile'
|
|
246
246
|
attrs = remove_procs_from_hash variables.dup
|
247
247
|
|
248
248
|
remove_attrs = fetch(:roundsman_skip_attrs)
|
249
|
-
attrs.delete(*remove_attrs) if remove_attrs
|
250
249
|
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
put attrs.to_json, roundsman_working_dir("solo.json"), :via => :scp
|
250
|
+
find_servers_for_task(current_task).each do |current_server|
|
251
|
+
server_conf = attrs.merge(current_server.options)
|
252
|
+
|
253
|
+
server_conf.delete(*remove_attrs) if remove_attrs
|
254
|
+
|
255
|
+
put server_conf.to_json, roundsman_working_dir("solo.json"), :via => :scp, :hosts => current_server.host
|
258
256
|
end
|
257
|
+
|
258
|
+
# if variables.has_key?(:per_server_conf)
|
259
|
+
# per_server_conf.each do |servers, conf|
|
260
|
+
# server_conf = attrs.merge(conf)
|
261
|
+
# put server_conf.to_json, roundsman_working_dir("solo.json"), :via => :scp, :hosts => servers
|
262
|
+
# end
|
263
|
+
# else
|
264
|
+
# put attrs.to_json, roundsman_working_dir("solo.json"), :via => :scp
|
265
|
+
# end
|
259
266
|
end
|
260
267
|
|
261
268
|
# Recursively removes procs from hashes. Procs can exist because you specified them like this:
|
data/lib/roundsman/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: roundsman-sgonyea
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0.
|
4
|
+
version: 0.1.0.3
|
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: 2013-04-
|
12
|
+
date: 2013-04-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: capistrano
|