diff --git a/lib/puppetlabs_spec_helper/rake_tasks.rb b/lib/puppetlabs_spec_helper/rake_tasks.rb index dfc0b3fd..d2203bc4 100644 --- a/lib/puppetlabs_spec_helper/rake_tasks.rb +++ b/lib/puppetlabs_spec_helper/rake_tasks.rb @@ -121,30 +121,6 @@ end end -desc 'Build puppet module package' -task :build do - Rake::Task['build:pdk'].invoke -end - -namespace :build do - desc 'Build Puppet module with PDK' - task :pdk do - require 'pdk/util' - require 'pdk/module/build' - - path = PDK::Module::Build.invoke(force: true, 'target-dir': File.join(Dir.pwd, 'pkg')) - puts "Module built: #{path}" - rescue LoadError - _ = `pdk --version` - unless $CHILD_STATUS.success? - warn 'Unable to build module. Please install PDK or add the `pdk` gem to your Gemfile.' - abort - end - - system('pdk build --force') - end -end - desc 'Clean a built module package' task :clean do FileUtils.rm_rf('pkg/')