forked from freifunkMUC/puppet-ffm
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
30 lines (23 loc) · 805 Bytes
/
Rakefile
File metadata and controls
30 lines (23 loc) · 805 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
require 'puppet-lint/tasks/puppet-lint'
Rake::Task['lint'].clear
PuppetLint::RakeTask.new :lint do |config|
config.pattern = ['manifests/**/*.pp', 'site/**/*.pp']
config.log_format = '%{path}:%{linenumber}:%{check}:%{KIND}:%{message}'
end
PuppetLint.configuration.send('disable_documentation')
PuppetLint.configuration.send('disable_class_inherits_from_params_class')
require 'puppet-syntax/tasks/puppet-syntax'
PuppetSyntax.exclude_paths ||= []
PuppetSyntax.exclude_paths << "spec/fixtures/**/*"
PuppetSyntax.exclude_paths << "vendor/**/*"
PuppetSyntax.future_parser = false
task :validate do
Rake::Task[:syntax].invoke
end
namespace :docker do
desc 'Build the docker image'
task :build do
sh "docker build -t ffmuc/vagrant util/docker"
end
end
task :default => [:validate, :lint]