Mercurial > repos > other > Puppet
annotate modules/ssh/Rakefile @ 471:65290cb0cec2
Tidy up SSH firewall handling
We can be generic while referencing private values for specific
ports
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 12 May 2024 19:51:53 +0100 |
parents | d9009f54eb23 |
children |
rev | line source |
---|---|
385
d9009f54eb23
Migrate to a fully-fledged SSH module
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
1 require 'puppetlabs_spec_helper/rake_tasks' |
d9009f54eb23
Migrate to a fully-fledged SSH module
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
2 require 'puppet-lint/tasks/puppet-lint' |
d9009f54eb23
Migrate to a fully-fledged SSH module
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
3 PuppetLint.configuration.send('disable_80chars') |
d9009f54eb23
Migrate to a fully-fledged SSH module
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
4 PuppetLint.configuration.send('disable_140chars') |
d9009f54eb23
Migrate to a fully-fledged SSH module
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
5 PuppetLint.configuration.send('disable_relative_classname_inclusion') |
d9009f54eb23
Migrate to a fully-fledged SSH module
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
6 PuppetLint.configuration.relative = true |
d9009f54eb23
Migrate to a fully-fledged SSH module
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
7 PuppetLint.configuration.ignore_paths = ['spec/**/*.pp', 'pkg/**/*.pp', 'vendor/**/*.pp'] |
d9009f54eb23
Migrate to a fully-fledged SSH module
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
8 |
d9009f54eb23
Migrate to a fully-fledged SSH module
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
9 desc 'Validate manifests, templates, ruby files and shell scripts' |
d9009f54eb23
Migrate to a fully-fledged SSH module
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
10 task :validate do |
d9009f54eb23
Migrate to a fully-fledged SSH module
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
11 Dir['spec/**/*.rb', 'lib/**/*.rb'].each do |ruby_file| |
d9009f54eb23
Migrate to a fully-fledged SSH module
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
12 sh "ruby -c #{ruby_file}" unless ruby_file =~ /spec\/fixtures/ |
d9009f54eb23
Migrate to a fully-fledged SSH module
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
13 end |
d9009f54eb23
Migrate to a fully-fledged SSH module
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
14 end |