Sha256: 7b8996480b105da80b4a33c93f85db28be4dbca9abca5ef051d9733f899c47cf
Contents?: true
Size: 722 Bytes
Versions: 4
Compression:
Stored size: 722 Bytes
Contents
require 'sequel' require 'taps/version' Sequel.datetime_class = DateTime Sequel.extension :core_extensions Sequel.extension :schema_dumper module Taps def self.exiting=(val) @@exiting = val end def exiting? (@@exiting ||= false) == true end class Config class << self attr_accessor :taps_database_url attr_accessor :login, :password, :database_url, :remote_url attr_accessor :chunksize def verify_database_url(db_url=nil) db_url ||= self.database_url db = Sequel.connect(db_url) db.tables db.disconnect rescue Object => e puts "Failed to connect to database:\n #{e.class} -> #{e}" exit 1 end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
taps2-0.5.4 | lib/taps/config.rb |
taps2-0.5.3 | lib/taps/config.rb |
taps2-0.5.2 | lib/taps/config.rb |
taps2-0.5.1 | lib/taps/config.rb |