@@ -3,20 +3,12 @@ require 'puppetlabs_spec_helper/rake_tasks'
33# load optional tasks for releases
44# only available if gem group releases is installed
55begin
6- require 'puppet_blacksmith/rake_tasks'
76 require 'voxpupuli/release/rake_tasks'
8- require 'puppet-strings/tasks'
97rescue LoadError
108end
119
1210PuppetLint . configuration . log_format = '%{path}:%{line}:%{check}:%{KIND}:%{message}'
13- PuppetLint . configuration . fail_on_warnings = true
1411PuppetLint . configuration . absolute_classname_reverse = true
15- PuppetLint . configuration . send ( 'relative' )
16- PuppetLint . configuration . send ( 'disable_140chars' )
17- PuppetLint . configuration . send ( 'disable_class_inherits_from_params_class' )
18- PuppetLint . configuration . send ( 'disable_documentation' )
19- PuppetLint . configuration . send ( 'disable_single_quote_string_with_variables' )
2012
2113exclude_paths = %w(
2214 pkg/**/*
@@ -29,19 +21,16 @@ PuppetSyntax.exclude_paths = exclude_paths
2921
3022desc 'Auto-correct puppet-lint offenses'
3123task 'lint:auto_correct' do
32- PuppetLint . configuration . fix = true
33- Rake ::Task [ :lint ] . invoke
24+ Rake ::Task [ :lint_fix ] . invoke
3425end
3526
3627desc 'Run acceptance tests'
3728RSpec ::Core ::RakeTask . new ( :acceptance ) do |t |
3829 t . pattern = 'spec/acceptance'
3930end
4031
41- desc 'Run tests release_checks'
42- task test : [
43- :release_checks ,
44- ]
32+ desc 'Run tests'
33+ task test : [ :release_checks ]
4534
4635namespace :check do
4736 desc 'Check for trailing whitespace'
@@ -70,25 +59,10 @@ task test_with_coveralls: [:test] do
7059 end
7160end
7261
73- desc "Print supported beaker sets"
74- task 'beaker_sets' , [ :directory ] do |t , args |
75- directory = args [ :directory ]
76-
77- metadata = JSON . load ( File . read ( 'metadata.json' ) )
78-
79- ( metadata [ 'operatingsystem_support' ] || [ ] ) . each do |os |
80- ( os [ 'operatingsystemrelease' ] || [ ] ) . each do |release |
81- if directory
82- beaker_set = "#{ directory } /#{ os [ 'operatingsystem' ] . downcase } -#{ release } "
83- else
84- beaker_set = "#{ os [ 'operatingsystem' ] . downcase } -#{ release } -x64"
85- end
86-
87- filename = "spec/acceptance/nodesets/#{ beaker_set } .yml"
88-
89- puts beaker_set if File . exists? filename
90- end
91- end
62+ desc 'Generate REFERENCE.md'
63+ task :reference , [ :debug , :backtrace ] do |t , args |
64+ patterns = ''
65+ Rake ::Task [ 'strings:generate:reference' ] . invoke ( patterns , args [ :debug ] , args [ :backtrace ] )
9266end
9367
9468begin
0 commit comments