diff options
author | John Keiser <john@johnkeiser.com> | 2016-04-11 11:53:29 -0700 |
---|---|---|
committer | John Keiser <john@johnkeiser.com> | 2016-04-18 14:21:02 -0700 |
commit | 257500a90a17e9604c798f2b73afd0ada5d42903 (patch) | |
tree | e249f92f93f6242d0d116e8ad9ccffa73a6da334 /tasks/bin | |
parent | e421b0438177dada513acf7f21f10ba2b3a8f4be (diff) | |
download | chef-257500a90a17e9604c798f2b73afd0ada5d42903.tar.gz |
Pin everything down with Gemfile.lock, add rake dependencies to update
Diffstat (limited to 'tasks/bin')
-rwxr-xr-x | tasks/bin/bundle-platform | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tasks/bin/bundle-platform b/tasks/bin/bundle-platform new file mode 100755 index 0000000000..7c77393cb1 --- /dev/null +++ b/tasks/bin/bundle-platform @@ -0,0 +1,15 @@ +#!/usr/bin/env ruby + +platforms = ARGV.shift +old_platforms = Gem.platforms +Gem.platforms = platforms.split(" ").map { |p| Gem::Platform.new(p) } +puts "bundle-platform set Gem.platforms to #{Gem.platforms.map { |p| p.to_s }} (was #{old_platforms.map { |p| p.to_s } })" + +# The rest of this is a normal bundler binstub +require "pathname" +ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../../Gemfile", + Pathname.new(__FILE__).realpath) + +require "rubygems" + +load Gem.bin_path("bundler", "bundle") |