Sha256: bc902db86dfaa7985250eec1f5197ffc89ee96cf7fd5653573369d64466b36b7

Contents?: true

Size: 564 Bytes

Versions: 6

Compression:

Stored size: 564 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)
      graph.write_graphic_file("png", "#{@output_dir}/graph", Set.new)
      `open #{@output_dir}/graph.png` if @open
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
cocoapods-binary-cache-0.1.7 lib/command/executor/visualizer.rb
cocoapods-binary-cache-0.1.6 lib/command/executor/visualizer.rb
cocoapods-binary-cache-0.1.5 lib/command/executor/visualizer.rb
cocoapods-binary-cache-0.1.3 lib/command/executor/visualizer.rb
cocoapods-binary-cache-0.1.2 lib/command/executor/visualizer.rb
cocoapods-binary-cache-0.1.1 lib/command/executor/visualizer.rb