Sha256: 1dc7764dd3a676a460a597eb683e7b14437b66a950e0821d331b8c1b353d767e

Contents?: true

Size: 1.47 KB

Versions: 16

Compression:

Stored size: 1.47 KB

Contents

require File.expand_path("../builder/version", __FILE__)

module Vx
  module Builder
    autoload :Source,             File.expand_path("../builder/source",              __FILE__)
    autoload :Task,               File.expand_path("../builder/task",                __FILE__)
    autoload :Configuration,      File.expand_path("../builder/configuration",       __FILE__)
    autoload :BuildConfiguration, File.expand_path("../builder/build_configuration", __FILE__)
    autoload :MatrixBuilder,      File.expand_path("../builder/matrix_builder",      __FILE__)
    autoload :DeployBuilder,      File.expand_path("../builder/deploy_builder",      __FILE__)
    autoload :ScriptBuilder,      File.expand_path("../builder/script_builder",      __FILE__)

    module Helper
      autoload :Config, File.expand_path("../builder/helper/config", __FILE__)
      autoload :TraceShCommand, File.expand_path("../builder/helper/trace_sh_command", __FILE__)
    end

    class MissingKeys < Exception ; end

    extend self

    def configure
      yield config if block_given?
      config
    end

    def config
      @config ||= Configuration.new
    end

    def reset_config!
      @config = nil
    end

    def matrix(build_configuration)
      MatrixBuilder.new(build_configuration)
    end

    def deploy(matrix_builder, options = {})
      DeployBuilder.new(matrix_builder, options)
    end

    def script(task, build_configuration)
      ScriptBuilder.new task, build_configuration
    end

  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
vx-builder-0.4.0 lib/vx/builder.rb
vx-builder-0.3.14 lib/vx/builder.rb
vx-builder-0.3.13 lib/vx/builder.rb
vx-builder-0.3.12 lib/vx/builder.rb
vx-builder-0.3.11 lib/vx/builder.rb
vx-builder-0.3.10 lib/vx/builder.rb
vx-builder-0.3.9 lib/vx/builder.rb
vx-builder-0.3.8 lib/vx/builder.rb
vx-builder-0.3.7 lib/vx/builder.rb
vx-builder-0.3.6 lib/vx/builder.rb
vx-builder-0.3.5 lib/vx/builder.rb
vx-builder-0.3.4 lib/vx/builder.rb
vx-builder-0.3.3 lib/vx/builder.rb
vx-builder-0.3.2 lib/vx/builder.rb
vx-builder-0.3.1 lib/vx/builder.rb
vx-builder-0.3.0 lib/vx/builder.rb