Class: Pod::Command::Binary::Viz

Inherits:
Pod::Command::Binary show all
Defined in:
lib/command/visualize.rb

Class Method Summary collapse

Instance Method Summary collapse

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

.optionsObject



8
9
10
11
12
13
14
# File 'lib/command/visualize.rb', line 8

def self.options
  [
    ["--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

#runObject



28
29
30
# File 'lib/command/visualize.rb', line 28

def run
  @visualizer.run
end