Sha256: 2c475de4c42e8b0a5c6610785f86a246c2d13c8ec14614fe89f055a05453e83c

Contents?: true

Size: 781 Bytes

Versions: 7

Compression:

Stored size: 781 Bytes

Contents

# encoding: UTF-8

module Tetra
  # tetra download-maven-source-jars
  class DownloadMavenSourceJarsCommand < Tetra::BaseCommand
    def execute
      checking_exceptions do
        project = Tetra::Project.new(".")
        source_getter = Tetra::SourceGetter.new

        ensure_dry_running(false, project) do
          puts "Getting sources from Maven..."
          succeeded, failed = source_getter.get_maven_source_jars(project)

          puts "\n**SUMMARY**\n"
          puts "Sources found for:"
          succeeded.each do |path|
            puts " #{format_path(path, project)}"
          end

          puts "\nSources not found for:"
          failed.each do |path|
            puts " #{format_path(path, project)}"
          end
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
tetra-0.46.0 lib/tetra/commands/download_maven_source_jars.rb
tetra-0.45.0 lib/tetra/commands/download_maven_source_jars.rb
tetra-0.44.0 lib/tetra/commands/download_maven_source_jars.rb
tetra-0.43.0 lib/tetra/commands/download_maven_source_jars.rb
tetra-0.42.0 lib/tetra/commands/download_maven_source_jars.rb
tetra-0.41.0 lib/tetra/commands/download_maven_source_jars.rb
tetra-0.40.0 lib/tetra/commands/download_maven_source_jars.rb