templates/Rakefile in opskeleton-0.2.1 vs templates/Rakefile in opskeleton-0.3.0
- old
+ new
@@ -1,9 +1,15 @@
-require 'rake'
-require 'rspec/core/rake_task'
-require 'puppet-lint/tasks/puppet-lint'
-
-RSpec::Core::RakeTask.new(:spec) do |t|
- t.pattern = 'spec/*/*_spec.rb'
+task :spec do
+ FileList["static-modules/**/Rakefile"].each do |project|
+ Rake::Task.clear
+ load project
+ dir = project.pathmap("%d")
+ Dir.chdir(dir) do
+ spec_task = Rake::Task[:spec]
+ spec_task.invoke()
+ end
+ end
end
-task :default => [:spec, :lint]
+require 'puppet-lint/tasks/puppet-lint'
+PuppetLint.configuration.ignore_paths =['modules/**/*']
+PuppetLint.configuration.send("disable_80chars")