Fix licensing issues
[arvados-formula.git] / bin / kitchen
1 #!/usr/bin/env ruby
2
3 # Copyright (C) The Arvados Authors. All rights reserved.
4 #
5 # SPDX-License-Identifier: Apache-2.0
6
7 # frozen_string_literal: true
8
9 #
10 # This file was generated by Bundler.
11 #
12 # The application 'kitchen' is installed as part of a gem, and
13 # this file is here to facilitate running it.
14 #
15
16 require 'pathname'
17 ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile',
18                                            Pathname.new(__FILE__).realpath)
19
20 bundle_binstub = File.expand_path('bundle', __dir__)
21
22 if File.file?(bundle_binstub)
23   if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
24     load(bundle_binstub)
25   else
26     abort(
27       'Your `bin/bundle` was not generated by Bundler, '\
28       'so this binstub cannot run.  Replace `bin/bundle` by running '\
29       '`bundle binstubs bundler --force`, then run this command again.'
30     )
31   end
32 end
33
34 require 'rubygems'
35 require 'bundler/setup'
36
37 load Gem.bin_path('test-kitchen', 'kitchen')