Sha256: 2a6950861ed3d7ba9d98baf09d666be0227a3abce99b8839c03c2f7399be5dac

Contents?: true

Size: 502 Bytes

Versions: 8

Compression:

Stored size: 502 Bytes

Contents

require 'singleton'

module Euston
  module EventStore
    module Persistence
      module Mongodb
        class Config
          include ::Singleton

          def host
            @host ||= 'localhost'
          end

          def port
            @port ||= 27017
          end

          def options
            @options ||= { :safe => { :fsync => true }}
          end

          attr_writer :host, :port, :options
          attr_accessor :database, :logger
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
euston-eventstore-1.0.4-java lib/euston-eventstore/persistence/mongodb/mongo_config.rb
euston-eventstore-1.0.4 lib/euston-eventstore/persistence/mongodb/mongo_config.rb
euston-eventstore-1.0.3-java lib/euston-eventstore/persistence/mongodb/mongo_config.rb
euston-eventstore-1.0.3 lib/euston-eventstore/persistence/mongodb/mongo_config.rb
euston-eventstore-1.0.2-java lib/euston-eventstore/persistence/mongodb/mongo_config.rb
euston-eventstore-1.0.2 lib/euston-eventstore/persistence/mongodb/mongo_config.rb
euston-eventstore-1.0.1 lib/euston-eventstore/persistence/mongodb/mongo_config.rb
euston-eventstore-1.0.0 lib/euston-eventstore/persistence/mongodb/mongo_config.rb