Sha256: 0a48ac1994c354d647b100ef862a95bf1396565ce662d81248425a974208207e
Contents?: true
Size: 560 Bytes
Versions: 1
Compression:
Stored size: 560 Bytes
Contents
# frozen_string_literal: true module TableSaw class Configuration attr_accessor :dbname, :host, :port, :user, :password, :manifest, :output, :pool def connection { dbname: dbname, host: host, port: port, user: user, password: password } end def pool_size (pool || 2).to_i end def url=(value) URI.parse(value).tap do |uri| self.dbname = uri.path[1..-1] self.host = uri.host self.port = uri.port self.user = uri.user self.password = uri.password end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
table_saw-1.2.0 | lib/table_saw/configuration.rb |