class Bundler::Dependencies::CLI

Public Class Methods

shared_options() click to toggle source
# File lib/bundler/dependencies/cli.rb, line 10
def self.shared_options
  method_option :path, type: :string, desc: 'Path to Gemfile.lock to scan'
  method_option :without, type: :array, desc: 'Gems to ignore', aliases: ['-W']
  method_option :without_rails, type: :boolean, default: false, desc: 'Ignore all Rails gems', aliases: ['-R']
  method_option :color, type: :boolean, default: true, desc: 'Colorize output'
end

Public Instance Methods

count(*args) click to toggle source
# File lib/bundler/dependencies/cli.rb, line 29
def count(*args)
  return help(:count) if args.first == 'help'

  Count.new(options).output
end
find(gem = nil) click to toggle source
# File lib/bundler/dependencies/cli.rb, line 48
def find(gem = nil)
  return help(:find) if gem.nil? || gem == 'help'

  Find.new(gem, options).output
end
graph(gem = nil) click to toggle source
# File lib/bundler/dependencies/cli.rb, line 38
def graph(gem = nil)
  return help(:graph) if gem == 'help'

  Graph.new(gem, options).output
end
version() click to toggle source
# File lib/bundler/dependencies/cli.rb, line 21
def version
  puts "#{File.basename($PROGRAM_NAME)} #{VERSION}"
end