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