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.15.1 lib/awspec/generator/spec/rds_db_cluster_parameter_group.rb
awspec-1.15.0 lib/awspec/generator/spec/rds_db_cluster_parameter_group.rb
awspec-1.14.1 lib/awspec/generator/spec/rds_db_cluster_parameter_group.rb
awspec-1.14.0 lib/awspec/generator/spec/rds_db_cluster_parameter_group.rb
awspec-1.13.0 lib/awspec/generator/spec/rds_db_cluster_parameter_group.rb
awspec-1.12.7 lib/awspec/generator/spec/rds_db_cluster_parameter_group.rb
awspec-1.12.6 lib/awspec/generator/spec/rds_db_cluster_parameter_group.rb
awspec-1.12.5 lib/awspec/generator/spec/rds_db_cluster_parameter_group.rb
awspec-1.12.4 lib/awspec/generator/spec/rds_db_cluster_parameter_group.rb
awspec-1.12.3 lib/awspec/generator/spec/rds_db_cluster_parameter_group.rb
awspec-1.12.2 lib/awspec/generator/spec/rds_db_cluster_parameter_group.rb
awspec-1.12.1 lib/awspec/generator/spec/rds_db_cluster_parameter_group.rb
awspec-1.12.0 lib/awspec/generator/spec/rds_db_cluster_parameter_group.rb
awspec-1.11.1 lib/awspec/generator/spec/rds_db_cluster_parameter_group.rb
awspec-1.11.0 lib/awspec/generator/spec/rds_db_cluster_parameter_group.rb
awspec-1.10.0 lib/awspec/generator/spec/rds_db_cluster_parameter_group.rb
awspec-1.9.0 lib/awspec/generator/spec/rds_db_cluster_parameter_group.rb
awspec-1.8.0 lib/awspec/generator/spec/rds_db_cluster_parameter_group.rb
awspec-1.7.0 lib/awspec/generator/spec/rds_db_cluster_parameter_group.rb
awspec-1.6.1 lib/awspec/generator/spec/rds_db_cluster_parameter_group.rb