# File lib/cimi/model/machine_image.rb, line 36 def self.from_image(image, context) self.new( :name => image.id, :uri => context.machine_image_url(image.id), :description => image.description, :created => Time.now.to_s, :image_location => { :href => "#{context.driver.name}://#{image.id}" } # FIXME ) end