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) ⇒ SetupDependencies

Returns a new instance of SetupDependencies.



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

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

Instance Method Details

#callObject



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

def call
  clear_existing_repos!

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