Skip to content

Commit 1a48e43

Browse files
authored
Merge pull request #1 from puppetlabs/extraction
Initial mount module extraction
2 parents bb9ea3b + c4e0bcd commit 1a48e43

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+3372
-2
lines changed

.fixtures.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# This file can be used to install module dependencies for unit testing
2+
# See https://github.com/puppetlabs/puppetlabs_spec_helper#using-fixtures for details
3+
---
4+
fixtures:
5+
forge_modules:
6+
# stdlib: "puppetlabs/stdlib"

.gitattributes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
*.rb eol=lf
2+
*.erb eol=lf
3+
*.pp eol=lf
4+
*.sh eol=lf

.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
.git/
2+
.*.sw[op]
3+
.metadata
4+
.yardoc
5+
.yardwarns
6+
*.iml
7+
/.bundle/
8+
/.idea/
9+
/.vagrant/
10+
/coverage/
11+
/bin/
12+
/doc/
13+
/Gemfile.local
14+
/Gemfile.lock
15+
/junit/
16+
/log/
17+
/pkg/
18+
/spec/fixtures/manifests/
19+
/spec/fixtures/modules/
20+
/tmp/
21+
/vendor/
22+
/convert_report.txt
23+
/update_report.txt
24+
.DS_Store

.pdkignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
.git/
2+
.*.sw[op]
3+
.metadata
4+
.yardoc
5+
.yardwarns
6+
*.iml
7+
/.bundle/
8+
/.idea/
9+
/.vagrant/
10+
/coverage/
11+
/bin/
12+
/doc/
13+
/Gemfile.local
14+
/Gemfile.lock
15+
/junit/
16+
/log/
17+
/pkg/
18+
/spec/fixtures/manifests/
19+
/spec/fixtures/modules/
20+
/tmp/
21+
/vendor/
22+
/convert_report.txt
23+
/update_report.txt
24+
.DS_Store

.rspec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
--color
2+
--format documentation

.rubocop.yml

Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
---
2+
require: rubocop-rspec
3+
AllCops:
4+
DisplayCopNames: true
5+
TargetRubyVersion: '2.1'
6+
Include:
7+
- "./**/*.rb"
8+
Exclude:
9+
- bin/*
10+
- ".vendor/**/*"
11+
- "**/Gemfile"
12+
- "**/Rakefile"
13+
- pkg/**/*
14+
- spec/fixtures/**/*
15+
- vendor/**/*
16+
- "**/Puppetfile"
17+
- "**/Vagrantfile"
18+
- "**/Guardfile"
19+
Metrics/LineLength:
20+
Description: People have wide screens, use them.
21+
Max: 200
22+
RSpec/BeforeAfterAll:
23+
Description: Beware of using after(:all) as it may cause state to leak between tests.
24+
A necessary evil in acceptance testing.
25+
Exclude:
26+
- spec/acceptance/**/*.rb
27+
RSpec/HookArgument:
28+
Description: Prefer explicit :each argument, matching existing module's style
29+
EnforcedStyle: each
30+
Style/BlockDelimiters:
31+
Description: Prefer braces for chaining. Mostly an aesthetical choice. Better to
32+
be consistent then.
33+
EnforcedStyle: braces_for_chaining
34+
Style/ClassAndModuleChildren:
35+
Description: Compact style reduces the required amount of indentation.
36+
EnforcedStyle: compact
37+
Style/EmptyElse:
38+
Description: Enforce against empty else clauses, but allow `nil` for clarity.
39+
EnforcedStyle: empty
40+
Style/FormatString:
41+
Description: Following the main puppet project's style, prefer the % format format.
42+
EnforcedStyle: percent
43+
Style/FormatStringToken:
44+
Description: Following the main puppet project's style, prefer the simpler template
45+
tokens over annotated ones.
46+
EnforcedStyle: template
47+
Style/Lambda:
48+
Description: Prefer the keyword for easier discoverability.
49+
EnforcedStyle: literal
50+
Style/RegexpLiteral:
51+
Description: Community preference. See https://github.com/voxpupuli/modulesync_config/issues/168
52+
EnforcedStyle: percent_r
53+
Style/TernaryParentheses:
54+
Description: Checks for use of parentheses around ternary conditions. Enforce parentheses
55+
on complex expressions for better readability, but seriously consider breaking
56+
it up.
57+
EnforcedStyle: require_parentheses_when_complex
58+
Style/TrailingCommaInArguments:
59+
Description: Prefer always trailing comma on multiline argument lists. This makes
60+
diffs, and re-ordering nicer.
61+
EnforcedStyleForMultiline: comma
62+
Style/TrailingCommaInLiteral:
63+
Description: Prefer always trailing comma on multiline literals. This makes diffs,
64+
and re-ordering nicer.
65+
EnforcedStyleForMultiline: comma
66+
Style/SymbolArray:
67+
Description: Using percent style obscures symbolic intent of array's contents.
68+
EnforcedStyle: brackets
69+
Layout/IndentHeredoc:
70+
Enabled: false
71+
Style/DoubleNegation:
72+
Enabled: false
73+
Style/GuardClause:
74+
Enabled: false
75+
Style/MultilineBlockChain:
76+
Enabled: false
77+
RSpec/FilePath:
78+
Enabled: false
79+
RSpec/InstanceVariable:
80+
Exclude:
81+
- spec/integration/provider/mount_spec.rb
82+
RSpec/AnyInstance:
83+
Exclude:
84+
- spec/integration/provider/mount_spec.rb
85+
RSpec/ExpectInHook:
86+
Exclude:
87+
- spec/integration/provider/mount_spec.rb
88+
RSpec/MessageSpies:
89+
EnforcedStyle: receive
90+
Style/Documentation:
91+
Exclude:
92+
- lib/puppet/parser/functions/**/*
93+
- spec/**/*
94+
Style/WordArray:
95+
EnforcedStyle: brackets
96+
Style/CollectionMethods:
97+
Enabled: true
98+
Style/MethodCalledOnDoEndBlock:
99+
Enabled: true
100+
Style/StringMethods:
101+
Enabled: true
102+
Layout/EndOfLine:
103+
Enabled: false
104+
Metrics/AbcSize:
105+
Enabled: false
106+
Metrics/BlockLength:
107+
Enabled: false
108+
Metrics/ClassLength:
109+
Enabled: false
110+
Metrics/CyclomaticComplexity:
111+
Enabled: false
112+
Metrics/MethodLength:
113+
Enabled: false
114+
Metrics/ModuleLength:
115+
Enabled: false
116+
Metrics/ParameterLists:
117+
Enabled: false
118+
Metrics/PerceivedComplexity:
119+
Enabled: false
120+
RSpec/DescribeClass:
121+
Enabled: false
122+
RSpec/ExampleLength:
123+
Enabled: false
124+
RSpec/MessageExpectation:
125+
Enabled: false
126+
RSpec/MultipleExpectations:
127+
Enabled: false
128+
RSpec/NestedGroups:
129+
Enabled: false
130+
Style/AsciiComments:
131+
Enabled: false
132+
Style/IfUnlessModifier:
133+
Enabled: false
134+
Style/SymbolProc:
135+
Enabled: false

