Sha256: 71d945cc2638ccad01140846a794b749b452b908558aef3b014fc984c04aa947
Contents?: true
Size: 734 Bytes
Versions: 3
Compression:
Stored size: 734 Bytes
Contents
require_relative "base" require_relative "../../cocoapods-binary-cache/dependencies_graph/dependencies_graph" module PodPrebuild class Visualizer < CommandExecutor 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: @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 end
Version data entries
3 entries across 3 versions & 2 rubygems