roundsman-sgonyea 0.1.0.1 → 0.1.0.2
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/lib/roundsman/capistrano.rb +9 -2
- data/lib/roundsman/version.rb +1 -1
- metadata +2 -2
data/lib/roundsman/capistrano.rb
CHANGED
|
@@ -248,7 +248,14 @@ require 'tempfile'
|
|
|
248
248
|
remove_attrs = fetch(:roundsman_skip_attrs)
|
|
249
249
|
attrs.delete(*remove_attrs) if remove_attrs
|
|
250
250
|
|
|
251
|
-
|
|
251
|
+
if variables.has_key?(:per_server_conf)
|
|
252
|
+
per_server_conf.each do |servers, conf|
|
|
253
|
+
server_conf = attrs.merge(conf)
|
|
254
|
+
put server_conf.to_json, roundsman_working_dir("solo.json"), :via => :scp, :hosts => servers
|
|
255
|
+
end
|
|
256
|
+
else
|
|
257
|
+
put attrs.to_json, roundsman_working_dir("solo.json"), :via => :scp
|
|
258
|
+
end
|
|
252
259
|
end
|
|
253
260
|
|
|
254
261
|
# Recursively removes procs from hashes. Procs can exist because you specified them like this:
|
|
@@ -257,7 +264,7 @@ require 'tempfile'
|
|
|
257
264
|
def remove_procs_from_hash(hash)
|
|
258
265
|
new_hash = {}
|
|
259
266
|
hash.each do |key, value|
|
|
260
|
-
next if fetch(:filter_sensitive_settings).find { |regex| regex
|
|
267
|
+
next if fetch(:filter_sensitive_settings).find { |regex| regex === key }
|
|
261
268
|
real_value = if value.respond_to?(:call)
|
|
262
269
|
begin
|
|
263
270
|
value.call
|
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.2
|
|
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:
|
|
12
|
+
date: 2013-04-17 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: capistrano
|