Class: ActivePostgres::Components::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/active_postgres/components/base.rb

Direct Known Subclasses

Core, Extensions, Monitoring, PgBackRest, PgBouncer, Repmgr, SSL

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config, ssh_executor, secrets) ⇒ Base

Returns a new instance of Base.



8
9
10
11
12
# File 'lib/active_postgres/components/base.rb', line 8

def initialize(config, ssh_executor, secrets)
  @config = config
  @ssh_executor = ssh_executor
  @secrets = secrets
end

Instance Attribute Details

#configObject (readonly)

Returns the value of attribute config.



6
7
8
# File 'lib/active_postgres/components/base.rb', line 6

def config
  @config
end

#secretsObject (readonly)

Returns the value of attribute secrets.



6
7
8
# File 'lib/active_postgres/components/base.rb', line 6

def secrets
  @secrets
end

#ssh_executorObject (readonly)

Returns the value of attribute ssh_executor.



6
7
8
# File 'lib/active_postgres/components/base.rb', line 6

def ssh_executor
  @ssh_executor
end

Instance Method Details

#installObject

Raises:

  • (NotImplementedError)


14
15
16
# File 'lib/active_postgres/components/base.rb', line 14

def install
  raise NotImplementedError, 'Subclass must implement #install'
end

#restartObject

Raises:

  • (NotImplementedError)


22
23
24
# File 'lib/active_postgres/components/base.rb', line 22

def restart
  raise NotImplementedError, 'Subclass must implement #restart'
end

#uninstallObject

Raises:

  • (NotImplementedError)


18
19
20
# File 'lib/active_postgres/components/base.rb', line 18

def uninstall
  raise NotImplementedError, 'Subclass must implement #uninstall'
end