Sha256: 02aa58fccaecc13d9d187ed3b0cca6eeb56c9893b6070e5636a634445f0f8311

Contents?: true

Size: 553 Bytes

Versions: 33

Compression:

Stored size: 553 Bytes

Contents

if defined?(ChefSpec)
  def add_apt_preference(resource_name)
    ChefSpec::Matchers::ResourceMatcher.new(:apt_preference, :add, resource_name)
  end

  def remove_apt_preference(resource_name)
    ChefSpec::Matchers::ResourceMatcher.new(:apt_preference, :remove, resource_name)
  end

  def add_apt_repository(resource_name)
    ChefSpec::Matchers::ResourceMatcher.new(:apt_repository, :add, resource_name)
  end

  def remove_apt_repository(resource_name)
    ChefSpec::Matchers::ResourceMatcher.new(:apt_repository, :remove, resource_name)
  end
end

Version data entries

33 entries across 33 versions & 3 rubygems

Version Path
madscience-0.0.13 cookbooks/apt/libraries/matchers.rb
madscience-0.0.11 cookbooks/apt/libraries/matchers.rb
madscience-0.0.10 cookbooks/apt/libraries/matchers.rb
madscience-0.0.9 cookbooks/apt/libraries/matchers.rb
madscience-0.0.8 cookbooks/apt/libraries/matchers.rb
madscience-0.0.7 cookbooks/apt/libraries/matchers.rb
madscience-0.0.6 cookbooks/apt/libraries/matchers.rb
madscience-0.0.5 cookbooks/apt/libraries/matchers.rb
madscience-0.0.4 cookbooks/apt/libraries/matchers.rb
infrataster-plugin-ldap-0.0.1 spec/cookbooks/apt/libraries/matchers.rb
madscience-0.0.3 cookbooks/apt/libraries/matchers.rb
madscience-0.0.2 cookbooks/apt/libraries/matchers.rb
madscience-0.0.1 cookbooks/apt/libraries/matchers.rb