Class: PodPrebuild::Visualizer
- Inherits:
-
CommandExecutor
- Object
- CommandExecutor
- PodPrebuild::Visualizer
- Defined in:
- lib/command/executor/visualizer.rb
Instance Method Summary collapse
-
#initialize(options) ⇒ Visualizer
constructor
A new instance of Visualizer.
- #run ⇒ Object
Methods inherited from CommandExecutor
Constructor Details
#initialize(options) ⇒ Visualizer
Returns a new instance of Visualizer.
6 7 8 9 10 11 |
# File 'lib/command/executor/visualizer.rb', line 6 def initialize() super() @lockfile = [:lockfile] @open = [:open] @output_dir = [:output_dir] end |
Instance Method Details
#run ⇒ Object
13 14 15 16 17 18 |
# File 'lib/command/executor/visualizer.rb', line 13 def run FileUtils.mkdir_p(@output_dir) graph = DependenciesGraph.new(@lockfile) graph.write_graphic_file("png", "#{@output_dir}/graph", Set.new) `open #{@output_dir}/graph.png` if @open end |