Sha256: 07a8015ab3ab995a97268fde580c899ad07025efc1f389005c007b650e5a034c

Contents?: true

Size: 556 Bytes

Versions: 26

Compression:

Stored size: 556 Bytes

Contents

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

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

26 entries across 26 versions & 1 rubygems

Version Path
chef-bin-15.15.0 Rakefile
chef-bin-15.14.0 Rakefile
chef-bin-15.13.8 Rakefile
chef-bin-15.12.22 Rakefile
chef-bin-15.11.8 Rakefile
chef-bin-15.11.3 Rakefile
chef-bin-16.0.257 Rakefile
chef-bin-15.10.12 Rakefile
chef-bin-15.9.17 Rakefile
chef-bin-15.8.23 Rakefile
chef-bin-15.7.32 Rakefile
chef-bin-15.7.31 Rakefile
chef-bin-15.7.30 Rakefile
chef-bin-15.6.10 Rakefile
chef-bin-15.5.17 Rakefile
chef-bin-15.5.16 Rakefile
chef-bin-15.5.15 Rakefile
chef-bin-15.5.9 Rakefile
chef-bin-15.4.45 Rakefile
chef-bin-15.3.14 Rakefile