diff options
author | Tom Duffield <tom@chef.io> | 2017-02-10 21:35:14 -0600 |
---|---|---|
committer | Tom Duffield <tom@chef.io> | 2017-02-22 13:04:14 -0600 |
commit | ef38cd3691bf3ecd08cd88c83b41611ebf95cd7e (patch) | |
tree | 38ec3decad2db9b6f6c5e18b6fb2f1ab0fed948e /Rakefile | |
parent | 42445a55fe97a4c8c1b5b88b91b38e3f15babc61 (diff) | |
download | chef-ef38cd3691bf3ecd08cd88c83b41611ebf95cd7e.tar.gz |
Better handle version bumpingtduffield/update-version-bumping
Signed-off-by: Tom Duffield <tom@chef.io>
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 20 |
1 files changed, 1 insertions, 19 deletions
@@ -29,30 +29,12 @@ require_relative "tasks/cbgb" require_relative "tasks/dependencies" require_relative "tasks/changelog" require_relative "tasks/announce" +require_relative "tasks/version" ChefConfig::PackageTask.new(File.expand_path("..", __FILE__), "Chef", "chef") do |package| package.component_paths = ["chef-config"] package.generate_version_class = true end -# Add conservative dependency update to version:bump (which was created by PackageTask) -task "version:bump" => %w{version:bump_patch version:update} -task "version:bump" => %w{version:bump_patch version:update} - -task "version:bump_minor" do - Rake::Task["changelog:archive"].invoke - maj, min, _build = Chef::VERSION.split(".") - File.open("VERSION", "w+") { |f| f.write("#{maj}.#{min.to_i + 1}.0") } - Rake::Task["version"].invoke - Rake::Task["bundle:install"].invoke -end - -task "version:bump_major" do - Rake::Task["changelog:archive"].invoke - maj, _min, _build = Chef::VERSION.split(".") - File.open("VERSION", "w+") { |f| f.write("#{maj.to_i + 1}.0.0") } - Rake::Task["version"].invoke - Rake::Task["bundle:install"].invoke -end task :pedant, :chef_zero_spec |