lib/command/executor/visualizer.rb in cocoapods-binary-cache-0.1.13 vs lib/command/executor/visualizer.rb in cocoapods-binary-cache-0.1.14
- old
+ new
@@ -6,14 +6,16 @@
def initialize(options)
super(options)
@lockfile = options[:lockfile]
@open = options[:open]
@output_dir = options[:output_dir]
+ @devpod_only = options[:devpod_only]
+ @max_deps = options[:max_deps]
end
def run
FileUtils.mkdir_p(@output_dir)
- graph = DependenciesGraph.new(@lockfile)
+ graph = DependenciesGraph.new(lockfile: @lockfile, devpod_only: @devpod_only, max_deps: @max_deps)
output_path = "#{@output_dir}/graph.png"
graph.write_graphic_file(output_path: output_path)
system("open #{@output_path}") if @open
end
end