Skip to content

Instantly share code, notes, and snippets.

@kenperkins
Created December 5, 2011 21:18
Show Gist options
  • Save kenperkins/1435394 to your computer and use it in GitHub Desktop.
Save kenperkins/1435394 to your computer and use it in GitHub Desktop.
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