Class: Connexion
- Inherits:
-
Object
- Object
- Connexion
- Defined in:
- lib/capistrano/tasks/connexion.rb
Instance Method Summary collapse
-
#initialize(config_file, db) ⇒ Connexion
constructor
attr_accessor :username, password, database, host.
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 |