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
from-scratch-0.7.0 cookbooks/apt/libraries/matchers.rb
from-scratch-0.6.0 cookbooks/apt/libraries/matchers.rb
from-scratch-0.5.0 cookbooks/apt/libraries/matchers.rb
from-scratch-0.3.0 cookbooks/apt/libraries/matchers.rb
from-scratch-0.2.0 cookbooks/apt/libraries/matchers.rb
from-scratch-0.1.1 cookbooks/apt/libraries/matchers.rb
madscience-0.0.29 cookbooks/apt/libraries/matchers.rb
madscience-0.0.28 cookbooks/apt/libraries/matchers.rb
madscience-0.0.27 cookbooks/apt/libraries/matchers.rb
madscience-0.0.26 cookbooks/apt/libraries/matchers.rb
madscience-0.0.25 cookbooks/apt/libraries/matchers.rb
madscience-0.0.24 cookbooks/apt/libraries/matchers.rb
madscience-0.0.23 cookbooks/apt/libraries/matchers.rb
madscience-0.0.21 cookbooks/apt/libraries/matchers.rb
madscience-0.0.20 cookbooks/apt/libraries/matchers.rb
madscience-0.0.19 cookbooks/apt/libraries/matchers.rb
madscience-0.0.17 cookbooks/apt/libraries/matchers.rb
madscience-0.0.16 cookbooks/apt/libraries/matchers.rb
madscience-0.0.15 cookbooks/apt/libraries/matchers.rb
madscience-0.0.14 cookbooks/apt/libraries/matchers.rb