vagrant-libvirt/Rakefile
Darragh Bailey 966ef2a534
Tag version from git tag (#1161)
Switch to looking up the version from a file with a fall back to get
it directly from git tags if the file isn't available.

The version file is automatically generated by a task of building of the
gem and included in the package release to prevent reading from git.

Should allow the release process to be automated from pushing of a git
tag.
2020-10-23 18:18:52 +01:00

24 lines
553 B
Ruby

#require 'rubygems'
#require 'bundler/setup'
require 'bundler/gem_tasks'
require File.expand_path('../lib/vagrant-libvirt/version', __FILE__)
Bundler::GemHelper.install_tasks
task default: [:deftask]
task :deftask do
puts 'call rake -T'
end
task :write_version do
VagrantPlugins::ProviderLibvirt.write_version()
end
task :clean_version do
rm_rf File.expand_path('../lib/vagrant-libvirt/version', __FILE__)
end
task "clean" => :clean_version
task :write_version => :clean_version
task "build" => :write_version
task "release" => :write_version