Skip to content

Commit d9a3c90

Browse files
committed
fix(win): add pact-provider-verifier cmd binstub
1 parent 4ae7ae1 commit d9a3c90

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

bin/pact-provider-verifier.cmd

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
@ruby -x "%~f0" %*
2+
@exit /b %ERRORLEVEL%
3+
4+
#!/usr/bin/env ruby
5+
# frozen_string_literal: true
6+
7+
#
8+
# This file was generated by Bundler.
9+
#
10+
# The application 'pact-provider-verifier' is installed as part of a gem, and
11+
# this file is here to facilitate running it.
12+
#
13+
14+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
15+
16+
bundle_binstub = File.expand_path("bundle", __dir__)
17+
18+
if File.file?(bundle_binstub)
19+
if File.read(bundle_binstub, 300).include?("This file was generated by Bundler")
20+
load(bundle_binstub)
21+
else
22+
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
23+
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
24+
end
25+
end
26+
27+
require "rubygems"
28+
require "bundler/setup"
29+
30+
load Gem.bin_path("pact-provider-verifier", "pact-provider-verifier")

0 commit comments

Comments
 (0)