Skip to content

bring up to date with latest puppet style guide #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
============= Puppet TextMate Bundle ==============

This is a TextMate (http://www.macromates.com/) bundle for
Puppet (http://www.reductivelabs.com/) manifests.
Puppet (http://puppetlabs.com) manifests. It also works fine in Sublime Text 2.

To install, clone this repository and drag the Puppet.tmbundle directory
on the TextMate icon. The installation will then be automatic.
Expand Down
2 changes: 1 addition & 1 deletion Snippets/Parameter.tmSnippet
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
<string>${1:name} =&gt; "${2:value}",$0</string>
<string>${1:name} =&gt; '${2:value}',$0</string>
<key>name</key>
<string>Parameter</string>
<key>scope</key>
Expand Down
2 changes: 1 addition & 1 deletion Snippets/case.tmSnippet
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<dict>
<key>content</key>
<string>case \$${1:variable} {
"${2:value}": {
'${2:value}': {
${3:# code}
}
default: {
Expand Down
2 changes: 1 addition & 1 deletion Snippets/cron.tmSnippet
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
<string>cron { "${1:name}":
<string>cron { '${1:name}':
$2
}$0</string>
<key>name</key>
Expand Down
6 changes: 3 additions & 3 deletions Snippets/exec.tmSnippet
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
<plist version="1.0">
<dict>
<key>content</key>
<string>exec { "${1:name}":
command =&gt; "${2:/bin/echo}",
#path =&gt; "/usr/bin:/usr/sbin:/bin:/usr/local/bin",
<string>exec { '${1:name}':
command =&gt; '${2:/bin/echo}',
#path =&gt; '/usr/bin:/usr/sbin:/bin:/usr/local/bin',
#refreshonly =&gt; true,
}$0</string>
<key>name</key>
Expand Down
2 changes: 1 addition & 1 deletion Snippets/file.tmSnippet
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
<string>file { "${1:name}":
<string>file { '${1:name}':
ensure =&gt; ${2:file},
}$0</string>
<key>name</key>
Expand Down
2 changes: 1 addition & 1 deletion Snippets/group.tmSnippet
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
<string>group { "${1:name}":
<string>group { '${1:name}':
gid =&gt; $2,
}$0</string>
<key>name</key>
Expand Down
2 changes: 1 addition & 1 deletion Snippets/package.tmSnippet
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
<string>package { "${1:name}":
<string>package { '${1:name}':
ensure =&gt; ${2:installed},
}$0</string>
<key>name</key>
Expand Down
4 changes: 2 additions & 2 deletions Snippets/selector.tmSnippet
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<dict>
<key>content</key>
<string>\$${1:variable} ? {
"${2:key}" =&gt; "${3:value}",
default =&gt; "${4:value}",
'${2:key}' =&gt; '${3:value}',
default =&gt; '${4:value}',
}$0</string>
<key>name</key>
<string>selector</string>
Expand Down
8 changes: 4 additions & 4 deletions Snippets/user.tmSnippet
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
<plist version="1.0">
<dict>
<key>content</key>
<string>user { "${1:name}":
comment =&gt; "${2:First Last}",
home =&gt; "${3:/home/$1}",
<string>user { '${1:name}':
comment =&gt; '${2:First Last}',
home =&gt; '${3:/home/$1}',
ensure =&gt; ${4:present},
#shell =&gt; "/bin/bash",
#shell =&gt; '/bin/bash',
#uid =&gt; '501',
#gid =&gt; '20'
}$0</string>
Expand Down
14 changes: 7 additions & 7 deletions Snippets/yumrepo.tmSnippet
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
<plist version="1.0">
<dict>
<key>content</key>
<string>yumrepo { "${1:name}":
baseurl =&gt; "${2}",
descr =&gt; "${3:The $1 repository}",
enabled =&gt; "${4:1}",
gpgcheck =&gt; "${5:1}",
gpgkey =&gt; "${6:file:///etc/pki/rpm-gpg/RPM-GPG-KEY-$1}",
mirrorlist =&gt; "${7}"
<string>yumrepo { '${1:name}':
baseurl =&gt; '${2}',
descr =&gt; '${3:The $1 repository}',
enabled =&gt; '${4:1}',
gpgcheck =&gt; '${5:1}',
gpgkey =&gt; '${6:file:///etc/pki/rpm-gpg/RPM-GPG-KEY-$1}',
mirrorlist =&gt; '${7}'
}$0</string>
<key>name</key>
<string>yumrepo</string>
Expand Down