Module: Pot::Verifiers::Brew

Defined in:
lib/pot/verifiers/brew.rb

Overview

Brew package Verifier

Contains a verifier to check the existance of a Homebrew formula.

Example Usage

verify { has_brew 'ntp' }

Instance Method Summary collapse

Instance Method Details

#has_brew(package) ⇒ Object

Checks to make sure the brew formula exists on the remote server.



15
16
17
# File 'lib/pot/verifiers/brew.rb', line 15

def has_brew(package)
  @commands << "brew list | grep  #{package}"
end