Sha256: 17a603f297c513c8ba710b2504a1ac6be8303b8401bad535895198038a312359

Contents?: true

Size: 597 Bytes

Versions: 1

Compression:

Stored size: 597 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"].max_by { |f| File.mtime(f) }
  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

1 entries across 1 versions & 1 rubygems

Version Path
chef-bin-18.0.172 Rakefile