lib/ironfan/dsl/component.rb in ironfan-5.0.1 vs lib/ironfan/dsl/component.rb in ironfan-5.0.2
- old
+ new
@@ -92,12 +92,14 @@
def set_discovery compute, keys
if server_cluster
wire_to(compute, full_server_cluster, facet_name, keys)
else
- discover(announce_name) do |cluster_name, facet_name|
- wire_to(compute, cluster_name, facet_name, keys)
- end
+ # I'm defanging automatic discovery for now.
+ raise StandardError.new("must explicitly specify a server_cluster for discovery")
+ # discover(announce_name) do |cluster_name, facet_name|
+ # wire_to(compute, cluster_name, facet_name, keys)
+ # end
end
end
def wire_to(compute, cluster_name, facet_name, keys)
discovery = {discovers: keys.reverse.inject(cluster_name){|hsh,key| {key => hsh}}}