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
cthiesfork-awspec-1.2.2 lib/awspec/generator/spec/rds_db_cluster_parameter_group.rb
cthiesfork-awspec-1.2.1 lib/awspec/generator/spec/rds_db_cluster_parameter_group.rb
awspec-1.18.5 lib/awspec/generator/spec/rds_db_cluster_parameter_group.rb
cthiesfork-awspec-1.2.0 lib/awspec/generator/spec/rds_db_cluster_parameter_group.rb
cthiesfork-awspec-1.1.0 lib/awspec/generator/spec/rds_db_cluster_parameter_group.rb
cthiesfork-awspec-1.0.0 lib/awspec/generator/spec/rds_db_cluster_parameter_group.rb
awspec-1.18.4 lib/awspec/generator/spec/rds_db_cluster_parameter_group.rb
awspec-1.18.3 lib/awspec/generator/spec/rds_db_cluster_parameter_group.rb
awspec-1.18.2 lib/awspec/generator/spec/rds_db_cluster_parameter_group.rb
awspec-1.18.1 lib/awspec/generator/spec/rds_db_cluster_parameter_group.rb
awspec-1.18.0 lib/awspec/generator/spec/rds_db_cluster_parameter_group.rb
awspec-1.17.4 lib/awspec/generator/spec/rds_db_cluster_parameter_group.rb
awspec-1.17.3 lib/awspec/generator/spec/rds_db_cluster_parameter_group.rb
awspec-1.17.2 lib/awspec/generator/spec/rds_db_cluster_parameter_group.rb
awspec-1.17.1 lib/awspec/generator/spec/rds_db_cluster_parameter_group.rb
awspec-1.17.0 lib/awspec/generator/spec/rds_db_cluster_parameter_group.rb
awspec-1.16.1 lib/awspec/generator/spec/rds_db_cluster_parameter_group.rb
awspec-1.16.0 lib/awspec/generator/spec/rds_db_cluster_parameter_group.rb
awspec-1.15.3 lib/awspec/generator/spec/rds_db_cluster_parameter_group.rb
awspec-1.15.2 lib/awspec/generator/spec/rds_db_cluster_parameter_group.rb