Module: Sprinkle::Verifiers::Brew

Defined in:
lib/sprinkle/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

- (Object) has_brew(package)

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



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

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