Class: Backup::Configuration::Server
- Inherits:
-
Object
- Object
- Backup::Configuration::Server
- Extended by:
- Attribute
- Defined in:
- lib/backup/configuration/server.rb
Instance Method Summary collapse
Methods included from Attribute
Instance Method Details
#mysql(name = nil, &block) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/backup/configuration/server.rb', line 7 def mysql(name=nil,&block) @mysqls ||= {} if block name ||= "mysql_#{@servers.keys.size}" @mysqls[name] = Backup::Configuration::Mysql.new @mysqls[name].instance_eval &block end @mysqls end |