Method: CapsuleCD::TransformEngine#transform
- Defined in:
- lib/capsulecd/base/transform_engine.rb
#transform(engine, config_file, type = :repo) ⇒ Object
type can only be :repo or :global
10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/capsulecd/base/transform_engine.rb', line 10 def transform(engine, config_file, type = :repo) #type can only be :repo or :global @engine = engine @type = type if !config_file || !File.exists?(config_file) puts "no #{type} configuration file found, no engine hooks applied" return end #parse the config file and generate a module file that we can use as part of our engine @config = YAML.load(File.open(config_file).read) populate_engine_extension register_extension end |