Class: Nifty::Events::Opennebula::Event

Inherits:
Event
  • Object
show all
Defined in:
lib/nifty/events/opennebula/event.rb

Overview

OpenNebula event

Author:

  • Michal Kimle

Instance Attribute Summary collapse

Attributes inherited from Event

#appliance, #transfer_method

Instance Method Summary collapse

Methods inherited from Event

event?, #run

Constructor Details

#initialize(appliance, transfer_method, client, datastores, parameters) ⇒ Event

Constructor

Parameters:

  • appliance (Cloud::Appliance::Descriptor::Appliance)
  • transfer_method (Nifty::TransferMethod)
  • client (OpenNebula::Client)
  • datastores (Array)
  • parameters (Hash)


17
18
19
20
21
22
# File 'lib/nifty/events/opennebula/event.rb', line 17

def initialize(appliance, transfer_method, client, datastores, parameters)
  super(appliance, transfer_method)
  @client = client
  @datastores = datastores
  @parameters = parameters
end

Instance Attribute Details

#clientOpenNebula::Client (readonly)

Returns the current value of client.

Returns:

  • (OpenNebula::Client)

    the current value of client



7
8
9
# File 'lib/nifty/events/opennebula/event.rb', line 7

def client
  @client
end

#datastoresArray (readonly)

Returns the current value of datastores.

Returns:

  • (Array)

    the current value of datastores



7
8
9
# File 'lib/nifty/events/opennebula/event.rb', line 7

def datastores
  @datastores
end

#parametersHash (readonly)

Returns the current value of parameters.

Returns:

  • (Hash)

    the current value of parameters



7
8
9
# File 'lib/nifty/events/opennebula/event.rb', line 7

def parameters
  @parameters
end