Class: Muck::ConfigDSL::DatabaseDSL

Inherits:
Object
  • Object
show all
Defined in:
lib/muck/config_dsl/database_dsl.rb

Instance Method Summary collapse

Constructor Details

#initialize(hash) ⇒ DatabaseDSL

Returns a new instance of DatabaseDSL.



5
6
7
# File 'lib/muck/config_dsl/database_dsl.rb', line 5

def initialize(hash)
  @hash = hash
end

Instance Method Details

#hostname(hostname) ⇒ Object



13
14
15
# File 'lib/muck/config_dsl/database_dsl.rb', line 13

def hostname(hostname)
  @hash[:hostname] = hostname
end

#name(name) ⇒ Object



9
10
11
# File 'lib/muck/config_dsl/database_dsl.rb', line 9

def name(name)
  @hash[:name] = name
end

#password(password) ⇒ Object



21
22
23
# File 'lib/muck/config_dsl/database_dsl.rb', line 21

def password(password)
  @hash[:password] = password
end

#username(username) ⇒ Object



17
18
19
# File 'lib/muck/config_dsl/database_dsl.rb', line 17

def username(username)
  @hash[:username] = username
end