# File lib/deltacloud/base_driver/base_driver.rb, line 29 def self.define_hardware_profile(name,&block) @hardware_profiles ||= [] hw_profile = @hardware_profiles.find{|e| e.name == name} return if hw_profile hw_profile = ::Deltacloud::HardwareProfile.new( name, &block ) @hardware_profiles << hw_profile hw_params = hw_profile.params unless hw_params.empty? feature :instances, :hardware_profiles do decl.operation(:create) { add_params(hw_params) } end end end