Sha256: f7813d1cff5a59af183b7671313de2a822e01924c84c97234d9a5da7fe39ac19

Contents?: true

Size: 875 Bytes

Versions: 7

Compression:

Stored size: 875 Bytes

Contents

if defined?(ChefSpec)
  if Gem::Version.new(ChefSpec::VERSION) < Gem::Version.new('4.1.0')
    ChefSpec::Runner.define_runner_method :user_account
  else
    ChefSpec.define_matcher :user_account
  end

  def create_user_account(user)
    ChefSpec::Matchers::ResourceMatcher.new(:user_account, :create, user)
  end
  def remove_user_account(user)
    ChefSpec::Matchers::ResourceMatcher.new(:user_account, :remove, user)
  end
  def modify_user_account(user)
    ChefSpec::Matchers::ResourceMatcher.new(:user_account, :modify, user)
  end
  def manage_user_account(user)
    ChefSpec::Matchers::ResourceMatcher.new(:user_account, :manage, user)
  end
  def lock_user_account(user)
    ChefSpec::Matchers::ResourceMatcher.new(:user_account, :lock, user)
  end
  def unlock_user_account(user)
    ChefSpec::Matchers::ResourceMatcher.new(:user_account, :unlock, user)
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
from-scratch-0.7.0 cookbooks/user/libraries/matchers.rb
from-scratch-0.6.0 cookbooks/user/libraries/matchers.rb
from-scratch-0.5.0 cookbooks/user/libraries/matchers.rb
from-scratch-0.3.0 cookbooks/user/libraries/matchers.rb
from-scratch-0.2.0 cookbooks/user/libraries/matchers.rb
from-scratch-0.1.1 cookbooks/user/libraries/matchers.rb
from-scratch-0.1.0 cookbooks/user/libraries/matchers.rb