Skip to content

Instantly share code, notes, and snippets.

@hkaju
Created August 25, 2013 11:28
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 hkaju/6333372 to your computer and use it in GitHub Desktop.
Save hkaju/6333372 to your computer and use it in GitHub Desktop.
Script for initializing a new puppet module for boxen
#!/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