Class: BiblioTech::Builders::MySql::Export

Inherits:
Export show all
Defined in:
lib/bibliotech/builders/mysql.rb

Instance Attribute Summary

Attributes inherited from Base

#config

Instance Method Summary collapse

Methods inherited from Export

registry_host

Methods inherited from Database

find_class

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.options << "-h #{config.host}" }
  config.optional{ command.options << "-u #{config.username}" }
  config.optional{ command.options << "-P #{config.port}" } #ok
  config.optional{ command.options << "--password='#{config.password}'" }
  command.options << "#{config.database}"
  command
end