Sha256: 0474d0d957ec98272d673ea51971be3390d65ce7ac335da46c4f9c313cc568f6

Contents?: true

Size: 746 Bytes

Versions: 19

Compression:

Stored size: 746 Bytes

Contents

require_relative "base"
require_relative "../../cocoapods-binary-artifactory-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

19 entries across 19 versions & 1 rubygems

Version Path
cocoapods-binary-artifactory-cache-0.0.19 lib/command/executor/visualizer.rb
cocoapods-binary-artifactory-cache-0.0.18 lib/command/executor/visualizer.rb
cocoapods-binary-artifactory-cache-0.0.17 lib/command/executor/visualizer.rb
cocoapods-binary-artifactory-cache-0.0.16 lib/command/executor/visualizer.rb
cocoapods-binary-artifactory-cache-0.0.15 lib/command/executor/visualizer.rb
cocoapods-binary-artifactory-cache-0.0.14 lib/command/executor/visualizer.rb
cocoapods-binary-artifactory-cache-0.0.13 lib/command/executor/visualizer.rb
cocoapods-binary-artifactory-cache-0.0.12 lib/command/executor/visualizer.rb
cocoapods-binary-artifactory-cache-0.0.11 lib/command/executor/visualizer.rb
cocoapods-binary-artifactory-cache-0.0.10 lib/command/executor/visualizer.rb
cocoapods-binary-artifactory-cache-0.0.9 lib/command/executor/visualizer.rb
cocoapods-binary-artifactory-cache-0.0.8 lib/command/executor/visualizer.rb
cocoapods-binary-artifactory-cache-0.0.7 lib/command/executor/visualizer.rb
cocoapods-binary-artifactory-cache-0.0.6 lib/command/executor/visualizer.rb
cocoapods-binary-artifactory-cache-0.0.5 lib/command/executor/visualizer.rb
cocoapods-binary-artifactory-cache-0.0.4 lib/command/executor/visualizer.rb
cocoapods-binary-artifactory-cache-0.0.3 lib/command/executor/visualizer.rb
cocoapods-binary-artifactory-cache-0.0.2 lib/command/executor/visualizer.rb
cocoapods-binary-artifactory-cache-0.0.1 lib/command/executor/visualizer.rb