Class: PGPool::PCPWrapper
- Inherits:
-
Object
- Object
- PGPool::PCPWrapper
- Extended by:
- Forwardable
- Defined in:
- lib/pgpool/pcpwrapper.rb
Overview
class: PCPWrapper, the main gem module
Constant Summary collapse
- DEFAULT_TIMEOUT =
10
- DEFAULT_HOSTNAME =
'localhost'
- DEFAULT_PORT =
9898
- DEFAULT_USER =
'postgres'
- DEFAULT_PASSWORD =
'postgres'
Instance Method Summary collapse
-
#initialize(parameters = {}) ⇒ PCPWrapper
constructor
A new instance of PCPWrapper.
Constructor Details
#initialize(parameters = {}) ⇒ PCPWrapper
Returns a new instance of PCPWrapper.
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/pgpool/pcpwrapper.rb', line 24 def initialize(parameters = {}) parameters = { hostname: DEFAULT_HOSTNAME, port: DEFAULT_PORT, user: DEFAULT_USER, password: DEFAULT_PASSWORD, timeout: DEFAULT_TIMEOUT }.merge(parameters) @command_launcher = CommandLauncher.new( parameters[:hostname], parameters[:port], parameters[:user], parameters[:password], parameters[:timeout]) self end |