Class: Kustomize::Session
- Inherits:
-
Object
- Object
- Kustomize::Session
- Defined in:
- lib/kustomize/session.rb
Instance Attribute Summary collapse
-
#only_emit_component ⇒ Object
Returns the value of attribute only_emit_component.
-
#plugin_manager ⇒ Object
readonly
Returns the value of attribute plugin_manager.
Instance Method Summary collapse
- #builtin_load_paths ⇒ Object
- #effective_load_paths ⇒ Object
-
#initialize(load_paths: [], only_emit_component: nil) ⇒ Session
constructor
A new instance of Session.
Constructor Details
#initialize(load_paths: [], only_emit_component: nil) ⇒ Session
Returns a new instance of Session.
6 7 8 9 10 |
# File 'lib/kustomize/session.rb', line 6 def initialize(load_paths: [], only_emit_component: nil) @load_paths = load_paths @plugin_manager = Kustomize::PluginManager.new(session: self) @only_emit_component = only_emit_component end |
Instance Attribute Details
#only_emit_component ⇒ Object
Returns the value of attribute only_emit_component.
13 14 15 |
# File 'lib/kustomize/session.rb', line 13 def only_emit_component @only_emit_component end |
#plugin_manager ⇒ Object (readonly)
Returns the value of attribute plugin_manager.
12 13 14 |
# File 'lib/kustomize/session.rb', line 12 def plugin_manager @plugin_manager end |
Instance Method Details
#builtin_load_paths ⇒ Object
15 16 17 |
# File 'lib/kustomize/session.rb', line 15 def builtin_load_paths [Pathname.new(__FILE__)..parent / 'builtin_plugins'] end |
#effective_load_paths ⇒ Object
19 20 21 |
# File 'lib/kustomize/session.rb', line 19 def effective_load_paths @load_paths + self.builtin_load_paths end |