/opt/cpanel/ea-ruby27/root/usr/share/ruby/ruby-2.7.8/bundler
NameSizeModeActions
cli/-0755rm
compact_index_client/-0755rm
fetcher/-0755rm
installer/-0755rm
plugin/-0755rm
resolver/-0755rm
settings/-0755rm
source/-0755rm
templates/-0755rm
ui/-0755rm
vendor/-0755rm
build_metadata.rb16040644editdlrm
capistrano.rb8830644editdlrm
cli.rb373000644editdlrm
compact_index_client.rb36710644editdlrm
constants.rb2120644editdlrm
current_ruby.rb21730644editdlrm
definition.rb376050644editdlrm
dependency.rb49550644editdlrm
deployment.rb32690644editdlrm
deprecate.rb8760644editdlrm
dep_proxy.rb8270644editdlrm
dsl.rb209180644editdlrm
endpoint_specification.rb40020644editdlrm
env.rb51260644editdlrm
environment_preserver.rb13100644editdlrm
errors.rb47000644editdlrm
feature_flag.rb25070644editdlrm
fetcher.rb113680644editdlrm
friendly_errors.rb44660644editdlrm
gemdeps.rb4230644editdlrm
gem_helper.rb63750644editdlrm
gem_helpers.rb32690644editdlrm
gem_remote_fetcher.rb14940644editdlrm
gem_tasks.rb1380644editdlrm
gem_version_promoter.rb66640644editdlrm
graph.rb51120644editdlrm
index.rb53680644editdlrm
injector.rb89730644editdlrm
inline.rb28290644editdlrm
installer.rb118740644editdlrm
lazy_specification.rb36930644editdlrm
lockfile_generator.rb22310644editdlrm
lockfile_parser.rb84690644editdlrm
match_platform.rb6600644editdlrm
mirror.rb59560644editdlrm
plugin.rb98520644editdlrm
process_lock.rb7020644editdlrm
psyched_yaml.rb8540644editdlrm
remote_specification.rb35250644editdlrm
resolver.rb164220644editdlrm
retry.rb16500644editdlrm
rubygems_ext.rb42440644editdlrm
rubygems_gem_installer.rb35740644editdlrm
rubygems_integration.rb184760644editdlrm
ruby_dsl.rb7610644editdlrm
ruby_version.rb45540644editdlrm
runtime.rb109300644editdlrm
settings.rb116680644editdlrm
setup.rb8020644editdlrm
shared_helpers.rb115350644editdlrm
similarity_detector.rb18820644editdlrm
source.rb28140644editdlrm
source_list.rb56490644editdlrm
spec_set.rb54020644editdlrm
stub_specification.rb23280644editdlrm
ui.rb2550644editdlrm
uri_credentials_filter.rb12660644editdlrm
vendored_fileutils.rb1010644editdlrm
vendored_molinillo.rb1010644editdlrm
vendored_persistent.rb17070644editdlrm
vendored_thor.rb1800644editdlrm
vendored_uri.rb890644editdlrm
version.rb1790644editdlrm
version_ranges.rb38880644editdlrm
vlad.rb4680644editdlrm
worker.rb26510644editdlrm
yaml_serializer.rb24120644editdlrm
Edit: /opt/cpanel/ea-ruby27/root/usr/share/ruby/ruby-2.7.8/bundler/deployment.rb (3269B)
# frozen_string_literal: true require_relative "shared_helpers" Bundler::SharedHelpers.major_deprecation 2, "Bundler no longer integrates with " \ "Capistrano, but Capistrano provides its own integration with " \ "Bundler via the capistrano-bundler gem. Use it instead." module Bundler class Deployment def self.define_task(context, task_method = :task, opts = {}) if defined?(Capistrano) && context.is_a?(Capistrano::Configuration) context_name = "capistrano" role_default = "{:except => {:no_release => true}}" error_type = ::Capistrano::CommandError else context_name = "vlad" role_default = "[:app]" error_type = ::Rake::CommandFailedError end roles = context.fetch(:bundle_roles, false) opts[:roles] = roles if roles context.send :namespace, :bundle do send :desc, <<-DESC Install the current Bundler environment. By default, gems will be \ installed to the shared/bundle path. Gems in the development and \ test group will not be installed. The install command is executed \ with the --deployment and --quiet flags. If the bundle cmd cannot \ be found then you can override the bundle_cmd variable to specify \ which one it should use. The base path to the app is fetched from \ the :latest_release variable. Set it for custom deploy layouts. You can override any of these defaults by setting the variables shown below. N.B. bundle_roles must be defined before you require 'bundler/#{context_name}' \ in your deploy.rb file. set :bundle_gemfile, "Gemfile" set :bundle_dir, File.join(fetch(:shared_path), 'bundle') set :bundle_flags, "--deployment --quiet" set :bundle_without, [:development, :test] set :bundle_with, [:mysql] set :bundle_cmd, "bundle" # e.g. "/opt/ruby/bin/bundle" set :bundle_roles, #{role_default} # e.g. [:app, :batch] DESC send task_method, :install, opts do bundle_cmd = context.fetch(:bundle_cmd, "bundle") bundle_flags = context.fetch(:bundle_flags, "--deployment --quiet") bundle_dir = context.fetch(:bundle_dir, File.join(context.fetch(:shared_path), "bundle")) bundle_gemfile = context.fetch(:bundle_gemfile, "Gemfile") bundle_without = [*context.fetch(:bundle_without, [:development, :test])].compact bundle_with = [*context.fetch(:bundle_with, [])].compact app_path = context.fetch(:latest_release) if app_path.to_s.empty? raise error_type.new("Cannot detect current release path - make sure you have deployed at least once.") end args = ["--gemfile #{File.join(app_path, bundle_gemfile)}"] args << "--path #{bundle_dir}" unless bundle_dir.to_s.empty? args << bundle_flags.to_s args << "--without #{bundle_without.join(" ")}" unless bundle_without.empty? args << "--with #{bundle_with.join(" ")}" unless bundle_with.empty? run "cd #{app_path} && #{bundle_cmd} install #{args.join(" ")}" end end end end end