Class: Kustomize::Session

Inherits:
Object
  • Object
show all
Defined in:
lib/kustomize/session.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_componentObject

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_managerObject (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_pathsObject



15
16
17
# File 'lib/kustomize/session.rb', line 15

def builtin_load_paths
  [Pathname.new(__FILE__).expand_path.parent / 'builtin_plugins']
end

#effective_load_pathsObject



19
20
21
# File 'lib/kustomize/session.rb', line 19

def effective_load_paths
  @load_paths + self.builtin_load_paths
end