Class: Gem::Commands::GraphCommand
- Defined in:
- lib/rubygems/commands/graph_command.rb
Overview
:stopdoc:
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize ⇒ GraphCommand
constructor
:nodoc: all.
Constructor Details
#initialize ⇒ GraphCommand
: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
#execute ⇒ Object
12 13 14 15 16 17 |
# File 'lib/rubygems/commands/graph_command.rb', line 12 def execute g = RubygemsAnalyzer.new.run [:args] g.save "RubygemsAnalyzer", "png" say "Graph saved to:\n\tRubygemsAnalyzer.png" end |