Class: BiblioTech::Builders::Postgres::Import
- Defined in:
- lib/bibliotech/builders/postgres.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Import
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
28 29 30 31 32 33 34 35 36 37 |
# File 'lib/bibliotech/builders/postgres.rb', line 28 def go(command) command.from('pg_restore') config.optional{ command. << "-h #{config.host}" } config.optional{ command.env["PGPASSWORD"] = config.password } config.optional{ command. << "-p #{config.port}" } #ok command. << "-U #{config.username}" command. << "-d #{config.database}" command end |