Permalink
Browse files

Fixes a bug where we didn't parse the roles properly, this has existe…

…d forever\!
  • Loading branch information...
1 parent 5881d9b commit b10353819ccc9b9f8aca062c598348aae5aa8f4e @leehambley committed Jun 9, 2009
Showing with 4 additions and 1 deletion.
  1. +4 −1 Capfile
View
@@ -15,7 +15,10 @@ def load_config_for_stage(stage_name)
# puts "Setting Before() Callback before(#{hash_key.to_s}, #{hash_value.to_s})"
before(hash_key.to_s, hash_value.to_s)
elsif hash_key =~ /roles/
- role(hash_key.to_sym, hash_value.to_s)
+ hash_value.each do |role_key, role_value|
+ puts "Setting role of #{role_key} to #{role_value}"
+ role(role_key.to_sym, role_value.to_s)
+ end
else
# puts "Setting after(#{hash_key.to_s}, #{hash_value.to_s})"
set(hash_key.to_sym, hash_value.to_s)

0 comments on commit b103538

Please sign in to comment.