lib/rake/funnel/tasks/paket.rb in rake-funnel-0.18.0 vs lib/rake/funnel/tasks/paket.rb in rake-funnel-0.19.0

- old
+ new

@@ -13,10 +13,11 @@ define(args, &task_block) end private + def setup_ivars(args) @name = args.shift || :paket @paket = File.join('.paket', 'paket.exe') @paket_args = 'restore' @@ -27,10 +28,10 @@ def define(args, &task_block) desc 'Restore packages' unless Rake.application.last_description task(name, *args) do |_, task_args| - task_block.call(*[self, task_args].slice(0, task_block.arity)) if task_block + yield(*[self, task_args].slice(0, task_block.arity)) if task_block sh(*bootstrapper_cmd) unless File.exist?(paket) sh(*paket_cmd) end