Sha256: 3c677276b88c50aac4e946d38935c36f64fb4a9dd68f0f5e341cb1c674471ae4
Contents?: true
Size: 634 Bytes
Versions: 71
Compression:
Stored size: 634 Bytes
Contents
module Awspec::Generator module Spec class RdsDbParameterGroup include Awspec::Helper::Finder def generate_by_parameter_group(parameter_group) @parameter_group = parameter_group res = select_all_rds_db_parameters(@parameter_group) ERB.new(db_parameter_group_template, nil, '-').result(binding).gsub(/^\n/, '') end def db_parameter_group_template template = <<-'EOF' describe rds_db_parameter_group('<%= @parameter_group %>') do <% res.each do |key, value| %> its('<%= key %>') { should eq '<%= value %>' } <% end %> end EOF template end end end end
Version data entries
71 entries across 71 versions & 3 rubygems