comparison modules/common/Rakefile @ 388:750d36241580

Add missing dependency modules Probably required by SSH, but not obviously listed
author IBBoard <dev@ibboard.co.uk>
date Mon, 03 Jan 2022 17:15:14 +0000
parents
children
comparison
equal deleted inserted replaced
387:66c075c5f54a 388:750d36241580
1 require 'puppetlabs_spec_helper/rake_tasks'
2 require 'puppet-lint/tasks/puppet-lint'
3 PuppetLint.configuration.send('disable_80chars')
4 PuppetLint.configuration.send('disable_140chars')
5 PuppetLint.configuration.relative = true
6 PuppetLint.configuration.ignore_paths = ['spec/**/*.pp', 'pkg/**/*.pp', 'vendor/**/*.pp']
7
8 desc 'Validate manifests, templates, and ruby files'
9 task :validate do
10 Dir['spec/**/*.rb', 'lib/**/*.rb'].each do |ruby_file|
11 sh "ruby -c #{ruby_file}" unless ruby_file =~ /spec\/fixtures/
12 end
13 Dir['files/**/*.sh'].each do |shell_script|
14 sh "bash -n #{shell_script}"
15 end
16 end