Sha256: e914436004174082891a28d0c7304dd53740b26fef5693b9011792219571b422
Contents?: true
Size: 938 Bytes
Versions: 9
Compression:
Stored size: 938 Bytes
Contents
=begin rdoc Cloud extensions for the DependencyResolver =end module PoolParty # Take the cloud dependency tree module DependencyResolverCloudExtensions def to_properties_hash oh = {} oh[:options] = dsl_options.merge(:cloud_name => name) oh[:resources] = ordered_resources.map {|a| a.to_properties_hash } # oh[:resources] = resources.keys.inject(OrderedHash.new) do |sum,k| # sum.merge(k.to_sym => resources[k].map {|a| a.to_properties_hash } ) # end # oh[:services] = services.keys.inject(OrderedHash.new) do |sum,k| # sum.merge(k.to_sym => services[k].map {|a| a.to_properties_hash } ) # end oh end end # Adds the to_properties_hash method on top of resources, the lowest level module DependencyResolverResourceExtensions def to_properties_hash {:pp_type => self.class.to_s.top_level_class}.merge!(dsl_options) end end end
Version data entries
9 entries across 9 versions & 2 rubygems