Sha256: 04397652fc21db71e4b5f19b9e42858e7cef188f3bacef99bd7cb6009f984db6

Contents?: true

Size: 539 Bytes

Versions: 13

Compression:

Stored size: 539 Bytes

Contents

# frozen_string_literal: true

module Awspec::Generator
  module Spec
    class Codebuild
      include Awspec::Helper::Finder
      def generate_all
        projects = select_all_codebuild_projects
        raise 'Not Found CodeBuild Project' if projects.empty?

        ERB.new(codebuild_spec_template, nil, '-').result(binding).chomp
      end

      def codebuild_spec_template
        <<-'EOF'
<% projects.each do |project| %>
describe codebuild('<%= project %>') do
  it { should exist }
end
<% end %>
EOF
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
awspec-1.31.0 lib/awspec/generator/spec/codebuild.rb
awspec-1.30.0 lib/awspec/generator/spec/codebuild.rb
awspec-1.29.3 lib/awspec/generator/spec/codebuild.rb
awspec-1.29.2 lib/awspec/generator/spec/codebuild.rb
awspec-1.29.1 lib/awspec/generator/spec/codebuild.rb
awspec-1.29.0 lib/awspec/generator/spec/codebuild.rb
awspec-1.28.2 lib/awspec/generator/spec/codebuild.rb
awspec-1.28.1 lib/awspec/generator/spec/codebuild.rb
awspec-1.28.0 lib/awspec/generator/spec/codebuild.rb
awspec-1.27.1 lib/awspec/generator/spec/codebuild.rb
awspec-1.27.0 lib/awspec/generator/spec/codebuild.rb
awspec-1.26.0 lib/awspec/generator/spec/codebuild.rb
awspec-1.25.2 lib/awspec/generator/spec/codebuild.rb