Skip to content
This repository has been archived by the owner on Dec 2, 2020. It is now read-only.

Commit

Permalink
Merge pull request #61 from sebroeder/only-tap-completions-when-needed
Browse files Browse the repository at this point in the history
Only tap homebrew/completions when $completion parameter is set to true
  • Loading branch information
jhaals committed Aug 14, 2015
2 parents c04a895 + fcdc197 commit e454f30
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
) {
validate_bool($completion)

$ensure_pkg = $completion ? {
$ensure_completion = $completion ? {
true => 'present',
default => 'absent',
}
Expand All @@ -26,10 +26,12 @@
require => Package["Vagrant_${version}"],
}

homebrew::tap { 'homebrew/completions': }
homebrew::tap { 'homebrew/completions':
ensure => $ensure_completion,
}

package { 'vagrant-completion':
ensure => $ensure_pkg,
ensure => $ensure_completion,
provider => 'homebrew',
require => Homebrew::Tap['homebrew/completions'],
}
Expand Down

0 comments on commit e454f30

Please sign in to comment.