Class: BiblioTech::Builders::MySql::Export
- Defined in:
- lib/bibliotech/builders/mysql.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Export
Methods inherited from Database
Methods inherited from Base
adapter_registry, for, #initialize, null_adapter, register, registry, supported_adapters
Constructor Details
This class inherits a constructor from BiblioTech::Builders::Base
Instance Method Details
#go(command) ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/bibliotech/builders/mysql.rb', line 10 def go(command) command.from('mysqldump') config.optional{ command. << "-h #{config.host}" } config.optional{ command. << "-u #{config.username}" } config.optional{ command. << "-P #{config.port}" } #ok config.optional{ command. << "--password='#{config.password}'" } command. << "#{config.database}" command end |