Skip to content

Commit 81f174b

Browse files
authored
Merge pull request #236 from voxpupuli/modulesync
modulesync 1.6.0
2 parents 557efc3 + 1eb4bce commit 81f174b

File tree

4 files changed

+30
-8
lines changed

4 files changed

+30
-8
lines changed

.msync.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
modulesync_config_version: '1.5.0'
1+
modulesync_config_version: '1.6.0'

.rubocop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Style/HashSyntax:
4646
Style/RedundantReturn:
4747
Enabled: True
4848

49-
Style/EndOfLine:
49+
Layout/EndOfLine:
5050
Enabled: False
5151

5252
Lint/AmbiguousOperator:

.travis.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,7 @@ dist: trusty
44
language: ruby
55
cache: bundler
66
before_install:
7-
- bundle -v
8-
- rm Gemfile.lock || true
9-
- gem update --system
10-
- gem update bundler
11-
- gem --version
12-
- bundle -v
7+
- rm -f Gemfile.lock
138
script:
149
- 'bundle exec rake $CHECK'
1510
matrix:

Rakefile

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ exclude_paths = %w(
2626
PuppetLint.configuration.ignore_paths = exclude_paths
2727
PuppetSyntax.exclude_paths = exclude_paths
2828

29+
desc 'Auto-correct puppet-lint offenses'
30+
task 'lint:auto_correct' do
31+
PuppetLint.configuration.fix = true
32+
Rake::Task[:lint].invoke
33+
end
34+
2935
desc 'Run acceptance tests'
3036
RSpec::Core::RakeTask.new(:acceptance) do |t|
3137
t.pattern = 'spec/acceptance'
@@ -48,6 +54,27 @@ task test_with_coveralls: [:test] do
4854
end
4955
end
5056

57+
desc "Print supported beaker sets"
58+
task 'beaker_sets', [:directory] do |t, args|
59+
directory = args[:directory]
60+
61+
metadata = JSON.load(File.read('metadata.json'))
62+
63+
(metadata['operatingsystem_support'] || []).each do |os|
64+
(os['operatingsystemrelease'] || []).each do |release|
65+
if directory
66+
beaker_set = "#{directory}/#{os['operatingsystem'].downcase}-#{release}"
67+
else
68+
beaker_set = "#{os['operatingsystem'].downcase}-#{release}-x64"
69+
end
70+
71+
filename = "spec/acceptance/nodesets/#{beaker_set}.yml"
72+
73+
puts beaker_set if File.exists? filename
74+
end
75+
end
76+
end
77+
5178
begin
5279
require 'github_changelog_generator/task'
5380
GitHubChangelogGenerator::RakeTask.new :changelog do |config|

0 commit comments

Comments
 (0)