Class ImageFactoryConsole
In: lib/imagefactory/console.rb
Parent: Qmf2::ConsoleHandler

Methods

Attributes

handler  [RW] 
q  [RW] 

Public Class methods

Public Instance methods

TODO: enhance both of these methods to handle multiple agents

TODO: handle agent restart events (this will be more useful when restarted agent can recover an in-process build

TODO: handle schema updates. This will be more useful when/if we make this a more generic console to talk to different agents.

Call this method to initiate a build, and get back an array of BuildAdaptor objects.

  • template => String

Description of what to build. Can be xml, uuid, or url

  • targets => Array

Represents the names of the clouds to target (ec2, mock, rackspace, etc)

  • image_id => String

The UUID of an image previously built

  • build_id => String

The UUID of a previous build of the image

  • Returns => an array of BuildAdaptor objects

DEPRECATED: Please use build instead. Call this method to initiate a build, and get back an BuildAdaptor object.

  • descriptor => String

This can be either xml or a url pointing to the xml

  • target => String

Represents the target provider type to build for (ec2, mock, etc)

  • Returns => a BuildAdaptor object

Call this method to import an image array of BuildAdaptor objects.

  • image => string

The uuid of an existing image

the uuid of an existing build, or the empty string

  • target_identifier => string

the target specific image ID

  • image_desc => string

an xml string description of the image

  • target => string

name of the cloud to target

  • provider => string

the name of the cloud provider, often a region Returns => a map including UUIDs as strings for ‘target_image’, ‘build’, ‘image’, ‘provider_image‘

Call this method to push an image to a provider, and get back an array of BuildAdaptor objects.

  • providers => Array

Represents the target providers to build for (ec2-us-east, mock1, etc)

  • credentials => String

XML block to be used for registration, upload, etc

  • image_id => String

The UUID of an image previously built

  • build_id => String

The UUID of a previous build of the image

  • Returns => an array of BuildAdaptor objects

DEPRECATED: Please use push instead. Call this method to push an image to a provider, and get back an BuildAdaptor object.

  • image_id => String (uuid)
  • provider => String

Represents the target provider to build for (ec2-us-east, mock, etc)

  • credentials => String

XML block to be used for registration, upload, etc

  • Returns => a BuildAdaptor object

[Validate]