Sha256: 1742e8c801ae1beb34ff55968afb7b09f00577c78dd3f3941356036262da2d8d

Contents?: true

Size: 414 Bytes

Versions: 2

Compression:

Stored size: 414 Bytes

Contents

require 'sequel'

module Taps

VERSION = '0.2.1'

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 = Sequel.connect(self.database_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

2 entries across 2 versions & 2 rubygems

Version Path
ricardochimal-taps-0.2.1 lib/taps/config.rb
taps-0.2.1 lib/taps/config.rb