1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/bluebox/models/compute/image.rb

35 lines
609 B
Ruby
Raw Normal View History

2010-10-04 17:02:08 -04:00
require 'fog/core/model'
module Fog
module Compute
class Bluebox
class Image < Fog::Model
identity :id
attribute :block_id
attribute :description
attribute :public
attribute :created_at, :aliases => 'created'
def save
requires :block_id
data = connection.create_template(block_id, attributes)
true
end
def destroy
requires :id
data = connection.destroy_template(id)
true
end
end
end
end
end