Sha256: f78959ae814211fb23ae50884c4df4a5e09581350cdf09c4f8ddb856d69bd08c

Contents?: true

Size: 1.41 KB

Versions: 4

Compression:

Stored size: 1.41 KB

Contents

module Sbuilder


  # Abstaract base class
  class SetupLoaderPref < SetupLoader

    # ------------------------------------------------------------------
    # Validation


    # ------------------------------------------------------------------
    # mix logger
    
    PROGNAME = nil                    # progname for logger default class name
    include Sbuilder::Utils::MyLogger # mix logger


    # ------------------------------------------------------------------
    # @!group Construct & configure


    def initialize( options = {} )
      @logger = getLogger( nil, options )
      @logger.info( "#{__method__} initialized options=#{options}" )

      super( options )
    end


    # @!endgroup        

    # ------------------------------------------------------------------
    # @!group Abstract methods from parent class

    ##
    # Pass 'extensionDef' for 'controller' use to #updatetSetup of
    # setup 'setupName'
    #
    # @param [Hash:Array] extensionDef configuration defining loading
    def doLoad( extensionDefs )
      Utils::Validate.validateProperties( extensionDefs, Constants::VALIDATION[:SetupLoaderPref][:required], Constants::VALIDATION[:SetupLoaderPref][:allowed] )
      controller.updateSetup(  setupName, extensionDefs )
    end

    # @!endgroup

    # ------------------------------------------------------------------
    # @!group Implement load


    # @!endgroup


  end # class
  
end # module

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
tla-sbuilder-0.3.9 lib/sbuilder/setup_loader_pref.rb
tla-sbuilder-0.3.8 lib/sbuilder/setup_loader_pref.rb
tla-sbuilder-0.3.7 lib/sbuilder/setup_loader_pref.rb
tla-sbuilder-0.3.4 lib/sbuilder/setup_loader_pref.rb