Sha256: 56f5ac67adfb06c17bb05fb1742025348d4293ea0613fc310f43879781d38feb

Contents?: true

Size: 1.04 KB

Versions: 12

Compression:

Stored size: 1.04 KB

Contents

# Boot Sequence

include KLog::Logging

CONFIG_KEY = :ad_agent_architecture

log.kv 'working folder', Dir.pwd

KConfig.configure do |config|
  config.handlebars.defaults.add_all_defaults
end

def k_builder
  @k_builder ||= KBuilder::BaseBuilder.init(KConfig.configuration(CONFIG_KEY))
end

KConfig.configure(CONFIG_KEY) do |config|
  builder_folder    = Dir.pwd
  base_folder       = File.expand_path('../', builder_folder)
  global_template   = File.expand_path('~/dev/kgems/k_templates/templates')

  config.template_folders.add(:global_template    , global_template)
  config.template_folders.add(:template           , File.expand_path('.templates', Dir.pwd))

  config.target_folders.add(:app                  , base_folder)
  config.target_folders.add(:builder              , builder_folder)
end

KConfig.configuration(CONFIG_KEY).debug

area = KManager.add_area(CONFIG_KEY)
resource_manager = area.resource_manager
resource_manager
  .fileset
  .glob('*.rb', exclude: ['boot.rb'])
  .glob('generators/**/*.rb')
resource_manager.add_resources

KManager.boot

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
ad-agent_architecture-0.0.13 .builders/boot.rb
ad-agent_architecture-0.0.12 .builders/boot.rb
ad-agent_architecture-0.0.11 .builders/boot.rb
ad-agent_architecture-0.0.10 .builders/boot.rb
ad-agent_architecture-0.0.9 .builders/boot.rb
ad-agent_architecture-0.0.8 .builders/boot.rb
ad-agent_architecture-0.0.7 .builders/boot.rb
ad-agent_architecture-0.0.6 .builders/boot.rb
ad-agent_architecture-0.0.5 .builders/boot.rb
ad-agent_architecture-0.0.4 .builders/boot.rb
ad-agent_architecture-0.0.3 .builders/boot.rb
ad-agent_architecture-0.0.2 .builders/boot.rb