client/lib/base_object.rb
def add_hwp_property!(name, property, type)
        hwp_property=case type
          when :float then DeltaCloud::HWP::FloatProperty.new(property, name)
          when :integer then DeltaCloud::HWP::Property.new(property, name)
        end
        @objects << {
          :type => :property,
          :method_name => name.sanitize,
          :property => hwp_property
        }
      end
# Method add property for hardware profile
Method add property for hardware profile
Method add property for hardware profile
def add_hwp_property!(name, property, type)
        hwp_property=case type
          when :float then DeltaCloud::HWP::FloatProperty.new(property, name)
          when :integer then DeltaCloud::HWP::Property.new(property, name)
        end
        @objects << {
          :type => :property,
          :method_name => name.sanitize,
          :property => hwp_property
        }
      end
def add_hwp_property! ( name , property , type ) hwp_property = case type when :float then DeltaCloud :: HWP :: FloatProperty . new ( property , name ) when :integer then DeltaCloud :: HWP :: Property . new ( property , name ) end @objects << { :type => :property , :method_name => name . sanitize , :property => hwp_property } end
Method add property for hardware profile
Method add property for hardware profile
name
property
type