Created
August 25, 2013 11:28
-
-
Save hkaju/6333372 to your computer and use it in GitHub Desktop.
Script for initializing a new puppet module for 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
#!/usr/bin/env ruby | |
module_name = ARGV[-1] | |
`mkdir puppet-#{module_name}` | |
Dir.chdir("puppet-#{module_name}") | |
`git init .` | |
`git remote add template https://github.com/boxen/puppet-template.git` | |
`git fetch template` | |
`git checkout -b master template/master` | |
`script/cibuild` | |
`.bundle/binstubs/rspec-puppet-init` | |
`git remote rm template` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment