diff options
author | mh <mh@immerda.ch> | 2016-01-28 00:55:26 +0100 |
---|---|---|
committer | mh <mh@immerda.ch> | 2016-01-28 00:55:26 +0100 |
commit | 8ca75f6d074b83ee48d9ce713cdb3e28e57d2cf8 (patch) | |
tree | 11ea8f3d49648e2a781f6d830babdbe8801fda35 /Rakefile | |
parent | 572fd99995e50591f3e774582937c28eb337aa00 (diff) |
update module to make it work with all the new features of trocla 0.2.2
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..e5103dd --- /dev/null +++ b/Rakefile @@ -0,0 +1,23 @@ +require 'bundler' +Bundler.require(:rake) + +require 'puppetlabs_spec_helper/rake_tasks' +require 'puppet-lint/tasks/puppet-lint' + +PuppetLint.configuration.ignore_paths = ["spec/**/*.pp", "vendor/**/*.pp"] +PuppetLint.configuration.log_format = '%{path}:%{linenumber}:%{KIND}: %{message}' +PuppetLint.configuration.send("disable_class_inherits_from_params_class") + +# use librarian-puppet to manage fixtures instead of .fixtures.yml +# offers more possibilities like explicit version management, forge downloads,... +task :librarian_spec_prep do + sh "librarian-puppet install --path=spec/fixtures/modules/" + pwd = `pwd`.strip + unless File.directory?("#{pwd}/spec/fixtures/modules/trocla") + sh "ln -s #{pwd} #{pwd}/spec/fixtures/modules/trocla" + end +end +task :spec_prep => :librarian_spec_prep + + +task :default => [:spec, :lint] |