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
        # TODO: LoD
        Logger.info "`#{component.name}` component, #{component.source.version}"
      end
    end
  end
end

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

Fix TODO in pretty print visitor (refactoring, LoD)
Fix TODO in pretty print visitor (refactoring, LoD)
