Sha256: 6ed2e51796de22c4e6db6ab7ca5eaf956e47d679cdc118212448bb7c6308a7c6

Contents?: true

Size: 864 Bytes

Versions: 34

Compression:

Stored size: 864 Bytes

Contents

# Matchers for chefspec 3

if defined?(ChefSpec)
  def create_yum_repository(resource_name)
    ChefSpec::Matchers::ResourceMatcher.new(:yum_repository, :create, resource_name)
  end

  def add_yum_repository(resource_name)
    ChefSpec::Matchers::ResourceMatcher.new(:yum_repository, :add, resource_name)
  end

  def delete_yum_repository(resource_name)
    ChefSpec::Matchers::ResourceMatcher.new(:yum_repository, :delete, resource_name)
  end

  def remove_yum_repository(resource_name)
    ChefSpec::Matchers::ResourceMatcher.new(:yum_repository, :remove, resource_name)
  end

  def create_yum_globalconfig(resource_name)
    ChefSpec::Matchers::ResourceMatcher.new(:yum_globalconfig, :create, resource_name)
  end

  def delete_yum_globalconfig(resource_name)
    ChefSpec::Matchers::ResourceMatcher.new(:yum_globalconfig, :delete, resource_name)
  end
end

Version data entries

34 entries across 34 versions & 3 rubygems

Version Path
from-scratch-0.7.0 cookbooks/yum/libraries/matchers.rb
from-scratch-0.6.0 cookbooks/yum/libraries/matchers.rb
from-scratch-0.5.0 cookbooks/yum/libraries/matchers.rb
madscience-0.0.29 cookbooks/yum/libraries/matchers.rb
madscience-0.0.28 cookbooks/yum/libraries/matchers.rb
madscience-0.0.27 cookbooks/yum/libraries/matchers.rb
madscience-0.0.26 cookbooks/yum/libraries/matchers.rb
madscience-0.0.25 cookbooks/yum/libraries/matchers.rb
madscience-0.0.24 cookbooks/yum/libraries/matchers.rb
madscience-0.0.23 cookbooks/yum/libraries/matchers.rb
madscience-0.0.21 cookbooks/yum/libraries/matchers.rb
madscience-0.0.20 cookbooks/yum/libraries/matchers.rb
madscience-0.0.19 cookbooks/yum/libraries/matchers.rb
madscience-0.0.17 cookbooks/yum/libraries/matchers.rb
madscience-0.0.16 cookbooks/yum/libraries/matchers.rb
madscience-0.0.15 cookbooks/yum/libraries/matchers.rb
madscience-0.0.14 cookbooks/yum/libraries/matchers.rb
madscience-0.0.13 cookbooks/yum/libraries/matchers.rb
madscience-0.0.11 cookbooks/yum/libraries/matchers.rb
madscience-0.0.10 cookbooks/yum/libraries/matchers.rb