Sha256: 0d86b30fb33ecb1473bf0c8282ee60022ffac532c9cbfd0bb541791dced2acae

Contents?: true

Size: 475 Bytes

Versions: 1

Compression:

Stored size: 475 Bytes

Contents

module Bundler
  module Dependencies
    class CLI < ::Thor
      class Graph < Command
        include CLI::WithGem

      private

        def to_s
          if gems.empty?
            error("#{gem} is not present in your bundle.")
            exit(1)
          end

          Visitors::ShellTree.new.walk(gems, shell)
        end

        def graph
          gem ? Bundler::Dependencies::Graph.new(specs: [super.find(gem)]) : super
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bundler-dependencies-0.6.0 lib/bundler/dependencies/cli/graph.rb