Class: ActiveRecordMysqlRepl::Database::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/active_record_mysql_repl/database/configs.rb

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ Config

Returns a new instance of Config.



41
42
43
44
45
46
47
48
49
50
# File 'lib/active_record_mysql_repl/database/configs.rb', line 41

def initialize(config)
  @bastion = config["bastion"]
  @ssh_user = config["ssh_user"]
  @remote_host = config["remote_host"]
  @database = config["database"]
  @port = config["port"]
  @user = config["user"]
  @password = config["password"]
  @prompt_color = config["prompt_color"]
end