Class: Sbuilder::SetupLoader

Inherits:
Object
  • Object
show all
Includes:
Utils::MyLogger
Defined in:
lib/sbuilder/setup_loader.rb

Overview

Abstaract base class

Direct Known Subclasses

SetupLoaderEnv, SetupLoaderPref

Constant Summary collapse

PROGNAME =

mix logger

nil

Constants included from Utils::MyLogger

Utils::MyLogger::LOGFILE

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Utils::MyLogger

#getLogger, #logfile

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( options = {} )
  @logger = getLogger( nil, options )
  @logger.info( "#{__method__} initialized options=#{options}" )
  
end

Instance Attribute Details

#controllerObject



14
15
16
# File 'lib/sbuilder/setup_loader.rb', line 14

def controller
  @controller
end

#setupNameObject



17
18
19
# File 'lib/sbuilder/setup_loader.rb', line 17

def setupName
  @setupName
end

Instance Method Details

#doDoload(extensionDef) ⇒ Object

Should override

Parameters:

  • extensionDef (Hash)

    configuration defining loading



43
44
45
# File 'lib/sbuilder/setup_loader.rb', line 43

def doDoload( extensionDef )
  raise "Missing implementation in sub-class"
end

#getStepGeneratorSbuilder::StepGenerator

Returns generator to create input.

Returns:



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.

Parameters:

  • extensionDef (Hash)

    configuration defining loading



36
37
38
# File 'lib/sbuilder/setup_loader.rb', line 36

def load( extensionDef )
  doLoad( extensionDef )
end