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.



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

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.



4
5
6
# File 'lib/active_postgres/components/base.rb', line 4

def config
  @config
end

#secretsObject (readonly)

Returns the value of attribute secrets.



4
5
6
# File 'lib/active_postgres/components/base.rb', line 4

def secrets
  @secrets
end

#ssh_executorObject (readonly)

Returns the value of attribute ssh_executor.



4
5
6
# File 'lib/active_postgres/components/base.rb', line 4

def ssh_executor
  @ssh_executor
end

Instance Method Details

#installObject

Raises:

  • (NotImplementedError)


12
13
14
# File 'lib/active_postgres/components/base.rb', line 12

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

#restartObject

Raises:

  • (NotImplementedError)


20
21
22
# File 'lib/active_postgres/components/base.rb', line 20

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

#uninstallObject

Raises:

  • (NotImplementedError)


16
17
18
# File 'lib/active_postgres/components/base.rb', line 16

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