class Bundler::CLI::Exec
Constants
- TRAPPED_SIGNALS
Attributes
args[R]
cmd[R]
options[R]
Public Class Methods
new(options, args)
click to toggle source
# File bundler/cli/exec.rb, line 11 def initialize(options, args) @options = options @cmd = args.shift @args = args @args << { :close_others => !options.keep_file_descriptors? } unless Bundler.current_ruby.jruby? end
Public Instance Methods
run()
click to toggle source
# File bundler/cli/exec.rb, line 18 def run validate_cmd! SharedHelpers.set_bundle_environment if bin_path = Bundler.which(cmd) if !Bundler.settings[:disable_exec_load] && ruby_shebang?(bin_path) return kernel_load(bin_path, *args) end kernel_exec(bin_path, *args) else # exec using the given command kernel_exec(cmd, *args) end end