From 1812588d0191331461654a62f7d3cf34cc7694f0 Mon Sep 17 00:00:00 2001 From: David Schmitt Date: Mon, 29 Feb 2016 10:12:33 +0000 Subject: [PATCH] Re-add the missing metadata task with a depreciation warning --- lib/puppetlabs_spec_helper/rake_tasks.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/puppetlabs_spec_helper/rake_tasks.rb b/lib/puppetlabs_spec_helper/rake_tasks.rb index df9375cf..fb1bcb6d 100644 --- a/lib/puppetlabs_spec_helper/rake_tasks.rb +++ b/lib/puppetlabs_spec_helper/rake_tasks.rb @@ -344,6 +344,15 @@ def max_thread_limit end end +task :metadata do + warn "The 'metadata' task is deprecated. Please use 'metadata_lint' instead." + if Rake::Task.task_defined?(:metadata_lint) + Rake::Task[:metadata_lint].invoke + else + warn "Skipping metadata validation; the metadata-json-lint gem was not found" + end +end + desc "Print development version of module" task :compute_dev_version do version = ''