PHP 8.2.31
Preview: plugin.rb Size: 1.83 KB
/proc/thread-self/root/opt/alt/ruby40/share/gems/gems/bundler-4.0.10/lib/bundler/cli/plugin.rb

# frozen_string_literal: true

require_relative "../vendored_thor"
module Bundler
  class CLI::Plugin < Thor
    desc "install PLUGINS", "Install the plugin from the source"
    long_desc <<-D
      Install plugins either from the rubygems source provided (with --source option), from a git source provided with --git, or a local path provided with --path. If no sources are provided, it uses Gem.sources
   D
    method_option "source", type: :string, default: nil, banner: "URL of the RubyGems source to fetch the plugin from"
    method_option "version", type: :string, default: nil, banner: "The version of the plugin to fetch"
    method_option "git", type: :string, default: nil, banner: "URL of the git repo to fetch from"
    method_option "local_git", type: :string, default: nil, banner: "Path of the local git repo to fetch from (removed)"
    method_option "branch", type: :string, default: nil, banner: "The git branch to checkout"
    method_option "ref", type: :string, default: nil, banner: "The git revision to check out"
    method_option "path", type: :string, default: nil, banner: "Path of a local gem to directly use"
    def install(*plugins)
      if options.key?(:local_git)
        raise InvalidOption, "--local_git has been removed, use --git"
      end

      Bundler::Plugin.install(plugins, options)
    end

    desc "uninstall PLUGINS", "Uninstall the plugins"
    long_desc <<-D
      Uninstall given list of plugins. To uninstall all the plugins, use -all option.
    D
    method_option "all", type: :boolean, default: nil, banner: "Uninstall all the installed plugins. If no plugin is installed, then it does nothing."
    def uninstall(*plugins)
      Bundler::Plugin.uninstall(plugins, options)
    end

    desc "list", "List the installed plugins and available commands"
    def list
      Bundler::Plugin.list
    end
  end
end

Directory Contents

Dirs: 1 × Files: 26

Name Size Perms Modified Actions
doctor DIR
- drwxr-xr-x 2026-06-09 07:03:24
Edit Download
2.06 KB lrw-r--r-- 2026-05-21 12:15:22
Edit Download
1.77 KB lrw-r--r-- 2026-05-21 12:15:22
Edit Download
711 B lrw-r--r-- 2026-05-21 12:15:22
Edit Download
1.21 KB lrw-r--r-- 2026-05-21 12:15:22
Edit Download
608 B lrw-r--r-- 2026-05-21 12:15:22
Edit Download
5.23 KB lrw-r--r-- 2026-05-21 12:15:22
Edit Download
6.01 KB lrw-r--r-- 2026-05-21 12:15:22
Edit Download
1.10 KB lrw-r--r-- 2026-05-21 12:15:22
Edit Download
1.44 KB lrw-r--r-- 2026-05-21 12:15:22
Edit Download
3.10 KB lrw-r--r-- 2026-05-21 12:15:22
Edit Download
902 B lrw-r--r-- 2026-05-21 12:15:22
Edit Download
16.97 KB lrw-r--r-- 2026-05-21 12:15:22
Edit Download
2.89 KB lrw-r--r-- 2026-05-21 12:15:22
Edit Download
1.28 KB lrw-r--r-- 2026-05-21 12:15:22
Edit Download
4.61 KB lrw-r--r-- 2026-05-21 12:15:22
Edit Download
1.31 KB lrw-r--r-- 2026-05-21 12:15:22
Edit Download
2.75 KB lrw-r--r-- 2026-05-21 12:15:22
Edit Download
2.81 KB lrw-r--r-- 2026-05-21 12:15:22
Edit Download
1.14 KB lrw-r--r-- 2026-05-21 12:15:22
Edit Download
9.11 KB lrw-r--r-- 2026-05-21 12:15:22
Edit Download
1.27 KB lrw-r--r-- 2026-05-21 12:15:22
Edit Download
1.83 KB lrw-r--r-- 2026-05-21 12:15:22
Edit Download
2.13 KB lrw-r--r-- 2026-05-21 12:15:22
Edit Download
351 B lrw-r--r-- 2026-05-21 12:15:22
Edit Download
2.11 KB lrw-r--r-- 2026-05-21 12:15:22
Edit Download
4.16 KB lrw-r--r-- 2026-05-21 12:15:22
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).