Class: DB::Environment

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

Instance Method Summary collapse

Constructor Details

#initialize(db_type) ⇒ Environment

Returns a new instance of Environment.



24
25
26
# File 'lib/db.rb', line 24

def initialize db_type
  @db_type = db_type
end

Instance Method Details

#adapter(adapter) ⇒ Object



27
28
29
30
# File 'lib/db.rb', line 27

def adapter adapter
  # puts "db.#{@db_type}.adapter #{adapter}"
  puts 'database.yml modification not yet implemented'
end

#database(datab) ⇒ Object



35
36
37
# File 'lib/db.rb', line 35

def database datab
  db datab
end

#db(db) ⇒ Object



31
32
33
34
# File 'lib/db.rb', line 31

def db db
  # puts "db.#{@db_type}.db #{db}"
  puts 'database.yml modification not yet implemented'
end

#host(h) ⇒ Object



38
39
40
41
# File 'lib/db.rb', line 38

def host h
  # puts "db.#{@db_type}.host #{h}"
  puts 'database.yml modification not yet implemented'
end

#password(passwd) ⇒ Object



46
47
48
49
# File 'lib/db.rb', line 46

def password passwd
  # puts "db.#{@db_type}.password #{passwd}"
  puts 'database.yml modification not yet implemented'
end

#socket(s) ⇒ Object



50
51
52
53
# File 'lib/db.rb', line 50

def socket s
  # puts "db.#{@db_type}.socket #{s}"
  puts 'database.yml modification not yet implemented'
end

#timeout(to) ⇒ Object



54
55
56
57
# File 'lib/db.rb', line 54

def timeout to
  # puts "db.#{@db_type}.timeout #{to}"
  puts 'database.yml modification not yet implemented'
end

#username(uname) ⇒ Object



42
43
44
45
# File 'lib/db.rb', line 42

def username uname
  # puts "db.#{@db_type}.username #{uname}"
  puts 'database.yml modification not yet implemented'
end