Factory out to subclasses
# File lib/ironfan/dsl/cloud.rb, line 8 def self.receive(obj, &block) if obj.is_a?(Hash) obj = obj.symbolize_keys obj[:_type] ||= case obj[:name] when :ec2 then Ec2 when :virtualbox then VirtualBox else raise "Unsupported cloud #{obj[:name]}" end end super end
Generated with the Darkfish Rdoc Generator 2.