Class: Sbuilder::SetupLoader
- Inherits:
-
Object
- Object
- Sbuilder::SetupLoader
- Includes:
- Utils::MyLogger
- Defined in:
- lib/sbuilder/setup_loader.rb
Overview
Abstaract base class
Direct Known Subclasses
Constant Summary collapse
- PROGNAME =
mix logger
nil
Constants included from Utils::MyLogger
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#doDoload(extensionDef) ⇒ Object
Should override.
-
#getStepGenerator ⇒ Sbuilder::StepGenerator
Generator to create input.
-
#initialize(options = {}) ⇒ SetupLoader
constructor
A new instance of SetupLoader.
-
#load(extensionDef) ⇒ Object
Method called from extension-loder.
Methods included from Utils::MyLogger
Constructor Details
#initialize(options = {}) ⇒ SetupLoader
Returns a new instance of SetupLoader.
20 21 22 23 24 |
# File 'lib/sbuilder/setup_loader.rb', line 20 def initialize( = {} ) @logger = getLogger( nil, ) @logger.info( "#{__method__} initialized options=#{}" ) end |
Instance Attribute Details
#controller ⇒ Object
14 15 16 |
# File 'lib/sbuilder/setup_loader.rb', line 14 def controller @controller end |
#setupName ⇒ Object
17 18 19 |
# File 'lib/sbuilder/setup_loader.rb', line 17 def setupName @setupName end |
Instance Method Details
#doDoload(extensionDef) ⇒ Object
Should override
43 44 45 |
# File 'lib/sbuilder/setup_loader.rb', line 43 def doDoload( extensionDef ) raise "Missing implementation in sub-class" end |
#getStepGenerator ⇒ Sbuilder::StepGenerator
Returns generator to create input.
27 28 29 |
# File 'lib/sbuilder/setup_loader.rb', line 27 def getStepGenerator controller.factory.getStepGenerator end |
#load(extensionDef) ⇒ Object
Method called from extension-loder. Delegate actual load
operation to sub-class.
36 37 38 |
# File 'lib/sbuilder/setup_loader.rb', line 36 def load( extensionDef ) doLoad( extensionDef ) end |