Sha256: fbd89983338f5511e1953c766212b607c51f1de0f3b03fd891f5fb5aeb0e05fe

Contents?: true

Size: 620 Bytes

Versions: 24

Compression:

Stored size: 620 Bytes

Contents

module Awspec::Helper
  module Finder
    module Codebuild
      def find_codebuild_project(id)
        res = codebuild_client.list_projects({ sort_by: id })
        projects = res.projects.select do |project|
          project == id
        end
        projects.single_resource(id)
      end

      def select_all_codebuild_projects
        req = {}
        projects = []
        loop do
          res = codebuild_client.list_projects(req)
          projects.push(*res.projects)
          break if res.next_token.nil?
          req[:next_token] = res.next_token
        end
        projects
      end
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
awspec-1.17.1 lib/awspec/helper/finder/codebuild.rb
awspec-1.17.0 lib/awspec/helper/finder/codebuild.rb
awspec-1.16.1 lib/awspec/helper/finder/codebuild.rb
awspec-1.16.0 lib/awspec/helper/finder/codebuild.rb
awspec-1.15.3 lib/awspec/helper/finder/codebuild.rb
awspec-1.15.2 lib/awspec/helper/finder/codebuild.rb
awspec-1.15.1 lib/awspec/helper/finder/codebuild.rb
awspec-1.15.0 lib/awspec/helper/finder/codebuild.rb
awspec-1.14.1 lib/awspec/helper/finder/codebuild.rb
awspec-1.14.0 lib/awspec/helper/finder/codebuild.rb
awspec-1.13.0 lib/awspec/helper/finder/codebuild.rb
awspec-1.12.7 lib/awspec/helper/finder/codebuild.rb
awspec-1.12.6 lib/awspec/helper/finder/codebuild.rb
awspec-1.12.5 lib/awspec/helper/finder/codebuild.rb
awspec-1.12.4 lib/awspec/helper/finder/codebuild.rb
awspec-1.12.3 lib/awspec/helper/finder/codebuild.rb
awspec-1.12.2 lib/awspec/helper/finder/codebuild.rb
awspec-1.12.1 lib/awspec/helper/finder/codebuild.rb
awspec-1.12.0 lib/awspec/helper/finder/codebuild.rb
awspec-1.11.1 lib/awspec/helper/finder/codebuild.rb