Created
August 1, 2013 01:05
-
-
Save indirect/6127659 to your computer and use it in GitHub Desktop.
Rsync 3 homebrew dupe formula installed via boxen
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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