Class: Gjp::DownloadMavenSourceJarsCommand
- Inherits:
-
BaseCommand
- Object
- Clamp::Command
- BaseCommand
- Gjp::DownloadMavenSourceJarsCommand
- Defined in:
- lib/gjp/commands/download_maven_source_jars.rb
Instance Method Summary collapse
Methods inherited from BaseCommand
#checking_exceptions, #configure_log_level, #ensure_dry_running, #format_path, #print_generation_result, #verbose=, #very_verbose=, #very_very_verbose=
Methods included from Logging
Instance Method Details
#execute ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/gjp/commands/download_maven_source_jars.rb', line 5 def execute checking_exceptions do project = Gjp::Project.new(".") source_getter = Gjp::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 |