Skip to content

Commit

Permalink
fix: string cluster names
Browse files Browse the repository at this point in the history
Previously, string cluster names in realms did not work.

Change-Id: I1368ad13719f2222afcc8f71d9d26a4ef6bd1d65
  • Loading branch information
joshbronson committed Mar 21, 2014
1 parent dd9b501 commit 55d92e6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/ironfan/dsl/realm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ def initialize(attrs = {}, &blk)
end

def cluster(label, attrs = {}, &blk)
label = label.to_sym

if clusters.keys.include? label
clusters[label].tap do |cl|
cl.receive! attrs
Expand Down

0 comments on commit 55d92e6

Please sign in to comment.