Sha256: 0925749d2ff14404eaca6e031b206e24724b9dfbf5812e0fcd64e37bf74bb58d

Contents?: true

Size: 596 Bytes

Versions: 6

Compression:

Stored size: 596 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]
    end

    def run
      FileUtils.mkdir_p(@output_dir)
      graph = DependenciesGraph.new(@lockfile)
      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

6 entries across 6 versions & 1 rubygems

Version Path
cocoapods-binary-cache-0.1.13 lib/command/executor/visualizer.rb
cocoapods-binary-cache-0.1.12 lib/command/executor/visualizer.rb
cocoapods-binary-cache-0.1.11 lib/command/executor/visualizer.rb
cocoapods-binary-cache-0.1.10 lib/command/executor/visualizer.rb
cocoapods-binary-cache-0.1.9 lib/command/executor/visualizer.rb
cocoapods-binary-cache-0.1.8 lib/command/executor/visualizer.rb