Sha256: 04d417446c75e9a80b13694bd2d7492418a2f88d485e31440745803cacb2cca5

Contents?: true

Size: 621 Bytes

Versions: 5

Compression:

Stored size: 621 Bytes

Contents

class TerraspaceBundler::Dsl
  module Syntax
    def org(url)
      config.org = url
    end
    alias_method :user, :org

    def base_clone_url(value)
      config.base_clone_url = value
    end

    def export_to(path)
      config.export_to = path
    end

    def export_purge(value)
      config.export_purge = value
    end

    def stack_options(value={})
      config.stack_options.merge!(value)
    end

    def clone_with(value)
      config.clone_with = value
    end

    def config
      TB.config
    end

    def mod(*args, **options)
      meta[:mods] << {args: args, options: options}
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
terraspace-bundler-0.4.4 lib/terraspace_bundler/dsl/syntax.rb
terraspace-bundler-0.4.3 lib/terraspace_bundler/dsl/syntax.rb
terraspace-bundler-0.4.2 lib/terraspace_bundler/dsl/syntax.rb
terraspace-bundler-0.4.1 lib/terraspace_bundler/dsl/syntax.rb
terraspace-bundler-0.4.0 lib/terraspace_bundler/dsl/syntax.rb