Class: Sbuilder::SetupLoaderPref
- Inherits:
-
SetupLoader
- Object
- SetupLoader
- Sbuilder::SetupLoaderPref
- Includes:
- Utils::MyLogger
- Defined in:
- lib/sbuilder/setup_loader_pref.rb
Overview
Abstaract base class
Constant Summary collapse
- PROGNAME =
mix logger
nil
Constants included from Utils::MyLogger
Instance Attribute Summary
Attributes inherited from SetupLoader
Construct & configure collapse
-
#initialize(options = {}) ⇒ SetupLoaderPref
constructor
A new instance of SetupLoaderPref.
Abstract methods from parent class collapse
-
#doLoad(extensionDefs) ⇒ Object
Pass ‘extensionDef’ for ‘controller’ use to #updatetSetup of setup ‘setupName’.
Methods included from Utils::MyLogger
Methods inherited from SetupLoader
#doDoload, #getStepGenerator, #load
Constructor Details
#initialize(options = {}) ⇒ SetupLoaderPref
Returns a new instance of SetupLoaderPref.
22 23 24 25 26 27 |
# File 'lib/sbuilder/setup_loader_pref.rb', line 22 def initialize( = {} ) @logger = getLogger( nil, ) @logger.info( "#{__method__} initialized options=#{options}" ) super( ) end |
Instance Method Details
#doLoad(extensionDefs) ⇒ Object
Pass ‘extensionDef’ for ‘controller’ use to #updatetSetup of setup ‘setupName’
40 41 42 43 |
# File 'lib/sbuilder/setup_loader_pref.rb', line 40 def doLoad( extensionDefs ) Utils::Validate.validateProperties( extensionDefs, Constants::VALIDATION[:SetupLoaderPref][:required], Constants::VALIDATION[:SetupLoaderPref][:allowed] ) controller.updateSetup( setupName, extensionDefs ) end |