Method: Gem::Commands::CurrentPathCommand#execute

Defined in:
lib/rubygems/commands/current_path_command.rb

#executeObject



50
51
52
53
54
55
56
# File 'lib/rubygems/commands/current_path_command.rb', line 50

def execute
  path = CurrentGem.path_for(get_one_gem_name)
  return unless path && File.exist?(path)

  path = File.readlink(path) if options[:resolve]
  say path
end