.sync.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
.rubocop.yml:
2+
default_configs:
3+
Layout/IndentHeredoc:
4+
Enabled: false
5+
Style/DoubleNegation:
6+
Enabled: false
7+
Style/GuardClause:
8+
Enabled: false
9+
Style/MultilineBlockChain:
10+
Enabled: false
11+
RSpec/FilePath:
12+
Enabled: false
13+
RSpec/InstanceVariable:
14+
Exclude: ['spec/integration/provider/mount_spec.rb']
15+
RSpec/AnyInstance:
16+
Exclude: ['spec/integration/provider/mount_spec.rb']
17+
RSpec/ExpectInHook:
18+
Exclude: ['spec/integration/provider/mount_spec.rb']
19+
Gemfile:
20+
required:
21+
':system_tests':
22+
- gem: 'puppet-module-posix-system-r#{minor_version}'
23+
platforms: ruby
24+
- gem: 'puppet-module-win-system-r#{minor_version}'
25+
platforms:
26+
- mswin
27+
- mingw
28+
- x64_mingw
29+
- gem: beaker
30+
version: '~> 3.34'
31+
from_env: BEAKER_VERSION
32+
- gem: beaker-abs
33+
from_env: BEAKER_ABS_VERSION
34+
version: '~> 0.5'
35+
- gem: beaker-pe
36+
- gem: beaker-hostgenerator
37+
from_env: BEAKER_HOSTGENERATOR_VERSION
38+
- gem: beaker-rspec
39+
from_env: BEAKER_RSPEC_VERSION
40+
- gem: beaker-puppet
41+
from_env: BEAKER_PUPPET_VERSION
42+
version: '~> 0.14'
43+
':development':
44+
- gem: puppet-strings
45+
.gitlab-ci.yml:
46+
delete: true
47+
appveyor.yml:
48+
delete: true
49+
.travis.yml:
50+
remove_includes:
51+
- env: PUPPET_GEM_VERSION="~> 4.0" CHECK=parallel_spec
52+
rvm: 2.1.9

.travis.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
sudo: false
3+
dist: trusty
4+
language: ruby
5+
cache: bundler
6+
before_install:
7+
- bundle -v
8+
- rm -f Gemfile.lock
9+
- gem update --system
10+
- gem --version
11+
- bundle -v
12+
script:
13+
- 'bundle exec rake $CHECK'
14+
bundler_args: --without system_tests
15+
rvm:
16+
- 2.4.1
17+
env:
18+
global:
19+
- BEAKER_PUPPET_COLLECTION=puppet5 PUPPET_GEM_VERSION="~> 5.0"
20+
matrix:
21+
fast_finish: true
22+
include:
23+
-
24+
env: CHECK="syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop"
25+
-
26+
env: CHECK=parallel_spec
27+
branches:
28+
only:
29+
- master
30+
- /^v\d/
31+
notifications:
32+
email: false
33+
deploy:
34+
provider: puppetforge
35+
user: puppet
36+
password:
37+
secure: ""
38+
on:
39+
tags: true
40+
all_branches: true
41+
condition: "$DEPLOY_TO_FORGE = yes"

.yardopts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
--markup markdown

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
## Release 0.1.0
6+
7+
**Features**
8+
9+
**Bugfixes**
10+
11+
**Known Issues**

0 commit comments

Comments
 (0)