Sha256: 3fe69eda59ed4301a64ae41757ab41d0990e9a6a3f059802c04310e56b840cf8

Contents?: true

Size: 575 Bytes

Versions: 34

Compression:

Stored size: 575 Bytes

Contents

module Awspec::Helper
  module Finder
    module Codebuild
      def find_codebuild_project(id)
        projects = select_all_codebuild_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

34 entries across 34 versions & 3 rubygems

Version Path
awspec-1.25.1 lib/awspec/helper/finder/codebuild.rb
awspec-1.25.0 lib/awspec/helper/finder/codebuild.rb
awspec-1.24.4 lib/awspec/helper/finder/codebuild.rb
awspec-1.24.3 lib/awspec/helper/finder/codebuild.rb
awspec-1.24.2 lib/awspec/helper/finder/codebuild.rb
awspec-1.24.1 lib/awspec/helper/finder/codebuild.rb
awspec-1.24.0 lib/awspec/helper/finder/codebuild.rb
awspec-1.23.0 lib/awspec/helper/finder/codebuild.rb
awspec-1.22.1 lib/awspec/helper/finder/codebuild.rb
awspec-1.22.0 lib/awspec/helper/finder/codebuild.rb
awspec-1.21.1 lib/awspec/helper/finder/codebuild.rb
awspec-1.21.0 lib/awspec/helper/finder/codebuild.rb
awspec-1.20.0 lib/awspec/helper/finder/codebuild.rb
awspec-1.19.2 lib/awspec/helper/finder/codebuild.rb
awspec-1.19.1 lib/awspec/helper/finder/codebuild.rb
awspec-1.19.0 lib/awspec/helper/finder/codebuild.rb
cthiesfork-awspec-1.2.4 lib/awspec/helper/finder/codebuild.rb
awspec-api_gateway_extended-1.2.4 lib/awspec/helper/finder/codebuild.rb
awspec-api_gateway_extended-1.2.3 lib/awspec/helper/finder/codebuild.rb
awspec-1.18.6 lib/awspec/helper/finder/codebuild.rb