Sha256: 739d5158c121ffb201824bb6b85f06736a88a555041fdba086983b4b14a921f2

Contents?: true

Size: 461 Bytes

Versions: 2

Compression:

Stored size: 461 Bytes

Contents

module Foodtaster
  class Config
    attr_accessor :log_level, :drb_port, :vagrant_binary,
      :shutdown_vms, :skip_rollback, :start_server

    def self.default
      self.new
    end

    def configure
      yield(self)
      self
    end

    private

    def initialize
      @log_level = :warn
      @drb_port = 35672
      @vagrant_binary = 'vagrant'
      @shutdown_vms = false
      @skip_rollback = false
      @start_server = true
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
foodtaster-0.0.10 lib/foodtaster/config.rb
foodtaster-0.0.9 lib/foodtaster/config.rb