roundsman-sgonyea 0.1.0.1 → 0.1.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
- put attrs.to_json, roundsman_working_dir("solo.json"), :via => :scp
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.match(key) }
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
@@ -1,3 +1,3 @@
1
1
  module Roundsman
2
- VERSION = "0.1.0.1"
2
+ VERSION = "0.1.0.2"
3
3
  end
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.1
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: 2012-10-19 00:00:00.000000000 Z
12
+ date: 2013-04-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano