Sha256: 992e85f5239058553d08168879724ab73101c86ecf9f2c2492b77b489d91bd7f

Contents?: true

Size: 580 Bytes

Versions: 62

Compression:

Stored size: 580 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

62 entries across 62 versions & 1 rubygems

Version Path
chef-bin-18.6.2 Rakefile
chef-bin-17.10.163 Rakefile
chef-bin-18.5.0 Rakefile
chef-bin-18.4.12 Rakefile
chef-bin-17.10.122 Rakefile
chef-bin-17.10.114 Rakefile
chef-bin-18.4.2 Rakefile
chef-bin-17.10.95 Rakefile
chef-bin-18.3.0 Rakefile
chef-bin-17.10.68 Rakefile
chef-bin-18.2.7 Rakefile
chef-bin-16.18.30 Rakefile
chef-bin-18.1.0 Rakefile
chef-bin-18.0.185 Rakefile
chef-bin-18.0.169 Rakefile
chef-bin-16.18.0 Rakefile
chef-bin-17.10.0 Rakefile
chef-bin-17.9.52 Rakefile
chef-bin-16.17.51 Rakefile
chef-bin-17.9.46 Rakefile