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