Skip to content

Commit bd115b1

Browse files
Merge pull request #472 from puppetlabs/bug-use_modulebuilder_build_task
(breaking) - Remove build rake tasks
2 parents a2e1384 + f9878f8 commit bd115b1

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

lib/puppetlabs_spec_helper/rake_tasks.rb

-29
Original file line numberDiff line numberDiff line change
@@ -121,35 +121,6 @@
121121
end
122122
end
123123

124-
desc 'Build puppet module package'
125-
task :build do
126-
Rake::Task['build:pdk'].invoke
127-
end
128-
129-
namespace :build do
130-
desc 'Build Puppet module with PDK'
131-
task :pdk do
132-
require 'pdk/util'
133-
require 'pdk/module/build'
134-
135-
path = PDK::Module::Build.invoke(force: true, 'target-dir': File.join(Dir.pwd, 'pkg'))
136-
puts "Module built: #{path}"
137-
rescue LoadError
138-
_ = `pdk --version`
139-
unless $CHILD_STATUS.success?
140-
warn 'Unable to build module. Please install PDK or add the `pdk` gem to your Gemfile.'
141-
abort
142-
end
143-
144-
system('pdk build --force')
145-
end
146-
end
147-
148-
desc 'Clean a built module package'
149-
task :clean do
150-
FileUtils.rm_rf('pkg/')
151-
end
152-
153124
require 'puppet-lint/tasks/puppet-lint'
154125
# Must clear as it will not override the existing puppet-lint rake task since we require to import for
155126
# the PuppetLint::RakeTask

0 commit comments

Comments
 (0)