Class: Pod::Command::Binary::Viz
- Inherits:
-
Pod::Command::Binary
- Object
- Pod::Command
- Pod::Command::Binary
- Pod::Command::Binary::Viz
- Defined in:
- lib/command/visualize.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(argv) ⇒ Viz
constructor
A new instance of Viz.
- #run ⇒ Object
Methods inherited from Pod::Command::Binary
#load_podfile, #prebuild_config, #update_cli_config
Constructor Details
#initialize(argv) ⇒ Viz
Returns a new instance of Viz.
16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/command/visualize.rb', line 16 def initialize(argv) super @visualizer = PodPrebuild::Visualizer.new( config: prebuild_config, lockfile: config.lockfile, output_dir: argv.shift_argument || ".", open: argv.flag?("open"), devpod_only: argv.flag?("devpod_only"), max_deps: argv.option("max_deps") ) end |
Class Method Details
.options ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/command/visualize.rb', line 8 def self. [ ["--open", "Open the graph upon completion"], ["--devpod_only", "Only include development pod"], ["--max_deps", "Only include pod with number of dependencies <= max_deps"] ] end |
Instance Method Details
#run ⇒ Object
28 29 30 |
# File 'lib/command/visualize.rb', line 28 def run @visualizer.run end |