summaryrefslogtreecommitdiff
path: root/exe
diff options
context:
space:
mode:
Diffstat (limited to 'exe')
-rwxr-xr-xexe/bundle_ruby7
1 files changed, 4 insertions, 3 deletions
diff --git a/exe/bundle_ruby b/exe/bundle_ruby
index 847708c3ea..df6f8cc8a1 100755
--- a/exe/bundle_ruby
+++ b/exe/bundle_ruby
@@ -1,12 +1,15 @@
#!/usr/bin/env ruby
# frozen_string_literal: true
+require "bundler/shared_helpers"
+
+Bundler::SharedHelpers.major_deprecation(2, "the bundle_ruby executable has been removed in favor of `bundle platform --ruby`")
+
Signal.trap("INT") { exit 1 }
require "bundler/errors"
require "bundler/ruby_version"
require "bundler/ruby_dsl"
-require "bundler/shared_helpers"
module Bundler
class Dsl
@@ -42,8 +45,6 @@ module Bundler
end
end
-Bundler::SharedHelpers.major_deprecation("the bundle_ruby executable has been removed in favor of `bundle platform --ruby`")
-
dsl = Bundler::Dsl.new
begin
dsl.eval_gemfile(Bundler::SharedHelpers.default_gemfile)