Skip to content

Commit ee44250

Browse files
committed
(MODULES-6332) - PDK convert
1 parent b1226dc commit ee44250

24 files changed

+360
-228
lines changed

.gitignore

Lines changed: 18 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,22 @@
1-
# This file is generated by ModuleSync, do not edit.
2-
*.iml
31
.*.sw[op]
4-
.DS_Store
5-
.bundle/
6-
.idea/
72
.metadata
8-
.vagrant/
93
.yardoc
104
.yardwarns
11-
Gemfile.local
12-
Gemfile.lock
13-
bin/
14-
coverage/
15-
doc/
16-
junit/
17-
log/
18-
pkg/
19-
spec/fixtures/manifests/
20-
spec/fixtures/modules/
21-
tmp/
22-
vendor/
23-
24-
!spec/fixtures/
25-
spec/fixtures/manifests/site.pp
26-
spec/fixtures/modules/*
5+
*.iml
6+
/.bundle/
7+
/.idea/
8+
/.vagrant/
9+
/coverage/
10+
/bin/
11+
/doc/
12+
/Gemfile.local
13+
/Gemfile.lock
14+
/junit/
15+
/log/
16+
/pkg/
17+
/spec/fixtures/manifests/
18+
/spec/fixtures/modules/
19+
/tmp/
20+
/vendor/
21+
/convert_report.txt
22+
.DS_Store

.rubocop.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
require:
3-
- rubocop-rspec
2+
require: rubocop-rspec
43
AllCops:
4+
DisplayCopNames: true
55
TargetRubyVersion: '2.1'
66
Include:
77
- "./**/*.rb"
@@ -13,7 +13,6 @@ AllCops:
1313
- pkg/**/*
1414
- spec/fixtures/**/*
1515
- vendor/**/*
16-
inherit_from: .rubocop_todo.yml
1716
Metrics/LineLength:
1817
Description: People have wide screens, use them.
1918
Max: 200
@@ -25,8 +24,6 @@ RSpec/BeforeAfterAll:
2524
RSpec/HookArgument:
2625
Description: Prefer explicit :each argument, matching existing module's style
2726
EnforcedStyle: each
28-
Style/HashSyntax:
29-
EnforcedStyle: hash_rockets
3027
Style/BlockDelimiters:
3128
Description: Prefer braces for chaining. Mostly an aesthetical choice. Better to
3229
be consistent then.
@@ -66,12 +63,17 @@ Style/TrailingCommaInLiteral:
6663
Style/SymbolArray:
6764
Description: Using percent style obscures symbolic intent of array's contents.
6865
EnforcedStyle: brackets
66+
inherit_from: ".rubocop_todo.yml"
67+
RSpec/MessageSpies:
68+
EnforcedStyle: receive
6969
Style/CollectionMethods:
7070
Enabled: true
7171
Style/MethodCalledOnDoEndBlock:
7272
Enabled: true
7373
Style/StringMethods:
7474
Enabled: true
75+
Layout/EndOfLine:
76+
Enabled: false
7577
Metrics/AbcSize:
7678
Enabled: false
7779
Metrics/BlockLength:
@@ -90,13 +92,17 @@ Metrics/PerceivedComplexity:
9092
Enabled: false
9193
RSpec/DescribeClass:
9294
Enabled: false
95+
RSpec/ExampleLength:
96+
Enabled: false
9397
RSpec/MessageExpectation:
9498
Enabled: false
99+
RSpec/MultipleExpectations:
100+
Enabled: false
101+
RSpec/NestedGroups:
102+
Enabled: false
95103
Style/AsciiComments:
96104
Enabled: false
97105
Style/IfUnlessModifier:
98106
Enabled: false
99107
Style/SymbolProc:
100108
Enabled: false
101-
RSpec/NamedSubject:
102-
Enabled: false

.rubocop_todo.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Style/HashSyntax:
2+
EnforcedStyle: hash_rockets
3+
RSpec/NamedSubject:
4+
Enabled: false
5+
Lint/ScriptPermission:
6+
Enabled: false

.sync.yml

