Sha256: 681d7c8a229ea261a010286a7285a74a6a3b40c1dbaa0ae75fcf841fe55154aa

Contents?: true

Size: 851 Bytes

Versions: 23

Compression:

Stored size: 851 Bytes

Contents

if defined?(ChefSpec)
  ChefSpec.define_matcher(:firewall)
  ChefSpec.define_matcher(:firewall_rule)

  # actions(:install, :restart, :disable, :flush, :save)

  def install_firewall(resource)
    ChefSpec::Matchers::ResourceMatcher.new(:firewall, :install, resource)
  end

  def restart_firewall(resource)
    ChefSpec::Matchers::ResourceMatcher.new(:firewall, :restart, resource)
  end

  def disable_firewall(resource)
    ChefSpec::Matchers::ResourceMatcher.new(:firewall, :disable, resource)
  end

  def flush_firewall(resource)
    ChefSpec::Matchers::ResourceMatcher.new(:firewall, :flush, resource)
  end

  def save_firewall(resource)
    ChefSpec::Matchers::ResourceMatcher.new(:firewall, :save, resource)
  end

  def create_firewall_rule(resource)
    ChefSpec::Matchers::ResourceMatcher.new(:firewall_rule, :create, resource)
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
cloud-mu-3.5.1 cookbooks/firewall/libraries/matchers.rb
cloud-mu-3.5.0 cookbooks/firewall/libraries/matchers.rb
cloud-mu-3.4.0 cookbooks/firewall/libraries/matchers.rb
cloud-mu-3.3.2 cookbooks/firewall/libraries/matchers.rb
cloud-mu-3.3.1 cookbooks/firewall/libraries/matchers.rb
cloud-mu-3.3.0 cookbooks/firewall/libraries/matchers.rb
cloud-mu-3.2.0 cookbooks/firewall/libraries/matchers.rb
cloud-mu-3.1.6 cookbooks/firewall/libraries/matchers.rb
cloud-mu-3.1.5 cookbooks/firewall/libraries/matchers.rb
cloud-mu-3.1.4 cookbooks/firewall/libraries/matchers.rb
cloud-mu-3.1.3 cookbooks/firewall/libraries/matchers.rb
cloud-mu-3.1.2 cookbooks/firewall/libraries/matchers.rb
cloud-mu-3.1.2beta2 cookbooks/firewall/libraries/matchers.rb
cloud-mu-3.1.1 cookbooks/firewall/libraries/matchers.rb
cloud-mu-3.1.0 cookbooks/firewall/libraries/matchers.rb
cloud-mu-3.0.2 cookbooks/firewall/libraries/matchers.rb
cloud-mu-3.0.1 cookbooks/firewall/libraries/matchers.rb
cloud-mu-3.0.0 cookbooks/firewall/libraries/matchers.rb
cloud-mu-3.0.0beta cookbooks/firewall/libraries/matchers.rb
cloud-mu-2.0.4 cookbooks/firewall/libraries/matchers.rb