Sha256: 7cc20b5d7109456f262057849efca002301d808e2715a388efa1facbbadb265d

Contents?: true

Size: 904 Bytes

Versions: 13

Compression:

Stored size: 904 Bytes

Contents

# frozen_string_literal: true

require_relative './matchers/include_resource_change'

module RSpec
  module Terraform
    module Matchers
      def include_resource_change(definition = {})
        IncludeResourceChange.new(definition)
      end

      def include_resource_creation(definition = {})
        include_resource_change(definition.merge(create?: true))
      end

      def include_resource_read(definition = {})
        include_resource_change(definition.merge(read?: true))
      end

      def include_resource_update(definition = {})
        include_resource_change(definition.merge(update?: true))
      end

      def include_resource_replacement(definition = {})
        include_resource_change(definition.merge(replace?: true))
      end

      def include_resource_deletion(definition = {})
        include_resource_change(definition.merge(delete?: true))
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
rspec-terraform-0.1.0.pre.15 lib/rspec/terraform/matchers.rb
rspec-terraform-0.1.0.pre.14 lib/rspec/terraform/matchers.rb
rspec-terraform-0.1.0.pre.13 lib/rspec/terraform/matchers.rb
rspec-terraform-0.1.0.pre.12 lib/rspec/terraform/matchers.rb
rspec-terraform-0.1.0.pre.11 lib/rspec/terraform/matchers.rb
rspec-terraform-0.1.0.pre.10 lib/rspec/terraform/matchers.rb
rspec-terraform-0.1.0.pre.9 lib/rspec/terraform/matchers.rb
rspec-terraform-0.1.0.pre.8 lib/rspec/terraform/matchers.rb
rspec-terraform-0.1.0.pre.7 lib/rspec/terraform/matchers.rb
rspec-terraform-0.1.0.pre.6 lib/rspec/terraform/matchers.rb
rspec-terraform-0.1.0.pre.5 lib/rspec/terraform/matchers.rb
rspec-terraform-0.1.0.pre.4 lib/rspec/terraform/matchers.rb
rspec-terraform-0.1.0.pre.3 lib/rspec/terraform/matchers.rb