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

Version Path
awspec-1.30.0 lib/awspec/generator/spec/rds_db_cluster_parameter_group.rb
awspec-1.29.3 lib/awspec/generator/spec/rds_db_cluster_parameter_group.rb
awspec-1.29.2 lib/awspec/generator/spec/rds_db_cluster_parameter_group.rb
awspec-1.29.1 lib/awspec/generator/spec/rds_db_cluster_parameter_group.rb
awspec-1.29.0 lib/awspec/generator/spec/rds_db_cluster_parameter_group.rb
awspec-1.28.2 lib/awspec/generator/spec/rds_db_cluster_parameter_group.rb
awspec-1.28.1 lib/awspec/generator/spec/rds_db_cluster_parameter_group.rb
awspec-1.28.0 lib/awspec/generator/spec/rds_db_cluster_parameter_group.rb
awspec-1.27.1 lib/awspec/generator/spec/rds_db_cluster_parameter_group.rb
awspec-1.27.0 lib/awspec/generator/spec/rds_db_cluster_parameter_group.rb
awspec-1.26.0 lib/awspec/generator/spec/rds_db_cluster_parameter_group.rb
awspec-1.25.2 lib/awspec/generator/spec/rds_db_cluster_parameter_group.rb