Skip to content

Instantly share code, notes, and snippets.

@tbuehlmann
Last active December 23, 2015 03:19
Show Gist options
  • Save tbuehlmann/6572987 to your computer and use it in GitHub Desktop.
Save tbuehlmann/6572987 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'puppetlabs_spec_helper/rake_tasks'
def version
File.open('Modulefile').each do |line|
return line.split("'")[1] if line =~ /\bversion\b/
end
end
desc "Create a releasable artifact along with signed tags."
task :release do
v = version
puts "git tag -s #{v} -m 't&r #{v}'"
puts "git checkout #{v}"
puts "puppet module build ."
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment