Sha256: e11cff0d5ae921ddbea24177e57ee85ec43e4932223357aff5887ce78c90302f

Contents?: true

Size: 640 Bytes

Versions: 28

Compression:

Stored size: 640 Bytes

Contents

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

28 entries across 28 versions & 3 rubygems

Version Path
cthiesfork-awspec-1.2.2 lib/awspec/helper/finder/elastictranscoder.rb
cthiesfork-awspec-1.2.1 lib/awspec/helper/finder/elastictranscoder.rb
awspec-1.18.5 lib/awspec/helper/finder/elastictranscoder.rb
cthiesfork-awspec-1.2.0 lib/awspec/helper/finder/elastictranscoder.rb
cthiesfork-awspec-1.1.0 lib/awspec/helper/finder/elastictranscoder.rb
cthiesfork-awspec-1.0.0 lib/awspec/helper/finder/elastictranscoder.rb
awspec-1.18.4 lib/awspec/helper/finder/elastictranscoder.rb
awspec-1.18.3 lib/awspec/helper/finder/elastictranscoder.rb