summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-08-23 15:42:29 -0700
committerTim Smith <tsmith@chef.io>2018-08-23 15:42:29 -0700
commit8fa32171addbaf2767ce3e93527b44df42b380fb (patch)
tree923d8d4c2baeec6e7606c31a9900e7816e23aa23 /Rakefile
parent1d9645fe86b15a97b2a8831eb312573867846775 (diff)
downloadchef-8fa32171addbaf2767ce3e93527b44df42b380fb.tar.gz
Build the appropriate chef gem on Windows
This allows us to remove similar logic from the omnibus-software definition and allows this rake command to actually work for developers on Windows. Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index 287bfccb49..f37bf469f2 100644
--- a/Rakefile
+++ b/Rakefile
@@ -32,7 +32,9 @@ end
task install: :super_install
-Bundler::GemHelper.install_tasks name: "chef"
+# make sure we build the correct gemspec on windows
+gemspec = Gem.win_platform? ? "chef-universal-mingw32" : "chef"
+Bundler::GemHelper.install_tasks name: gemspec
task :pedant, :chef_zero_spec