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.



14
15
16
17
18
19
20
21
22
# File 'lib/command/visualize.rb', line 14

def initialize(argv)
  super
  @visualizer = PodPrebuild::Visualizer.new(
    config: prebuild_config,
    lockfile: config.lockfile,
    output_dir: argv.shift_argument || ".",
    open: argv.flag?("open")
  )
end

Class Method Details

.optionsObject



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

def self.options
  [
    ["--open", "Open the graph upon completion"]
  ]
end

Instance Method Details

#runObject



24
25
26
# File 'lib/command/visualize.rb', line 24

def run
  @visualizer.run
end