Class: Taps::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/taps/config.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.chunksizeObject

Returns the value of attribute chunksize.



21
22
23
# File 'lib/taps/config.rb', line 21

def chunksize
  @chunksize
end

.database_urlObject

Returns the value of attribute database_url.



20
21
22
# File 'lib/taps/config.rb', line 20

def database_url
  @database_url
end

.loginObject

Returns the value of attribute login.



20
21
22
# File 'lib/taps/config.rb', line 20

def 
  @login
end

.passwordObject

Returns the value of attribute password.



20
21
22
# File 'lib/taps/config.rb', line 20

def password
  @password
end

.remote_urlObject

Returns the value of attribute remote_url.



20
21
22
# File 'lib/taps/config.rb', line 20

def remote_url
  @remote_url
end

.taps_database_urlObject

Returns the value of attribute taps_database_url.



19
20
21
# File 'lib/taps/config.rb', line 19

def taps_database_url
  @taps_database_url
end

Class Method Details

.verify_database_urlObject



23
24
25
26
27
28
29
30
# File 'lib/taps/config.rb', line 23

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