class KBuilder::Configuration

Does this class need to move out into k_types? It is being used with k_manager in a similar fashion

Configuration class

Attributes

target_folders[RW]

Target folders provide a set named folders that can be written to

template_folders[RW]

Template folders provides layered folders that templates can exist within

Public Class Methods

new() click to toggle source
Calls superclass method
# File lib/k_builder/configuration.rb, line 35
def initialize
  super
  # @target_folder = Dir.getwd
  # @template_folder = File.join(Dir.getwd, '.templates')
  # @global_template_folder = nil
  @target_folders = KType::NamedFolders.new
  @template_folders = KType::LayeredFolders.new
end

Public Instance Methods

debug() click to toggle source
# File lib/k_builder/configuration.rb, line 51
def debug
  log.subheading 'kbuilder base configuration'

  target_folders.debug(title: 'target_folders')

  log.info ''

  template_folders.debug(title: 'template folders (search order)')
  ''
end
initialize_copy(orig) click to toggle source
Calls superclass method
# File lib/k_builder/configuration.rb, line 44
def initialize_copy(orig)
  super(orig)

  @target_folders = orig.target_folders.clone
  @template_folders = orig.template_folders.clone
end