lib/openstack/compute/image.rb in openstack-compute-1.0.2 vs lib/openstack/compute/image.rb in openstack-compute-1.1.0.pre0

- old
+ new

@@ -1,16 +1,19 @@ module OpenStack module Compute class Image + require 'compute/metadata' + attr_reader :id attr_reader :name attr_reader :serverId attr_reader :updated attr_reader :created attr_reader :status attr_reader :progress + attr_reader :metadata # This class provides an object for the "Image" of a server. The Image refers to the Operating System type and version. # # Returns the Image object identifed by the supplied ID number. Called from the get_image instance method of OpenStack::Compute::Connection, # it will likely not be called directly from user code. @@ -21,9 +24,10 @@ # >> image.name # => "CentOS 5.2" def initialize(connection,id) @id = id @connection = connection + @metadata = OpenStack::Compute::ImageMetadata.new(connection, id) populate end # Makes the HTTP call to load information about the provided image. Can also be called directly on the Image object to refresh data. # Returns true if the refresh call succeeds.