Sha256: ea10c30f0945e2672537ee5001a24ba1fdc12642b3d09c357865a566e7ad9e36

Contents?: true

Size: 673 Bytes

Versions: 71

Compression:

Stored size: 673 Bytes

Contents

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
        template = <<-'EOF'
describe rds_db_cluster_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

Version Path
awspec-1.6.0 lib/awspec/generator/spec/rds_db_cluster_parameter_group.rb
awspec-1.5.4 lib/awspec/generator/spec/rds_db_cluster_parameter_group.rb
awspec-1.5.3 lib/awspec/generator/spec/rds_db_cluster_parameter_group.rb
awspec-1.5.2 lib/awspec/generator/spec/rds_db_cluster_parameter_group.rb
awspec-1.5.1 lib/awspec/generator/spec/rds_db_cluster_parameter_group.rb
awspec-1.5.0 lib/awspec/generator/spec/rds_db_cluster_parameter_group.rb
awspec-1.4.3 lib/awspec/generator/spec/rds_db_cluster_parameter_group.rb
awspec-1.4.2 lib/awspec/generator/spec/rds_db_cluster_parameter_group.rb
awspec-1.4.1 lib/awspec/generator/spec/rds_db_cluster_parameter_group.rb
awspec-1.4.0 lib/awspec/generator/spec/rds_db_cluster_parameter_group.rb
awspec-1.3.1 lib/awspec/generator/spec/rds_db_cluster_parameter_group.rb