class Nifty::Backend

Abstract class for all NIFTY backends

@author Michal Kimle

Public Class Methods

backend?() click to toggle source

Helper method to recognize NIFTY backend

@return [TrueClass, FalseClass] whether or not class is a NIFTY backend

# File lib/nifty/backend.rb, line 9
def backend?
  false
end
create_event(event_class, appliance, transfer_method, parameters) click to toggle source

Creates specific event for the backend

@abstract @param [Nifty::Events::Event] event_class class object representing event @param [Cloud::Appliance::Descriptor::Appliance] appliance description @param [Nifty::TransferMethod] transfer_method instance of transfer method used in the event @param [Hash] parameters any additional parameters @return [Nifty::Events::Event] instance of event

# File lib/nifty/backend.rb, line 67
def create_event(event_class, appliance, transfer_method, parameters)
end
description() click to toggle source

Returns textual description of the backend Used in help messages.

@abstract @return [String, nil] textual description of the backend

# File lib/nifty/backend.rb, line 18
def description
  nil
end
migrate(parameters) click to toggle source

Prepares backend for integration with NIFTY

@param [Hash] parameters to help the migration

# File lib/nifty/backend.rb, line 56
def migrate(parameters)
end
migrate_options() click to toggle source

Returns hash from which new CLI command for backend is constructed

@abstract @return [Hash, nil] hash from which new CLI command for backend is constructed

# File lib/nifty/backend.rb, line 34
def migrate_options
  nil
end
options() click to toggle source

Returns hash from which new CLI command for backend is constructed

@abstract @return [Hash, nil] hash from which new CLI command for backend is constructed

# File lib/nifty/backend.rb, line 26
def options
  nil
end
post(parameters) click to toggle source

Routine run after all the events are processed

@abstract @param [Hash] parameters to run post method with

# File lib/nifty/backend.rb, line 49
def post(parameters)
end
pre(parameters) click to toggle source

Routine run before any events are processed

@abstract @param [Hash] parameters to run pre method with

# File lib/nifty/backend.rb, line 42
def pre(parameters)
end