Sha256: 2d15a77d24c29799135f806527ccb08cfafd687216379d9c366a73a3fb811606

Contents?: true

Size: 586 Bytes

Versions: 24

Compression:

Stored size: 586 Bytes

Contents

class CodePipeline < Mapper
  #
  # Returns an array of resources.
  #
  def collect
    resources = []

    #
    # list_pipelines
    #
    @client.list_pipelines.each_with_index do |response, page|
      log(response.context.operation_name, page)

      # get_pipeline
      response.pipelines.each do |pipeline|
        resp = @client.get_pipeline(name: pipeline.name)
        struct = OpenStruct.new(resp.pipeline.to_h)
        struct.type = 'pipeline'
        struct.arn = resp.metadata.pipeline_arn

        resources.push(struct.to_h)
      end
    end

    resources
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
aws_recon-0.2.24 lib/aws_recon/collectors/codepipeline.rb
aws_recon-0.2.23 lib/aws_recon/collectors/codepipeline.rb
aws_recon-0.2.22 lib/aws_recon/collectors/codepipeline.rb
aws_recon-0.2.21 lib/aws_recon/collectors/codepipeline.rb
aws_recon-0.2.20 lib/aws_recon/collectors/codepipeline.rb
aws_recon-0.2.19 lib/aws_recon/collectors/codepipeline.rb
aws_recon-0.2.18 lib/aws_recon/collectors/codepipeline.rb
aws_recon-0.2.17 lib/aws_recon/collectors/codepipeline.rb
aws_recon-0.2.16 lib/aws_recon/collectors/codepipeline.rb
aws_recon-0.2.15 lib/aws_recon/collectors/codepipeline.rb
aws_recon-0.2.14 lib/aws_recon/collectors/codepipeline.rb
aws_recon-0.2.13 lib/aws_recon/collectors/codepipeline.rb
aws_recon-0.2.12 lib/aws_recon/collectors/codepipeline.rb
aws_recon-0.2.11 lib/aws_recon/collectors/codepipeline.rb
aws_recon-0.2.10 lib/aws_recon/collectors/codepipeline.rb
aws_recon-0.2.9 lib/aws_recon/collectors/codepipeline.rb
aws_recon-0.2.8 lib/aws_recon/collectors/codepipeline.rb
aws_recon-0.2.7 lib/aws_recon/collectors/codepipeline.rb
aws_recon-0.2.6 lib/aws_recon/collectors/codepipeline.rb
aws_recon-0.2.5 lib/aws_recon/collectors/codepipeline.rb