File tree Expand file tree Collapse file tree 1 file changed +0
-29
lines changed
lib/puppetlabs_spec_helper Expand file tree Collapse file tree 1 file changed +0
-29
lines changed Original file line number Diff line number Diff line change 121121 end
122122end
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-
153124require '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
You can’t perform that action at this time.
0 commit comments