Created
December 5, 2011 21:18
-
-
Save kenperkins/1435394 to your computer and use it in GitHub Desktop.
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
class clipboard-src::release { | |
require git, users::admin | |
vcsrepo { "/usr/local/src/clipboard-release": | |
ensure => present, | |
provider => git, | |
source => "[email protected]:clipboard/release.git", | |
require => Class["users::admin", "git"], | |
} | |
exec { "checkout": | |
command => "git checkout ${environment}", | |
cwd => "/usr/local/src/clipboard-release", | |
require => Vcsrepo["/usr/local/src/clipboard-release"], | |
} | |
exec { "release-pull": | |
command => "git pull", | |
cwd => "/usr/local/src/clipboard-release", | |
require => Exec["checkout"], | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment