class Nifty::Backend
Abstract class for all NIFTY backends
@author Michal Kimle
Public Class Methods
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
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
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
Prepares backend for integration with NIFTY
@param [Hash] parameters to help the migration
# File lib/nifty/backend.rb, line 56 def migrate(parameters) end
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
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
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
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