Sha256: 5086141d75beb190299e8855cfaa6bc2220c3f8ef6d832db0f6f31e579da11f7

Contents?: true

Size: 330 Bytes

Versions: 3

Compression:

Stored size: 330 Bytes

Contents

module PgObjects
  class << self
    def configure
      yield config
    end

    def config
      @config ||= Config.new
    end
  end

  class Config
    attr_accessor :directories, :extensions, :silent

    def initialize
      @directories = ['db/objects']
      @extensions = ['sql']
      @silent = false
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pg_objects-0.2.4 lib/pg_objects/config.rb
pg_objects-0.2.3 lib/pg_objects/config.rb
pg_objects-0.2.1 lib/pg_objects/config.rb