Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.

Commit

Permalink
try fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
CedricCouton committed Sep 8, 2022
1 parent 922dbb8 commit b5701f6
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lib/couchbase-orm/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@

module CouchbaseOrm
class Connection

@@config = nil
def self.config
@@config || raise(CouchbaseOrm::Error, 'Missing CouchbaseOrm connection config')
@@config || {
:connection_string => "couchbase://#{ENV['COUCHBASE_HOST'] || 'localhost'}",
:username => ENV['COUCHBASE_USER'],
:password => ENV['COUCHBASE_PASSWORD'],
:bucket => ENV['COUCHBASE_BUCKET']
}
end

def self.config=(config)
Expand Down

0 comments on commit b5701f6

Please sign in to comment.