Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 53eacf55d7
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (16 sloc) 0.508 kb
VERSION_FILE = 'lib/hiera.rb'
def get_current_version
File.open( VERSION_FILE ) {|io| io.grep(/VERSION = /)}[0].split()[-1]
end
def described_version
# This ugly bit removes the gSHA1 portion of the describe as that causes failing tests
%x{git describe}.gsub('-', '.').split('.')[0..3].join('.').to_s.gsub('v', '')
end
namespace :pkg do
desc "Build Package"
task :release => [ :default ] do
Rake::Task[:package].invoke
end
end # namespace
task :clean => [ :clobber_package ] do
end
Jump to Line
Something went wrong with that request. Please try again.