Module: Cerberus::Builder

Defined in:
lib/cerberus/builder/base.rb,
lib/cerberus/component_lazy_loader.rb

Defined Under Namespace

Classes: Bjam, Maven2, RSpec, Rake, Rant, Ruby, RubyBase

Constant Summary collapse

TYPES =
{
  :maven2 => 'Maven2', #Cerberus::Builder
  :rake => 'Rake',
  :rspec => 'RSpec',
  :rant => 'Rant',
  :bjam => 'Bjam',
  :ruby => 'Ruby'
}

Class Method Summary collapse

Class Method Details

.get(type) ⇒ Object



82
83
84
85
86
87
# File 'lib/cerberus/component_lazy_loader.rb', line 82

def self.get(type)
  class_name = TYPES[type.to_sym]
  say "Builder #{type} not supported" unless class_name
  require "cerberus/builder/#{type}"
  const_get(class_name)
end