Skip to content

Instantly share code, notes, and snippets.

@indirect
Created August 1, 2013 01:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save indirect/6127659 to your computer and use it in GitHub Desktop.
Save indirect/6127659 to your computer and use it in GitHub Desktop.
Rsync 3 homebrew dupe formula installed via boxen
# Homebrew::tap to get dupes
define homebrew::tap (
$ensure = present,
) {
if $ensure == 'present' {
exec { "homebrew_tap_${name}":
command => "brew tap ${name}",
unless => "brew tap | grep ${name}",
}
} else {
exec { "homebrew_untap_${name}":
command => "brew untap ${name}",
onlyif => "brew tap | grep ${name}",
}
}
}
# Homebrew dupes to get rsync 3
homebrew::tap { 'homebrew/dupes': }
# Rsync 3 from homebrew dupes
package { 'homebrew/dupes/rsync':
require => Homebrew::Tap['homebrew/dupes']
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment