module Awspec::Helper::Finder::Elastictranscoder
Public Instance Methods
find_pipeline(id)
click to toggle source
# File lib/awspec/helper/finder/elastictranscoder.rb, line 6 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