Class: ActivePostgres::Components::Base
- Inherits:
-
Object
- Object
- ActivePostgres::Components::Base
- Defined in:
- lib/active_postgres/components/base.rb
Direct Known Subclasses
Core, Extensions, Monitoring, PgBackRest, PgBouncer, Repmgr, SSL
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#secrets ⇒ Object
readonly
Returns the value of attribute secrets.
-
#ssh_executor ⇒ Object
readonly
Returns the value of attribute ssh_executor.
Instance Method Summary collapse
-
#initialize(config, ssh_executor, secrets) ⇒ Base
constructor
A new instance of Base.
- #install ⇒ Object
- #restart ⇒ Object
- #uninstall ⇒ Object
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
#config ⇒ Object (readonly)
Returns the value of attribute config.
4 5 6 |
# File 'lib/active_postgres/components/base.rb', line 4 def config @config end |
#secrets ⇒ Object (readonly)
Returns the value of attribute secrets.
4 5 6 |
# File 'lib/active_postgres/components/base.rb', line 4 def secrets @secrets end |
#ssh_executor ⇒ Object (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
#install ⇒ Object
12 13 14 |
# File 'lib/active_postgres/components/base.rb', line 12 def install raise NotImplementedError, 'Subclass must implement #install' end |
#restart ⇒ Object
20 21 22 |
# File 'lib/active_postgres/components/base.rb', line 20 def restart raise NotImplementedError, 'Subclass must implement #restart' end |
#uninstall ⇒ Object
16 17 18 |
# File 'lib/active_postgres/components/base.rb', line 16 def uninstall raise NotImplementedError, 'Subclass must implement #uninstall' end |