Module: OdaniaOps::Helper::Aws
- Defined in:
- lib/odania_ops/helper/aws.rb
Class Method Summary collapse
Class Method Details
.configure ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/odania_ops/helper/aws.rb', line 7 def configure Aws.config.update( { region: $config['aws']['region'], credentials: Aws::Credentials.new($config['aws']['access_key_id'], $config['aws']['secret_access_key']) } ) end |
.tags(repository_name) ⇒ Object
16 17 18 19 20 21 22 23 24 25 |
# File 'lib/odania_ops/helper/aws.rb', line 16 def (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. end result.uniq end |