Class: Connexion

Inherits:
Object
  • Object
show all
Defined in:
lib/capistrano/tasks/connexion.rb

Instance Method Summary collapse

Constructor Details

#initialize(config_file, db) ⇒ Connexion

attr_accessor :username, password, database, host



4
5
6
7
8
9
10
11
12
13
# File 'lib/capistrano/tasks/connexion.rb', line 4

def initialize(config_file, db)
  config = YAML::load_file(config_file)
  puts "testdd"

  #@username = database["#{db}"]['user']
  @password = database["#{db}"]['password']
  #@database = database["#{db}"]['dbname']
  #@host = database["#{db}"]['host']
  puts @password
end