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

Version Path
awspec-1.25.1 lib/awspec/generator/spec/rds_db_parameter_group.rb
awspec-1.25.0 lib/awspec/generator/spec/rds_db_parameter_group.rb
awspec-1.24.4 lib/awspec/generator/spec/rds_db_parameter_group.rb
awspec-1.24.3 lib/awspec/generator/spec/rds_db_parameter_group.rb
awspec-1.24.2 lib/awspec/generator/spec/rds_db_parameter_group.rb
awspec-1.24.1 lib/awspec/generator/spec/rds_db_parameter_group.rb
awspec-1.24.0 lib/awspec/generator/spec/rds_db_parameter_group.rb
awspec-1.23.0 lib/awspec/generator/spec/rds_db_parameter_group.rb
awspec-1.22.1 lib/awspec/generator/spec/rds_db_parameter_group.rb
awspec-1.22.0 lib/awspec/generator/spec/rds_db_parameter_group.rb
awspec-1.21.1 lib/awspec/generator/spec/rds_db_parameter_group.rb
awspec-1.21.0 lib/awspec/generator/spec/rds_db_parameter_group.rb
awspec-1.20.0 lib/awspec/generator/spec/rds_db_parameter_group.rb
awspec-1.19.2 lib/awspec/generator/spec/rds_db_parameter_group.rb
awspec-1.19.1 lib/awspec/generator/spec/rds_db_parameter_group.rb
awspec-1.19.0 lib/awspec/generator/spec/rds_db_parameter_group.rb
cthiesfork-awspec-1.2.4 lib/awspec/generator/spec/rds_db_parameter_group.rb
awspec-api_gateway_extended-1.2.4 lib/awspec/generator/spec/rds_db_parameter_group.rb
awspec-api_gateway_extended-1.2.3 lib/awspec/generator/spec/rds_db_parameter_group.rb
awspec-1.18.6 lib/awspec/generator/spec/rds_db_parameter_group.rb