Sha256: 262298d3cb4528213e95b4d95cb65468c9f21ce2e19f5ed569506b3df005faa5

Contents?: true

Size: 699 Bytes

Versions: 3

Compression:

Stored size: 699 Bytes

Contents

- unless defined?(partial)
  !!! XML
%hardware-profile{ :href => hardware_profile_url(@profile.name) }
  %id= @profile.name
  - @profile.each_property do |prop|
    - attr = { :name => prop.name, :kind => prop.kind, :unit => prop.unit }
    - if prop.kind == :fixed
      %property{ attr, :value => prop.value }/
    - else
      %property{ attr, :value => prop.default }
        %param{ :operation => "create", :href => instances_url, :method => "post", :name  => prop.param }
        - if prop.kind == :range
          %range{ :first => prop.first, :last => prop.last }/
        - elsif prop.kind == :enum
          %enum
            - prop.values.each do |v|
              %entry{ :value => v }/

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
bbrowning-deltacloud-core-0.0.1.1 views/hardware_profiles/show.xml.haml
deltacloud-core-0.0.2 views/hardware_profiles/show.xml.haml
deltacloud-core-0.0.1 views/hardware_profiles/show.xml.haml