Sha256: a23ec54d80261123d146fc0350f9487b5190f3f34ab37ea11dcdd9cefa74c850
Contents?: true
Size: 676 Bytes
Versions: 12
Compression:
Stored size: 676 Bytes
Contents
# frozen_string_literal: true module Awspec::Generator module Spec class RdsDbClusterParameterGroup include Awspec::Helper::Finder def generate_by_parameter_group(parameter_group) @parameter_group = parameter_group res = select_all_rds_db_cluster_parameters(@parameter_group) ERB.new(db_cluster_parameter_group_template, nil, '-').result(binding).gsub(/^\n/, '') end def db_cluster_parameter_group_template <<-'EOF' describe rds_db_cluster_parameter_group('<%= @parameter_group %>') do <% res.each do |key, value| %> its('<%= key %>') { should eq '<%= value %>' } <% end %> end EOF end end end end
Version data entries
12 entries across 12 versions & 1 rubygems