lib/hako/definition_loader.rb in hako-1.9.0 vs lib/hako/definition_loader.rb in hako-2.0.0

- old
+ new

@@ -16,11 +16,11 @@ # @param [String] tag # @param [Array<String>, nil] with # @return [Hash<String, Container>] def load(tag, with: nil) - additional_containers = @app.yaml.fetch('additional_containers', {}) + additional_containers = @app.definition.fetch('additional_containers', {}) container_names = ['app'] if with container_names.concat(with) else container_names.concat(additional_containers.keys) @@ -41,10 +41,10 @@ while containers.size < names.size names.difference(containers.keys).each do |name| containers[name] = case name when 'app' - AppContainer.new(@app, @app.yaml['app'].merge('tag' => tag), dry_run: @dry_run) + AppContainer.new(@app, @app.definition['app'].merge('tag' => tag), dry_run: @dry_run) else Container.new(@app, additional_containers.fetch(name), dry_run: @dry_run) end containers[name].links.each do |link|