Sha256: a23d639260b2e607d3d69ba1702252fe1bf0ada331539c102ffc412d1d9028b1

Contents?: true

Size: 405 Bytes

Versions: 4

Compression:

Stored size: 405 Bytes

Contents

module GitCompound
  module Worker
    # Worker that prints dependency tree
    #
    class PrettyPrint < Worker
      def visit_component(component)
        print_component(component)
      end

      private

      def print_component(component)
        Logger.inline '  ' * component.ancestors.count
        Logger.info "`#{component.name}` component, #{component.version}"
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
git_compound-0.1.1 lib/git_compound/worker/pretty_print.rb
git_compound-0.1.0 lib/git_compound/worker/pretty_print.rb
git_compound-0.0.10 lib/git_compound/worker/pretty_print.rb
git_compound-0.0.9 lib/git_compound/worker/pretty_print.rb