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