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.15.1 lib/awspec/generator/spec/codebuild.rb
awspec-1.15.0 lib/awspec/generator/spec/codebuild.rb
awspec-1.14.1 lib/awspec/generator/spec/codebuild.rb
awspec-1.14.0 lib/awspec/generator/spec/codebuild.rb
awspec-1.13.0 lib/awspec/generator/spec/codebuild.rb
awspec-1.12.7 lib/awspec/generator/spec/codebuild.rb
awspec-1.12.6 lib/awspec/generator/spec/codebuild.rb
awspec-1.12.5 lib/awspec/generator/spec/codebuild.rb
awspec-1.12.4 lib/awspec/generator/spec/codebuild.rb
awspec-1.12.3 lib/awspec/generator/spec/codebuild.rb
awspec-1.12.2 lib/awspec/generator/spec/codebuild.rb
awspec-1.12.1 lib/awspec/generator/spec/codebuild.rb
awspec-1.12.0 lib/awspec/generator/spec/codebuild.rb
awspec-1.11.1 lib/awspec/generator/spec/codebuild.rb
awspec-1.11.0 lib/awspec/generator/spec/codebuild.rb
awspec-1.10.0 lib/awspec/generator/spec/codebuild.rb
awspec-1.9.0 lib/awspec/generator/spec/codebuild.rb
awspec-1.8.0 lib/awspec/generator/spec/codebuild.rb