forked from cburyta/puppet-textmate.tmbundle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added some snippets for class/define * Added some snippets for the major puppet resources * Temptative hack for a module template (non working atm)
- Loading branch information
Brice Figureau
committed
Aug 14, 2008
1 parent
0abc058
commit 6c4ac48
Showing
16 changed files
with
295 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>beforeRunningCommand</key> | ||
<string>saveActiveFile</string> | ||
<key>command</key> | ||
<string>puppet --confdir=/tmp/puppet --vardir=/tmp/puppet --parseonly $TM_FILEPATH</string> | ||
<key>input</key> | ||
<string>none</string> | ||
<key>name</key> | ||
<string>puppetparse</string> | ||
<key>output</key> | ||
<string>discard</string> | ||
<key>uuid</key> | ||
<string>1DBD7B78-91F3-4528-9AC9-B71D9E5FE445</string> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>content</key> | ||
<string>case ${0:$variable} { | ||
'$1' => { | ||
$2 | ||
}, | ||
default => { | ||
$3 | ||
} | ||
} | ||
</string> | ||
<key>name</key> | ||
<string>case</string> | ||
<key>tabTrigger</key> | ||
<string>case</string> | ||
<key>uuid</key> | ||
<string>4C76CA5D-F7F7-4354-AAAD-1F8B00D73823</string> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>content</key> | ||
<string># Class: $1 | ||
# | ||
# | ||
class ${1:name} { | ||
$0 | ||
} | ||
</string> | ||
<key>name</key> | ||
<string>class</string> | ||
<key>tabTrigger</key> | ||
<string>class</string> | ||
<key>uuid</key> | ||
<string>2D3C6C03-B268-42B1-A856-33FB0437B00E</string> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>content</key> | ||
<string>cron { | ||
"${1:name}": | ||
$2 | ||
}</string> | ||
<key>name</key> | ||
<string>cron</string> | ||
<key>tabTrigger</key> | ||
<string>cron</string> | ||
<key>uuid</key> | ||
<string>C22C1778-E61D-40EC-8E06-4B4A5ABEC0E7</string> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>content</key> | ||
<string># Define: $1 | ||
# Parameters: | ||
# $2 | ||
# | ||
define ${1:name} (${2:arguments}) { | ||
${0:# puppet code} | ||
} | ||
</string> | ||
<key>name</key> | ||
<string>define</string> | ||
<key>tabTrigger</key> | ||
<string>define</string> | ||
<key>uuid</key> | ||
<string>22538B08-D4D6-4172-B672-77893A6D8E40</string> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>content</key> | ||
<string>else { | ||
${0:# enter puppet code} | ||
} | ||
</string> | ||
<key>name</key> | ||
<string>else</string> | ||
<key>tabTrigger</key> | ||
<string>else</string> | ||
<key>uuid</key> | ||
<string>B3E52D1C-3A49-44FA-8D1E-2910567F22C4</string> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>content</key> | ||
<string>exec { | ||
"${1:command}": | ||
$0 | ||
}</string> | ||
<key>name</key> | ||
<string>exec</string> | ||
<key>tabTrigger</key> | ||
<string>exec</string> | ||
<key>uuid</key> | ||
<string>849952B4-0D8A-4B5F-996D-35D531AAAE81</string> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>content</key> | ||
<string>file { | ||
"${1:name}": | ||
${2:ensure => file} | ||
}</string> | ||
<key>name</key> | ||
<string>file</string> | ||
<key>tabTrigger</key> | ||
<string>file</string> | ||
<key>uuid</key> | ||
<string>C84524F5-B248-4A4B-87B9-69DCA93C393F</string> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>content</key> | ||
<string>group { | ||
"${1:name}": | ||
gid => $2, | ||
} | ||
</string> | ||
<key>name</key> | ||
<string>group</string> | ||
<key>tabTrigger</key> | ||
<string>group</string> | ||
<key>uuid</key> | ||
<string>44C1B58A-0EF0-4022-A9EF-2D3B432C83FE</string> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>content</key> | ||
<string>if ${0:variable} { | ||
${1:# enter puppet code} | ||
} | ||
</string> | ||
<key>name</key> | ||
<string>if</string> | ||
<key>tabTrigger</key> | ||
<string>if</string> | ||
<key>uuid</key> | ||
<string>A60AC7AD-8710-4CCB-9A52-D8B84ABDD521</string> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>content</key> | ||
<string>package { | ||
"${1:name}": | ||
ensure => ${2:installed}, | ||
}</string> | ||
<key>name</key> | ||
<string>package</string> | ||
<key>tabTrigger</key> | ||
<string>package</string> | ||
<key>uuid</key> | ||
<string>1A1C51EE-AC6D-4F7F-A342-4D6DE1F4FAD3</string> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>content</key> | ||
<string>$0 ? { | ||
'$1' => $2, | ||
$3 | ||
}</string> | ||
<key>name</key> | ||
<string>selector</string> | ||
<key>tabTrigger</key> | ||
<string>?</string> | ||
<key>uuid</key> | ||
<string>88BA23C0-A6AD-4115-A765-9074BB8C85BD</string> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>content</key> | ||
<string>user { | ||
"${0:name}": | ||
uid => $1, | ||
}</string> | ||
<key>name</key> | ||
<string>user</string> | ||
<key>tabTrigger</key> | ||
<string>user</string> | ||
<key>uuid</key> | ||
<string>831FA574-7FC1-47B7-BDD3-67E3E94E8188</string> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>command</key> | ||
<string>if [[ ! -d "$TM_NEW_FILE" ]]; then | ||
mkdir -p "$TM_NEW_FILE/manifests" | ||
mkdir -p "$TM_NEW_FILE/files" | ||
mkdir -p "$TM_NEW_FILE/templates" | ||
TM_YEAR=`date +%Y` \ | ||
TM_DATE=`date +%Y-%m-%d` \ | ||
TM_USERNAME=`niutil -readprop / /users/\$USER realname` \ | ||
perl -pe 's/\$\{([^}]*)\}/$ENV{$1}/g' \ | ||
< init.pp > "$TM_NEW_FILE/manifests/init.pp" | ||
fi | ||
</string> | ||
<key>name</key> | ||
<string>module</string> | ||
<key>uuid</key> | ||
<string>285328A3-F7E4-4D5C-9175-D5EFD947C787</string> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# | ||
# Module: ${TM_NEW_FILE_BASENAME} | ||
# | ||
# Created by ${TM_USERNAME} on ${TM_DATE}. | ||
# Copyright (c) ${TM_YEAR} ${TM_ORGANIZATION_NAME}. All rights reserved. | ||
# | ||
# Define: | ||
# | ||
# | ||
# Parameters: | ||
# | ||
# | ||
# Actions: | ||
# | ||
# Requires: | ||
# | ||
# Sample Usage: | ||
# (start code) | ||
# (end) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters