Sha256: 7397b8a80f7cbb45003c95c25d4a93ddcf514add22b1f6333eb2b9b98eb0238c

Contents?: true

Size: 1.44 KB

Versions: 2

Compression:

Stored size: 1.44 KB

Contents

!!! XML
%instance{:href => instance_url(@instance.id)}
  %id<
    =@instance.id
  %name<
    =@instance.name
  %owner_id<
    =@instance.owner_id
  %image{:href => image_url(@instance.image_id)}
  %realm{:href => realm_url(@instance.realm_id)}
  %state<
    =@instance.state
  - haml_tag :"hardware-profile", {:href => hardware_profile_url(@instance.instance_profile.id)} do
    %id<
      =@instance.instance_profile.id
    - @instance.instance_profile.overrides.each do |p, v|
      %property{:kind => 'fixed', :name => p, :value => v, :unit => Deltacloud::HardwareProfile::unit(p)}
  %actions
    - @instance.actions.compact.each do |instance_action|
      %link{:rel => instance_action, :method => instance_action_method(instance_action), :href => self.send("#{instance_action}_instance_url", @instance.id)}
  %public-addresses
    - @instance.public_addresses.each do |address|
      %address<
        =address
  %private-addresses
    - @instance.private_addresses.each do |address|
      %address<
        =address
  - if driver_has_auth_features?
    %authentication{ :type => driver_auth_feature_name }
      - if @instance.authn_feature_failed?
        %error  #{@instance.authn_error}
      - else
        - if driver_auth_feature_name == 'password'
          %login
            %username #{@instance.username}
            %password #{@instance.password}
        - if driver_auth_feature_name == 'key'
          %login
            %keyname #{@instance.keyname}

Version data entries

2 entries across 2 versions & 2 rubygems

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