This method is only available on newer versions.
The first available version (v2_6_3) is shown here.
shell()
public
Returns the shell used in
all Bundler::Thor classes. If you are in a
Unix platform it will use a colored log, otherwise it will use a basic one
without color.
# File lib/bundler/vendor/thor/lib/thor/shell.rb, line 11
def shell
@shell ||= if ENV["THOR_SHELL"] && !ENV["THOR_SHELL"].empty?
Bundler::Thor::Shell.const_get(ENV["THOR_SHELL"])
elsif RbConfig::CONFIG["host_os"] =~ /mswin|mingw/ && !ENV["ANSICON"]
Bundler::Thor::Shell::Basic
else
Bundler::Thor::Shell::Color
end
end