Sha256: 32364dae692b717de2e9dfd310c8629ac440e7331d478acff9eb86b934d4827a

Contents?: true

Size: 542 Bytes

Versions: 9

Compression:

Stored size: 542 Bytes

Contents

module TerraspaceBundler
  module Core
    extend Memoist

    @@logger = nil
    def logger
      config.logger
    end

    def logger=(v)
      @@logger = v
    end

    def config
      Config.instance.config
    end

    # DSL is evaluated once lazily when it get used
    def dsl
      dsl = Dsl.new
      dsl.run
      dsl
    end
    memoize :dsl

    @@update_mode = false
    def update_mode
      @@update_mode
    end
    alias_method :update_mode?, :update_mode

    def update_mode=(v)
      @@update_mode = v
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
terraspace-bundler-0.5.0 lib/terraspace_bundler/core.rb
terraspace-bundler-0.4.4 lib/terraspace_bundler/core.rb
terraspace-bundler-0.4.3 lib/terraspace_bundler/core.rb
terraspace-bundler-0.4.2 lib/terraspace_bundler/core.rb
terraspace-bundler-0.4.1 lib/terraspace_bundler/core.rb
terraspace-bundler-0.4.0 lib/terraspace_bundler/core.rb
terraspace-bundler-0.3.4 lib/terraspace_bundler/core.rb
terraspace-bundler-0.3.3 lib/terraspace_bundler/core.rb
terraspace-bundler-0.3.2 lib/terraspace_bundler/core.rb