This uses the ruby_build provider for Mastodon, installing Ruby 2.4.1 currently. It also updates some other cookbooks and the runlists.
29 lines
749 B
Ruby
29 lines
749 B
Ruby
if defined?(ChefSpec)
|
|
ChefSpec.define_matcher :homebrew_package
|
|
|
|
def tap_homebrew_tap(tap)
|
|
ChefSpec::Matchers::ResourceMatcher.new(:homebrew_tap, :tap, tap)
|
|
end
|
|
|
|
def untap_homebrew_tap(tap)
|
|
ChefSpec::Matchers::ResourceMatcher.new(:homebrew_tap, :untap, tap)
|
|
end
|
|
|
|
def cask_homebrew_cask(cask)
|
|
ChefSpec::Matchers::ResourceMatcher.new(:homebrew_cask, :cask, cask)
|
|
end
|
|
|
|
def uncask_homebrew_cask(cask)
|
|
ChefSpec::Matchers::ResourceMatcher.new(:homebrew_cask, :uncask, cask)
|
|
end
|
|
|
|
def install_homebrew_cask(cask)
|
|
ChefSpec::Matchers::ResourceMatcher.new(:homebrew_cask, :install, cask)
|
|
end
|
|
|
|
def uninstall_homebrew_cask(cask)
|
|
ChefSpec::Matchers::ResourceMatcher.new(:homebrew_cask, :uninstall, cask)
|
|
end
|
|
|
|
end
|