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