class Nifty::Events::Event

Abstract class for all events

@author Michal Kimle @abstract @attr_reader [Cloud::Appliance::Descriptor::Appliance] appliance appliance representing an event @attr_reader [Nifty::TransferMethod] transfer_method event's transfer method

Attributes

appliance[R]
transfer_method[R]

Public Class Methods

event?() click to toggle source

Helper method to recognize NIFTY event

@return [TrueClass,FalseClass] whether class is an event or not

# File lib/nifty/events/event.rb, line 23
def self.event?
  false
end
new(appliance, transfer_method) click to toggle source

Constructor @abstract @param [Cloud::Appliance::Descriptor::Appliance] appliance appliance representing an event @param [Nifty::TransferMethod] transfer_method event's transfer method

# File lib/nifty/events/event.rb, line 14
def initialize(appliance, transfer_method)
  appliance.os = Cloud::Appliance::Descriptor::Os.new unless appliance.os
  @appliance = appliance
  @transfer_method = transfer_method
end

Public Instance Methods

run() click to toggle source

Runs the event

@raise Nifty::Errors::Events::EventError

# File lib/nifty/events/event.rb, line 30
def run
end