mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
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.
24 lines
553 B
Ruby
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
|