Sha256: 8b9c29482eccb3b232c41d3a42d037cd667e6e479e1d915175303f120f13a46e
Contents?: true
Size: 620 Bytes
Versions: 2
Compression:
Stored size: 620 Bytes
Contents
require 'aws-sdk' module OdaniaOps module Helper module Aws class << self def configure Aws.config.update( { region: $config['aws']['region'], credentials: Aws::Credentials.new($config['aws']['access_key_id'], $config['aws']['secret_access_key']) } ) end def tags(repository_name) client = Aws::ECR::Client.new result = [] response = client.describe_images(repository_name: repository_name) response.image_details.each do |aws_image_details| result += aws_image_details.image_tags end result.uniq end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
odania_ops-0.0.11 | lib/odania_ops/helper/aws.rb |
odania_ops-0.0.10 | lib/odania_ops/helper/aws.rb |