Class: Kuby::Kubernetes::Plugin
- Inherits:
-
Object
- Object
- Kuby::Kubernetes::Plugin
- Defined in:
- lib/kuby/kubernetes/plugin.rb
Direct Known Subclasses
Kuby::Kubernetes::Plugins::NginxIngress, Kuby::Kubernetes::Plugins::RailsApp::MySQL, Kuby::Kubernetes::Plugins::RailsApp::Plugin, Kuby::Kubernetes::Plugins::RailsApp::Postgres, Kuby::Kubernetes::Plugins::RailsApp::Sqlite
Instance Attribute Summary collapse
-
#definition ⇒ Object
readonly
Returns the value of attribute definition.
Instance Method Summary collapse
-
#after_configuration ⇒ Object
called after all plugins have been configured.
-
#after_deploy(manifest) ⇒ Object
called after deploying all resources.
-
#after_setup ⇒ Object
called after all plugins have been setup.
-
#before_deploy(manifest) ⇒ Object
called before deploying any resources.
-
#before_setup ⇒ Object
called before any plugins have been setup.
- #configure(&block) ⇒ Object
-
#initialize(definition) ⇒ Plugin
constructor
A new instance of Plugin.
- #resources ⇒ Object
- #setup ⇒ Object
Constructor Details
#initialize(definition) ⇒ Plugin
Returns a new instance of Plugin.
6 7 8 9 |
# File 'lib/kuby/kubernetes/plugin.rb', line 6 def initialize(definition) @definition = definition after_initialize end |
Instance Attribute Details
#definition ⇒ Object (readonly)
Returns the value of attribute definition.
4 5 6 |
# File 'lib/kuby/kubernetes/plugin.rb', line 4 def definition @definition end |
Instance Method Details
#after_configuration ⇒ Object
called after all plugins have been configured
24 25 26 |
# File 'lib/kuby/kubernetes/plugin.rb', line 24 def after_configuration # do nothing by default end |
#after_deploy(manifest) ⇒ Object
called after deploying all resources
44 45 46 |
# File 'lib/kuby/kubernetes/plugin.rb', line 44 def after_deploy(manifest) # do nothing by default end |
#after_setup ⇒ Object
called after all plugins have been setup
34 35 36 |
# File 'lib/kuby/kubernetes/plugin.rb', line 34 def after_setup # do nothing by default end |
#before_deploy(manifest) ⇒ Object
called before deploying any resources
39 40 41 |
# File 'lib/kuby/kubernetes/plugin.rb', line 39 def before_deploy(manifest) # do nothing by default end |
#before_setup ⇒ Object
called before any plugins have been setup
29 30 31 |
# File 'lib/kuby/kubernetes/plugin.rb', line 29 def before_setup # do nothing by default end |
#configure(&block) ⇒ Object
11 12 13 |
# File 'lib/kuby/kubernetes/plugin.rb', line 11 def configure(&block) # do nothing by default end |
#resources ⇒ Object
19 20 21 |
# File 'lib/kuby/kubernetes/plugin.rb', line 19 def resources [] end |
#setup ⇒ Object
15 16 17 |
# File 'lib/kuby/kubernetes/plugin.rb', line 15 def setup # do nothing by default end |