lib/rake_dependencies/tasks/fetch.rb in rake_dependencies-3.2.0.pre.3 vs lib/rake_dependencies/tasks/fetch.rb in rake_dependencies-3.2.0.pre.4

- old
+ new

@@ -1,25 +1,25 @@ +# frozen_string_literal: true + require 'rake_factory' module RakeDependencies module Tasks class Fetch < RakeFactory::Task default_name :fetch - default_description RakeFactory::DynamicValue.new { |t| + default_description(RakeFactory::DynamicValue.new do |t| "Fetch #{t.dependency}" - } + end) parameter :dependency, required: true parameter :download_task_name, default: :download parameter :extract_task_name, default: :extract action do |t| [ - Rake::Task[t.scope.path_with_task_name(t.download_task_name)], - Rake::Task[t.scope.path_with_task_name(t.extract_task_name)] - ].each do |task| - task.invoke - end + Rake::Task[t.scope.path_with_task_name(t.download_task_name)], + Rake::Task[t.scope.path_with_task_name(t.extract_task_name)] + ].each(&:invoke) end end end end