Sha256: e8551f9fdfad1dbf304bc8ba193ae20f208093672a25c6ee22342d19ee4282b3

Contents?: true

Size: 672 Bytes

Versions: 13

Compression:

Stored size: 672 Bytes

Contents

# frozen_string_literal: true

module Awspec::Helper
  module Finder
    module Elastictranscoder
      def find_pipeline(id)
        selected = []
        res = elastictranscoder_client.list_pipelines
        loop do
          selected += res.pipelines.select do |pipeline|
            pipeline.id == id || pipeline.name == id
          end
          break if res.next_page_token.nil?

          res = elastictranscoder_client.list_pipelines({
                                                          page_token: res.next_page_token
                                                        })
        end

        selected.single_resource(id)
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
awspec-1.31.0 lib/awspec/helper/finder/elastictranscoder.rb
awspec-1.30.0 lib/awspec/helper/finder/elastictranscoder.rb
awspec-1.29.3 lib/awspec/helper/finder/elastictranscoder.rb
awspec-1.29.2 lib/awspec/helper/finder/elastictranscoder.rb
awspec-1.29.1 lib/awspec/helper/finder/elastictranscoder.rb
awspec-1.29.0 lib/awspec/helper/finder/elastictranscoder.rb
awspec-1.28.2 lib/awspec/helper/finder/elastictranscoder.rb
awspec-1.28.1 lib/awspec/helper/finder/elastictranscoder.rb
awspec-1.28.0 lib/awspec/helper/finder/elastictranscoder.rb
awspec-1.27.1 lib/awspec/helper/finder/elastictranscoder.rb
awspec-1.27.0 lib/awspec/helper/finder/elastictranscoder.rb
awspec-1.26.0 lib/awspec/helper/finder/elastictranscoder.rb
awspec-1.25.2 lib/awspec/helper/finder/elastictranscoder.rb