summaryrefslogtreecommitdiff
path: root/lib/bundler/templates/Executable.standalone
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bundler/templates/Executable.standalone')
-rw-r--r--lib/bundler/templates/Executable.standalone14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/bundler/templates/Executable.standalone b/lib/bundler/templates/Executable.standalone
new file mode 100644
index 0000000000..3117a27e86
--- /dev/null
+++ b/lib/bundler/templates/Executable.standalone
@@ -0,0 +1,14 @@
+#!/usr/bin/env <%= Bundler.settings[:shebang] || RbConfig::CONFIG["ruby_install_name"] %>
+# frozen_string_literal: true
+
+#
+# This file was generated by Bundler.
+#
+# The application '<%= executable %>' is installed as part of a gem, and
+# this file is here to facilitate running it.
+#
+
+$:.unshift File.expand_path "<%= standalone_path %>", __dir__
+
+require "bundler/setup"
+load File.expand_path "<%= executable_path %>", __dir__