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