Skip to content

Commit

Permalink
tidying up a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
joshbronson committed Sep 24, 2013
1 parent 732544d commit 3c9a763
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
4 changes: 1 addition & 3 deletions lib/ironfan.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,7 @@ def self.realm(name, attrs={}, &block)
else
rlm = Ironfan::Dsl::Realm.new(:name => name)
rlm.receive!(attrs, &block)
rlm.wire_clusters
realm_clusters = Hash[rlm.clusters.keys.map{|k| [k.to_sym, rlm.clusters[k].resolve]}]
@@clusters.merge!(realm_clusters)
rlm.clusters.keys.each{|k| @@clusters[k.to_sym] = rlm.clusters[k].resolve}
@@realms[name] = rlm
end
end
Expand Down
4 changes: 0 additions & 4 deletions lib/ironfan/dsl/realm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ def cluster(label, attrs={},&blk)
end

def realm_name() name; end

def wire_clusters()
STDERR.puts "wiring!!!"
end
end

end
Expand Down

0 comments on commit 3c9a763

Please sign in to comment.