Sha256: 3a73ec98dd850feb42624cae4c60fec55d8f0633ba3718df1957c6e7aebf032c

Contents?: true

Size: 448 Bytes

Versions: 130

Compression:

Stored size: 448 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
          (res.next_page? && res = res.next_page) || break
        end

        selected.single_resource(id)
      end
    end
  end
end

Version data entries

130 entries across 130 versions & 2 rubygems

Version Path
awspec-1.4.1 lib/awspec/helper/finder/elastictranscoder.rb
awspec-1.4.0 lib/awspec/helper/finder/elastictranscoder.rb
awspec-1.3.1 lib/awspec/helper/finder/elastictranscoder.rb
awspec-1.3.0 lib/awspec/helper/finder/elastictranscoder.rb
awspec-1.2.0 lib/awspec/helper/finder/elastictranscoder.rb
awspec-1.1.0 lib/awspec/helper/finder/elastictranscoder.rb
awspec-1.0.0 lib/awspec/helper/finder/elastictranscoder.rb
awspec-1.0.0.rc lib/awspec/helper/finder/elastictranscoder.rb
awspec-0.88.2 lib/awspec/helper/finder/elastictranscoder.rb
awspec-0.88.1 lib/awspec/helper/finder/elastictranscoder.rb
awspec-0.88.0 lib/awspec/helper/finder/elastictranscoder.rb
awspec-0.87.1 lib/awspec/helper/finder/elastictranscoder.rb
awspec-0.87.0 lib/awspec/helper/finder/elastictranscoder.rb
awspec-0.86.0 lib/awspec/helper/finder/elastictranscoder.rb
cmonson_2ndwatch_awspec-0.85.4 lib/awspec/helper/finder/elastictranscoder.rb
awspec-0.85.3 lib/awspec/helper/finder/elastictranscoder.rb
cmonson_2ndwatch_awspec-0.85.3 lib/awspec/helper/finder/elastictranscoder.rb
awspec-0.85.2 lib/awspec/helper/finder/elastictranscoder.rb
awspec-0.85.1 lib/awspec/helper/finder/elastictranscoder.rb
awspec-0.85.0 lib/awspec/helper/finder/elastictranscoder.rb