Class: Nifty::Backend
- Inherits:
-
Object
- Object
- Nifty::Backend
- Defined in:
- lib/nifty/backend.rb
Overview
Abstract class for all NIFTY backends
Direct Known Subclasses
Class Method Summary collapse
-
.backend? ⇒ TrueClass, FalseClass
Helper method to recognize NIFTY backend.
-
.create_event(event_class, appliance, transfer_method, parameters) ⇒ Nifty::Events::Event
abstract
Creates specific event for the backend.
-
.description ⇒ String?
abstract
Returns textual description of the backend Used in help messages.
-
.migrate(parameters) ⇒ Object
Prepares backend for integration with NIFTY.
-
.migrate_options ⇒ Hash?
abstract
Returns hash from which new CLI command for backend is constructed.
-
.options ⇒ Hash?
abstract
Returns hash from which new CLI command for backend is constructed.
-
.post(parameters) ⇒ Object
abstract
Routine run after all the events are processed.
-
.pre(parameters) ⇒ Object
abstract
Routine run before any events are processed.
Class Method Details
.backend? ⇒ TrueClass, FalseClass
Helper method to recognize NIFTY backend
9 10 11 |
# File 'lib/nifty/backend.rb', line 9 def backend? false end |
.create_event(event_class, appliance, transfer_method, parameters) ⇒ Nifty::Events::Event
Creates specific event for the backend
67 68 |
# File 'lib/nifty/backend.rb', line 67 def create_event(event_class, appliance, transfer_method, parameters) end |
.description ⇒ String?
Returns textual description of the backend Used in help messages.
18 19 20 |
# File 'lib/nifty/backend.rb', line 18 def description nil end |
.migrate(parameters) ⇒ Object
Prepares backend for integration with NIFTY
56 57 |
# File 'lib/nifty/backend.rb', line 56 def migrate(parameters) end |
.migrate_options ⇒ Hash?
Returns hash from which new CLI command for backend is constructed
34 35 36 |
# File 'lib/nifty/backend.rb', line 34 def nil end |
.options ⇒ Hash?
Returns hash from which new CLI command for backend is constructed
26 27 28 |
# File 'lib/nifty/backend.rb', line 26 def nil end |
.post(parameters) ⇒ Object
Routine run after all the events are processed
49 50 |
# File 'lib/nifty/backend.rb', line 49 def post(parameters) end |
.pre(parameters) ⇒ Object
Routine run before any events are processed
42 43 |
# File 'lib/nifty/backend.rb', line 42 def pre(parameters) end |