Sha256: 1dd956aafa2ca9c4b07a50a56177d0ffff18e5ac8d7825dfac77396108850444

Contents?: true

Size: 511 Bytes

Versions: 1

Compression:

Stored size: 511 Bytes

Contents

module TerraspaceBundler
  class Setup
    def initialize(options={})
      @options = options
    end

    def setup!
      # Run the DSL to possibly override the config defaults
      meta = Dsl.new.run
      export_path = meta[:global][:export_path]
      TB.config.export_path = export_path if export_path

      # cli --terrafile option
      if @options[:terrafile]
        TB.config.terrafile = @options[:terrafile]
        TB.config.lockfile = "#{@options[:terrafile]}.lock"
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
terraspace-bundler-0.1.0 lib/terraspace_bundler/setup.rb