Sha256: 7e87b2f174410e58787e352907efa946e3741c0228c2df58bdc03f623511368e

Contents?: true

Size: 623 Bytes

Versions: 3

Compression:

Stored size: 623 Bytes

Contents

module Slugbuilder
  class << self
    attr_accessor :config
  end

  def self.config
    @config ||= Configuration.new
  end

  def self.reset
    @config = Configuration.new
  end

  def self.configure
    yield(config)
  end

  class Configuration
    attr_accessor :base_dir, :cache_dir, :output_dir,
      :git_service, :buildpacks, :protocol, :heroku_stack

    def initialize
      @base_dir = '/tmp/slugbuilder'
      @cache_dir = '/tmp/slugbuilder-cache'
      @output_dir = '.'
      @git_service = 'github.com'
      @protocol = 'https'
      @buildpacks = []
      @heroku_stack = 'heroku-16'
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
slugbuilder-3.2.0 lib/slugbuilder/configuration.rb
slugbuilder-3.1.0 lib/slugbuilder/configuration.rb
slugbuilder-3.0.0 lib/slugbuilder/configuration.rb