Sha256: 772574d0f9107af0b7c91596fbcb52faaea74d3ccecf26a2381e40806eb92dbe

Contents?: true

Size: 553 Bytes

Versions: 15

Compression:

Stored size: 553 Bytes

Contents

module Ufo::TaskDefinition::Helpers
  module Ecr
    include Ufo::Utils::CallLine

    def ecr_repo(name)
      repository = ecr_repository(name)
      repository.repository_uri if repository
    end

    def ecr_repository(name)
      resp = ecr.describe_repositories(repository_names: [name])
      resp.repositories.first
    rescue Aws::ECR::Errors::RepositoryNotFoundException => e
      logger.warn "WARN: #{e.class} #{e.message}".color(:yellow)
      call_line = ufo_call_line
      DslEvaluator.print_code(call_line)
      nil
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
ufo-6.3.13 lib/ufo/task_definition/helpers/ecr.rb
ufo-6.3.12 lib/ufo/task_definition/helpers/ecr.rb
ufo-6.3.11 lib/ufo/task_definition/helpers/ecr.rb
ufo-6.3.10 lib/ufo/task_definition/helpers/ecr.rb
ufo-6.3.9 lib/ufo/task_definition/helpers/ecr.rb
ufo-6.3.8 lib/ufo/task_definition/helpers/ecr.rb
ufo-6.3.7 lib/ufo/task_definition/helpers/ecr.rb
ufo-6.3.6 lib/ufo/task_definition/helpers/ecr.rb
ufo-6.3.5 lib/ufo/task_definition/helpers/ecr.rb
ufo-6.3.4 lib/ufo/task_definition/helpers/ecr.rb
ufo-6.3.3 lib/ufo/task_definition/helpers/ecr.rb
ufo-6.3.2 lib/ufo/task_definition/helpers/ecr.rb
ufo-6.3.1 lib/ufo/task_definition/helpers/ecr.rb
ufo-6.3.0 lib/ufo/task_definition/helpers/ecr.rb
ufo-6.2.5 lib/ufo/task_definition/helpers/ecr.rb