Lines changed: 57 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,61 @@
11
---
2-
NOTICE:
3-
unmanaged: true
4-
.gitignore:
5-
paths:
6-
- '!spec/fixtures/'
7-
- 'spec/fixtures/manifests/site.pp'
8-
- 'spec/fixtures/modules/*'
9-
spec/spec_helper.rb:
10-
allow_deprecations: true
2+
appveyor.yml:
3+
environment:
4+
PUPPET_GEM_VERSION: "~> 4.0"
5+
matrix:
6+
- RUBY_VERSION: 24-x64
7+
CHECK: "syntax lint"
8+
- RUBY_VERSION: 24-x64
9+
CHECK: metadata_lint
10+
- RUBY_VERSION: 24-x64
11+
CHECK: rubocop
12+
1113
.travis.yml:
14+
bundle_args: --without system_tests
15+
docker_sets:
16+
- set: docker/centos-7
17+
options:
18+
- set: docker/ubuntu-14.04
19+
options:
20+
docker_defaults:
21+
bundler_args: ""
22+
secure: ""
23+
branches:
24+
- release
1225
extras:
13-
- rvm: 2.1.9
14-
env: PUPPET_GEM_VERSION="~> 4.6.0"
15-
bundler_args: --without system_tests
16-
- rvm: 2.1.9
17-
env: PUPPET_GEM_VERSION="~> 4.7.0"
18-
bundler_args: --without system_tests
19-
- rvm: 2.1.9
20-
script: bundle exec rake rubocop
26+
- env: CHECK=release_checks
27+
rvm: 2.1.9
28+
29+
Gemfile:
30+
required:
31+
':system_tests':
32+
- gem: 'puppet-module-posix-system-r#{minor_version}'
33+
platforms: ruby
34+
- gem: 'puppet-module-win-system-r#{minor_version}'
35+
platforms:
36+
- mswin
37+
- mingw
38+
- x64_mingw
39+
- gem: beaker
40+
version: '~> 3.13'
41+
from_env: BEAKER_VERSION
42+
- gem: beaker-abs
43+
from_env: BEAKER_ABS_VERSION
44+
version: '~> 0.1'
45+
- gem: beaker-pe
46+
- gem: beaker-hostgenerator
47+
from_env: BEAKER_HOSTGENERATOR_VERSION
48+
- gem: beaker-rspec
49+
from_env: BEAKER_RSPEC_VERSION
50+
':development':
51+
- gem: puppet-blacksmith
52+
version: '~> 3.4'
53+
54+
Rakefile:
55+
requires:
56+
- puppet_blacksmith/rake_tasks
57+
- puppet-lint/tasks/puppet-lint
58+
2159
.rubocop.yml:
22-
unmanaged: true
60+
default_configs:
61+
inherit_from: .rubocop_todo.yml

.travis.yml

Lines changed: 59 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,68 @@
1-
#This file is generated by ModuleSync, do not edit.
21
---
32
sudo: false
3+
dist: trusty
44
language: ruby
55
cache: bundler
6-
script: "bundle exec rake release_checks"
6+
before_install:
7+
- bundle -v
8+
- rm Gemfile.lock || true
9+
- gem update --system
10+
- gem update bundler
11+
- gem --version
12+
- bundle -v
13+
script:
14+
- 'bundle exec rake $CHECK'
15+
bundler_args: --without system_tests
16+
rvm:
17+
- 2.4.1
18+
env:
19+
- PUPPET_GEM_VERSION="~> 5.0" CHECK=spec
720
matrix:
821
fast_finish: true
922
include:
10-
- rvm: 2.3.1
11-
dist: trusty
12-
env: PUPPET_INSTALL_TYPE=agent BEAKER_debug=true BEAKER_set=docker/ubuntu-14.04
13-
script: bundle exec rake beaker
14-
services: docker
15-
sudo: required
16-
- rvm: 2.3.1
17-
dist: trusty
18-
env: PUPPET_INSTALL_TYPE=agent BEAKER_debug=true BEAKER_set=docker/centos-7
19-
script: bundle exec rake beaker
20-
services: docker
21-
sudo: required
22-
- rvm: 2.4.1
23-
bundler_args: --without system_tests
24-
env: PUPPET_GEM_VERSION="~> 5.0"
25-
- rvm: 2.1.9
26-
bundler_args: --without system_tests
27-
env: PUPPET_GEM_VERSION="~> 4.0"
28-
- rvm: 2.1.9
29-
bundler_args: --without system_tests
30-
env: PUPPET_GEM_VERSION="~> 4.6.0"
31-
- rvm: 2.1.9
32-
bundler_args: --without system_tests
33-
env: PUPPET_GEM_VERSION="~> 4.7.0"
34-
- rvm: 2.1.9
35-
script: bundle exec rake rubocop
23+
-
24+
bundler_args:
25+
dist: trusty
26+
env: PUPPET_INSTALL_TYPE=agent BEAKER_debug=true BEAKER_set=docker/centos-7
27+
rvm: 2.4.1
28+
script: bundle exec rake beaker
29+
services: docker
30+
sudo: required
31+
-
32+
bundler_args:
33+
dist: trusty
34+
env: PUPPET_INSTALL_TYPE=agent BEAKER_debug=true BEAKER_set=docker/ubuntu-14.04
35+
rvm: 2.4.1
36+
script: bundle exec rake beaker
37+
services: docker
38+
sudo: required
39+
-
40+
env: CHECK=rubocop
41+
-
42+
env: CHECK="syntax lint"
43+
-
44+
env: CHECK=metadata_lint
45+
-
46+
env: CHECK=spec
47+
-
48+
env: PUPPET_GEM_VERSION="~> 4.0" CHECK=spec
49+
rvm: 2.1.9
50+
-
51+
env: CHECK=release_checks
52+
rvm: 2.1.9
53+
branches:
54+
only:
55+
- master
56+
- /^v\d/
57+
- release
3658
notifications:
3759
email: false
60+
deploy:
61+
provider: puppetforge
62+
user: puppet
63+
password:
64+
secure: ""
65+
on:
66+
tags: true
67+
all_branches: true
68+
condition: "$DEPLOY_TO_FORGE = yes"

0 commit comments

Comments
 (0)