Method: Licensed::Sources::Bundler#ruby_command_args

Defined in:
lib/licensed/sources/bundler.rb

#ruby_command_args(*args) ⇒ Object

Determines if the configured bundler executable is available and returns shell command args with or without ‘bundle exec` depending on availability.



297
298
299
300
# File 'lib/licensed/sources/bundler.rb', line 297

def ruby_command_args(*args)
  return Array(args) unless Licensed::Shell.tool_available?(bundler_exe)
  [bundler_exe, "exec", *args]
end