Sha256: c73653895f225b12bcba50e12fdac24bd849a91a81e57c2ae1a5f88c6a67ef5f

Contents?: true

Size: 692 Bytes

Versions: 44

Compression:

Stored size: 692 Bytes

Contents

module Awspec::Generator
  module Spec
    class RedshiftClusterParameterGroup
      include Awspec::Helper::Finder
      def generate_by_parameter_group(parameter_group)
        @parameter_group = parameter_group
        res = select_all_redshift_cluster_parameters(@parameter_group)
        ERB.new(redshift_cluster_parameters_spec_template, nil, '-').result(binding).gsub(/^\n/, '')
      end

      def redshift_cluster_parameters_spec_template
        template = <<-'EOF'
describe redshift_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

44 entries across 44 versions & 3 rubygems

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