method

show

Importance_0
v2_6_3 - Show latest stable - 0 notes - Class: CLI
  • 1_8_6_287
  • 1_8_7_72
  • 1_8_7_330
  • 1_9_1_378
  • 1_9_2_180
  • 1_9_3_125
  • 1_9_3_392
  • 2_1_10
  • 2_2_9
  • 2_4_6
  • 2_5_5
  • 2_6_3 (0)
  • What's this?
show(gem_name = nil) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/bundler/cli.rb, line 292
    def show(gem_name = nil)
      if ARGV[0] == "show"
        rest = ARGV[1..-1]

        new_command = rest.find {|arg| !arg.start_with?("--") } ? "info" : "list"

        new_arguments = rest.map do |arg|
          next arg if arg != "--paths"
          next "--path" if new_command == "info"
        end

        old_argv = ARGV.join(" ")
        new_argv = [new_command, *new_arguments.compact].join(" ")

        Bundler::SharedHelpers.major_deprecation(2, "use `bundle #{new_argv}` instead of `bundle #{old_argv}`")
      end
      require "bundler/cli/show"
      Show.new(options, gem_name).run
    end
Register or log in to add new notes.