Sha256: ddcaf7a70948689aa796dd499a392c34152bc80b31d11fad065cf5a9e8383dfe

Contents?: true

Size: 567 Bytes

Versions: 1

Compression:

Stored size: 567 Bytes

Contents

require 'config_builder/loader'
require 'config_builder/filter_stack'
require 'config_builder/model'

module ConfigBuilder
  class Runner

    def run(identifier, method, value)
      data = ConfigBuilder::Loader.generate(identifier, method, value)
      filtered_data = run_filters(data)
      model = generate_model(filtered_data)
    end

    private

    def run_filters(data)
      stack = ConfigBuilder::FilterStack.new
      stack.filter(data)
    end

    def generate_model(filtered_hash)
      ConfigBuilder::Model.generate(filtered_hash)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vagrant-config_builder-0.1.0 lib/config_builder/runner.rb