Class: GDK::Services::PostgresqlReplica

Inherits:
Base
  • Object
show all
Defined in:
lib/gdk/services/postgresql_replica.rb

Overview

PostgreSQL server replica

Instance Method Summary collapse

Methods inherited from Base

#env, #initialize, #procfile_entry, #ready_message

Constructor Details

This class inherits a constructor from GDK::Services::Base

Instance Method Details

#commandObject



11
12
13
# File 'lib/gdk/services/postgresql_replica.rb', line 11

def command
  %(support/postgresql-signal-wrapper #{postgresql_bin} -D #{postgresql_data_dir} -k #{postgresql_replica_dir} -h )
end

#enabled?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/gdk/services/postgresql_replica.rb', line 15

def enabled?
  config.postgresql.replica?
end

#nameObject



7
8
9
# File 'lib/gdk/services/postgresql_replica.rb', line 7

def name
  'postgresql-replica'
end