Sha256: e46499b7e4b81422f8582e3bd996ae97c599b774a3868bcc039b6782c10c462e

Contents?: true

Size: 1.88 KB

Versions: 23

Compression:

Stored size: 1.88 KB

Contents

!!! XML
%instance{:href => instance_url(@instance.id), :id => @instance.id}
  - if @instance.name
    %name<
      =@instance.name
  - if @instance.owner_id
    %owner_id<
      =@instance.owner_id
  - if @instance.image_id
    %image{:href => image_url(@instance.image_id), :id => @instance.image_id }
  - if @instance.realm_id
    %realm{:href => realm_url(@instance.realm_id), :id => @instance.realm_id }
  - if @instance.state
    %state<
      =@instance.state
  - if @instance.instance_profile
    - haml_tag :"hardware_profile", {:id => @instance.instance_profile.id, :href => hardware_profile_url(@instance.instance_profile.id)} do
      - @instance.instance_profile.overrides.each do |p, v|
        %property{:kind => 'fixed', :name => p, :value => v, :unit => Deltacloud::HardwareProfile::unit(p)}
  - if @instance.actions
    %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)}
  - if @instance.instance_variables.include?("@launch_time")
    %launch_time<
      =@instance.launch_time
  - if @instance.public_addresses
    %public_addresses
      - @instance.public_addresses.each do |address|
        %address<
          =address
  - if @instance.private_addresses
    %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

23 entries across 23 versions & 3 rubygems

Version Path
steamcannon-deltacloud-core-0.1.2.1 views/instances/show.xml.haml
steamcannon-deltacloud-core-0.1.1.3 views/instances/show.xml.haml
deltacloud-core-0.1.2 views/instances/show.xml.haml
steamcannon-deltacloud-core-0.1.1.2 views/instances/show.xml.haml
steamcannon-deltacloud-core-0.1.1.1 views/instances/show.xml.haml
deltacloud-core-0.1.1 views/instances/show.xml.haml
deltacloud-core-0.1.0 views/instances/show.xml.haml
deltacloud-core-0.0.9 views/instances/show.xml.haml
steamcannon-deltacloud-core-0.0.8.1-java views/instances/show.xml.haml
steamcannon-deltacloud-core-0.0.8.1 views/instances/show.xml.haml
deltacloud-core-0.0.8 views/instances/show.xml.haml
steamcannon-deltacloud-core-0.0.7.2 views/instances/show.xml.haml
steamcannon-deltacloud-core-0.0.7.2-java views/instances/show.xml.haml
steamcannon-deltacloud-core-0.0.7.1 views/instances/show.xml.haml
steamcannon-deltacloud-core-0.0.7.1-java views/instances/show.xml.haml
deltacloud-core-0.0.7 views/instances/show.xml.haml
bbrowning-deltacloud-core-0.0.6.1-java views/instances/show.xml.haml
bbrowning-deltacloud-core-0.0.6-java views/instances/show.xml.haml
bbrowning-deltacloud-core-0.0.6 views/instances/show.xml.haml
deltacloud-core-0.0.6 views/instances/show.xml.haml