Class: Helmsnap::SetupDependencies

Inherits:
Service
  • Object
show all
Defined in:
lib/helmsnap/setup_dependencies.rb

Constant Summary collapse

REPO_NAME_PREFIX =
"helmsnap-"

Instance Method Summary collapse

Methods inherited from Service

call

Constructor Details

#initialize(config, options) ⇒ SetupDependencies

Returns a new instance of SetupDependencies.



6
7
8
9
10
11
# File 'lib/helmsnap/setup_dependencies.rb', line 6

def initialize(config, options)
  super()
  self.config = config
  self.options = options
  self.processed_paths = Set.new
end

Instance Method Details

#callObject



13
14
15
16
17
18
19
# File 'lib/helmsnap/setup_dependencies.rb', line 13

def call
  clear_existing_repos! unless options.skip_repo_cleanup

  config.envs.flat_map(&:release_paths).each do |chart_path|
    setup!(chart_path)
  end
end