Class: Gem::Commands::GraphCommand

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

Overview

:stopdoc:

Instance Method Summary collapse

Constructor Details

#initializeGraphCommand

:nodoc: all



8
9
10
# File 'lib/rubygems/commands/graph_command.rb', line 8

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

Instance Method Details

#executeObject



12
13
14
15
16
17
# File 'lib/rubygems/commands/graph_command.rb', line 12

def execute
  g = RubygemsAnalyzer.new.run options[:args]
  g.save "RubygemsAnalyzer", "png"

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