Skip to content

Commit 208e346

Browse files
committed
(GH-288) Change puppetfile snippets to single line
Previously the snippets for adding modules into the Puppetfile broke over multiple lines. However the more "normal" way is to always have them on a single line. This commit converts the snippets to use a single line.
1 parent f7372e6 commit 208e346

File tree

1 file changed

+5
-15
lines changed

1 file changed

+5
-15
lines changed

snippets/puppetfile.snippets.json

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,45 +12,35 @@
1212
"Git_module1": {
1313
"prefix": "Git Module by ref",
1414
"body": [
15-
"mod '${1:name}',",
16-
"\t:git => '${2:repository}',",
17-
"\t:ref => '${3:reference}'"
15+
"mod '${1:name}', :git => '${2:repository}', :ref => '${3:reference}'"
1816
],
1917
"description": "Install from a git repository specified by a git reference e.g. master"
2018
},
2119
"Git_module2": {
2220
"prefix": "Git Module by commit",
2321
"body": [
24-
"mod '${1:name}',",
25-
"\t:git => '${2:repository}',",
26-
"\t:commit => '${3:commit}'"
22+
"mod '${1:name}', :git => '${2:repository}', :commit => '${3:commit}'"
2723
],
2824
"description": "Install from a git repository specified by a git commit e.g. 1c40e29"
2925
},
3026
"Git_module3": {
3127
"prefix": "Git Module by tag",
3228
"body": [
33-
"mod '${1:name}',",
34-
"\t:git => '${2:repository}',",
35-
"\t:tag => '${3:tag}'"
29+
"mod '${1:name}', :git => '${2:repository}', :tag => '${3:tag}'"
3630
],
3731
"description": "Install from a git repository specified by a git tag e.g. v1.0.0"
3832
},
3933
"Git_module4": {
4034
"prefix": "Git Module by branch",
4135
"body": [
42-
"mod '${1:name}',",
43-
"\t:git => '${2:repository}',",
44-
"\t:branch => '${3:branch}'"
36+
"mod '${1:name}', :git => '${2:repository}', :branch => '${3:branch}'"
4537
],
4638
"description": "Install from a git repository specified by a git branch e.g. release"
4739
},
4840
"Svn_module1": {
4941
"prefix": "Svn Module by revision",
5042
"body": [
51-
"mod '${1:name}',",
52-
"\t:svn => '${2:repository}',",
53-
"\t:revision => '${3:revision}'"
43+
"mod '${1:name}', :svn => '${2:repository}', :revision => '${3:revision}'"
5444
],
5545
"description": "Install from a SVN repository specified by a revision e.g. 154"
5646
},

0 commit comments

Comments
 (0)