Class: Kuby::Plugin
- Inherits:
-
Object
- Object
- Kuby::Plugin
- Defined in:
- lib/kuby/plugin.rb
Direct Known Subclasses
Kuby::Plugins::NginxIngress, Kuby::Plugins::RailsApp::Assets, Kuby::Plugins::RailsApp::MySQL, Kuby::Plugins::RailsApp::Plugin, Kuby::Plugins::RailsApp::Postgres, Kuby::Plugins::RailsApp::Sqlite
Instance Attribute Summary collapse
-
#environment ⇒ Object
readonly
Returns the value of attribute environment.
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
-
#dockerfiles ⇒ Object
additional dockerfiles that should be built and pushed.
-
#initialize(environment) ⇒ Plugin
constructor
A new instance of Plugin.
-
#resources ⇒ Object
additional kubernetes resources that should be deployed.
- #setup ⇒ Object
Constructor Details
#initialize(environment) ⇒ Plugin
Returns a new instance of Plugin.
6 7 8 9 |
# File 'lib/kuby/plugin.rb', line 6 def initialize(environment) @environment = environment after_initialize end |
Instance Attribute Details
#environment ⇒ Object (readonly)
Returns the value of attribute environment.
4 5 6 |
# File 'lib/kuby/plugin.rb', line 4 def environment @environment end |
Instance Method Details
#after_configuration ⇒ Object
called after all plugins have been configured
30 31 32 |
# File 'lib/kuby/plugin.rb', line 30 def after_configuration # do nothing by default end |
#after_deploy(manifest) ⇒ Object
called after deploying all resources
50 51 52 |
# File 'lib/kuby/plugin.rb', line 50 def after_deploy(manifest) # do nothing by default end |
#after_setup ⇒ Object
called after all plugins have been setup
40 41 42 |
# File 'lib/kuby/plugin.rb', line 40 def after_setup # do nothing by default end |
#before_deploy(manifest) ⇒ Object
called before deploying any resources
45 46 47 |
# File 'lib/kuby/plugin.rb', line 45 def before_deploy(manifest) # do nothing by default end |
#before_setup ⇒ Object
called before any plugins have been setup
35 36 37 |
# File 'lib/kuby/plugin.rb', line 35 def before_setup # do nothing by default end |
#configure(&block) ⇒ Object
11 12 13 |
# File 'lib/kuby/plugin.rb', line 11 def configure(&block) # do nothing by default end |
#dockerfiles ⇒ Object
additional dockerfiles that should be built and pushed
25 26 27 |
# File 'lib/kuby/plugin.rb', line 25 def dockerfiles [] end |
#resources ⇒ Object
additional kubernetes resources that should be deployed
20 21 22 |
# File 'lib/kuby/plugin.rb', line 20 def resources [] end |
#setup ⇒ Object
15 16 17 |
# File 'lib/kuby/plugin.rb', line 15 def setup # do nothing by default end |