Sha256: cb6b0bf3f0d2f6773cfe23a816f535f9acdef8dc2234b88378927413fd04f8cd

Contents?: true

Size: 535 Bytes

Versions: 58

Compression:

Stored size: 535 Bytes

Contents

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
        template = <<-'EOF'
<% projects.each do |project| %>
describe codebuild('<%= project %>') do
  it { should exist }
end
<% end %>
EOF
        template
      end
    end
  end
end

Version data entries

58 entries across 58 versions & 3 rubygems

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