Class: Fog::Compute::StormOnDemand

Inherits:
Service
  • Object
show all
Defined in:
lib/fog/storm_on_demand/compute.rb,
lib/fog/storm_on_demand/models/compute/image.rb,
lib/fog/storm_on_demand/models/compute/config.rb,
lib/fog/storm_on_demand/models/compute/images.rb,
lib/fog/storm_on_demand/models/compute/server.rb,
lib/fog/storm_on_demand/models/compute/configs.rb,
lib/fog/storm_on_demand/models/compute/product.rb,
lib/fog/storm_on_demand/models/compute/servers.rb,
lib/fog/storm_on_demand/models/compute/products.rb,
lib/fog/storm_on_demand/models/compute/template.rb,
lib/fog/storm_on_demand/models/compute/templates.rb,
lib/fog/storm_on_demand/models/compute/notification.rb,
lib/fog/storm_on_demand/requests/compute/get_server.rb,
lib/fog/storm_on_demand/models/compute/notifications.rb,
lib/fog/storm_on_demand/requests/compute/get_product.rb,
lib/fog/storm_on_demand/requests/compute/list_images.rb,
lib/fog/storm_on_demand/requests/compute/clone_server.rb,
lib/fog/storm_on_demand/requests/compute/create_image.rb,
lib/fog/storm_on_demand/requests/compute/delete_image.rb,
lib/fog/storm_on_demand/requests/compute/list_configs.rb,
lib/fog/storm_on_demand/requests/compute/list_servers.rb,
lib/fog/storm_on_demand/requests/compute/start_server.rb,
lib/fog/storm_on_demand/requests/compute/update_image.rb,
lib/fog/storm_on_demand/requests/compute/create_server.rb,
lib/fog/storm_on_demand/requests/compute/delete_server.rb,
lib/fog/storm_on_demand/requests/compute/list_products.rb,
lib/fog/storm_on_demand/requests/compute/reboot_server.rb,
lib/fog/storm_on_demand/requests/compute/resize_server.rb,
lib/fog/storm_on_demand/requests/compute/restore_image.rb,
lib/fog/storm_on_demand/requests/compute/server_status.rb,
lib/fog/storm_on_demand/requests/compute/update_server.rb,
lib/fog/storm_on_demand/requests/compute/list_templates.rb,
lib/fog/storm_on_demand/requests/compute/server_history.rb,
lib/fog/storm_on_demand/requests/compute/shutdown_server.rb,
lib/fog/storm_on_demand/requests/compute/get_notification.rb,
lib/fog/storm_on_demand/requests/compute/get_product_code.rb,
lib/fog/storm_on_demand/requests/compute/restore_template.rb,
lib/fog/storm_on_demand/requests/compute/get_image_details.rb,
lib/fog/storm_on_demand/requests/compute/get_product_price.rb,
lib/fog/storm_on_demand/requests/compute/get_config_details.rb,
lib/fog/storm_on_demand/requests/compute/list_notifications.rb,
lib/fog/storm_on_demand/requests/compute/get_template_details.rb,
lib/fog/storm_on_demand/requests/compute/resolve_notification.rb,
lib/fog/storm_on_demand/requests/compute/current_notifications.rb,
lib/fog/storm_on_demand/requests/compute/get_product_starting_price.rb

Defined Under Namespace

Classes: Config, Configs, Image, Images, Mock, Notification, Notifications, Product, Products, Real, Server, Servers, Template, Templates

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ StormOnDemand

Returns a new instance of StormOnDemand.



16
17
18
# File 'lib/fog/storm_on_demand/models/compute/template.rb', line 16

def initialize(attributes={})
  super
end

Instance Method Details

#restore(options) ⇒ Object



20
21
22
23
# File 'lib/fog/storm_on_demand/models/compute/template.rb', line 20

def restore(options)
  requires :identity
  service.restore_template({:id => identity}.merge!(options))
end