Sha256: b066a0eb44953287a8fe5f361fc2ad7946a14c3e0e9a54e73f44276dd5c8775b

Contents?: true

Size: 677 Bytes

Versions: 2

Compression:

Stored size: 677 Bytes

Contents

if defined?(ChefSpec)
  def install_rbenv_plugin(name)
    ChefSpec::Matchers::ResourceMatcher.new(:rbenv_plugin, :install, name)
  end

  def run_rbenv_script(name)
    ChefSpec::Matchers::ResourceMatcher.new(:rbenv_script, :run, name)
  end

  def install_rbenv_gem(name)
    ChefSpec::Matchers::ResourceMatcher.new(:rbenv_gem, :install, name)
  end

  def upgrade_rbenv_gem(name)
    ChefSpec::Matchers::ResourceMatcher.new(:rbenv_gem, :upgrade, name)
  end

  def remove_rbenv_gem(name)
    ChefSpec::Matchers::ResourceMatcher.new(:rbenv_gem, :remove, name)
  end

  def purge_rbenv_gem(name)
    ChefSpec::Matchers::ResourceMatcher.new(:rbenv_gem, :purge, name)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
from-scratch-0.7.0 cookbooks/ruby_rbenv/libraries/matchers.rb
from-scratch-0.6.0 cookbooks/ruby_rbenv/libraries/matchers.rb