Class: Gem::Commands::GraphCommand

Inherits:
Gem::Command
  • Object
show all
Defined in:
lib/rubygems/commands/graph_command.rb

Instance Method Summary collapse

Constructor Details

#initializeGraphCommand

Returns a new instance of GraphCommand.



6
7
8
# File 'lib/rubygems/commands/graph_command.rb', line 6

def initialize
  super 'graph', 'Graph dependency relationships of installed gems'
end

Instance Method Details

#executeObject



10
11
12
13
14
# File 'lib/rubygems/commands/graph_command.rb', line 10

def execute
  RubygemsAnalyzer.new.run options[:args]

  say "Graph saved to:\n\tRubygemsAnalyzer.png"
end