Sha256: b3bbb3f371b83af4d0c6a10a0ffd7e37ddc62227be7e8885d682ebdb88915cb8

Contents?: true

Size: 586 Bytes

Versions: 12

Compression:

Stored size: 586 Bytes

Contents

# we need to force the install in order to overwrite the binstubs from
# old chef gems.

require "bundler/gem_helper"

Bundler::GemHelper.install_tasks

# this is necessary to use to overwrite any chef-14 or earlier era gem which has the bin files in
# the chef gem itself
desc "force install the chef-bin gem"
task "install:force" do
  sh "gem build -V chef-bin.gemspec"
  built_gem_path = Dir["chef-bin-*.gem"].sort_by { |f| File.mtime(f) }.last
  FileUtils.mkdir_p("pkg") unless Dir.exist?("pkg")
  FileUtils.mv(built_gem_path, "pkg")
  sh "gem install -f pkg/#{built_gem_path}"
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
chef-bin-16.4.41 Rakefile
chef-bin-16.4.38 Rakefile
chef-bin-16.4.35 Rakefile
chef-bin-16.3.45 Rakefile
chef-bin-16.3.38 Rakefile
chef-bin-16.2.73 Rakefile
chef-bin-16.2.50 Rakefile
chef-bin-16.2.44 Rakefile
chef-bin-16.1.16 Rakefile
chef-bin-16.1.0 Rakefile
chef-bin-16.0.287 Rakefile
chef-bin-16.0.275 Rakefile