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.11.0 lib/awspec/helper/finder/codebuild.rb
awspec-1.10.0 lib/awspec/helper/finder/codebuild.rb
awspec-1.9.0 lib/awspec/helper/finder/codebuild.rb
awspec-1.8.0 lib/awspec/helper/finder/codebuild.rb