Permalink
Browse files

Added tons of additional snippets

  • Loading branch information...
1 parent 8d53b3f commit af8aab0bf83a16f838da1283b0374843e08f553c @johntdyer johntdyer committed Jan 28, 2012
@@ -0,0 +1,16 @@
+<?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>Chef::Log.${1:debug} "${2:something to log}"</string>
+ <key>name</key>
+ <string>chef_log</string>
+ <key>scope</key>
+ <string>source.ruby.chef</string>
+ <key>tabTrigger</key>
+ <string>log</string>
+ <key>uuid</key>
+ <string>18C24F07-1726-490B-84BA-4BF83263C6EE</string>
+</dict>
+</plist>
@@ -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>cookbook_file "${1:/tmp/testfile}" do
+ source "${2:testfile}"
+ owner "${3:root}"
+ group "${4:$3}"
+ mode "${5:0644}"
+end</string>
+ <key>name</key>
+ <string>cookbook_file</string>
+ <key>scope</key>
+ <string>source.ruby.chef</string>
+ <key>tabTrigger</key>
+ <string>cookbook</string>
+ <key>uuid</key>
+ <string>710F974F-8D61-4392-BD23-901D9D0E8B11</string>
+</dict>
+</plist>
View
@@ -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>cron "${1:name}" do
+ hour "${2:5}"
+ minute "${3:5}"
+ command "${3:/bin/script}"
+end
+</string>
+ <key>name</key>
+ <string>cron</string>
+ <key>scope</key>
+ <string>source.ruby.chef</string>
+ <key>tabTrigger</key>
+ <string>cron</string>
+ <key>uuid</key>
+ <string>FD31A386-6FA4-4FB7-8045-7781C785E4B1</string>
+</dict>
+</plist>
@@ -6,7 +6,7 @@
<string>directory "${1:/tmp/something}" do
owner "${2:root}"
group "${3:$2}"
- mode "${5:0755}"
+ mode "${4:0755}"
recursive true
action :create
end
View
@@ -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>file "${1:/tmp/something}" do
+ owner "${2:root}"
+ group "${3:$2}"
+ mode "${4:0755}"
+ action :${5:create}
+end</string>
+ <key>name</key>
+ <string>file</string>
+ <key>scope</key>
+ <string>source.ruby.chef</string>
+ <key>tabTrigger</key>
+ <string>file</string>
+ <key>uuid</key>
+ <string>F889C895-5C29-4C5F-A6D7-368D262FA71A</string>
+</dict>
+</plist>
@@ -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>gem_package "${1:gem}"
+</string>
+ <key>name</key>
+ <string>gem_package</string>
+ <key>scope</key>
+ <string>source.ruby.chef</string>
+ <key>tabTrigger</key>
+ <string>gem</string>
+ <key>uuid</key>
+ <string>589FDF39-7650-4103-973D-E5D687E9C275</string>
+</dict>
+</plist>
View
@@ -0,0 +1,19 @@
+<?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:group}" do
+ gid "${2:999}"
+ members ['${3:kyle}', '${4:cartment}']
+end</string>
+ <key>name</key>
+ <string>group</string>
+ <key>scope</key>
+ <string>source.ruby.chef</string>
+ <key>tabTrigger</key>
+ <string>group</string>
+ <key>uuid</key>
+ <string>CCF11DE0-BC65-4295-9977-BDC7CC4FC1D0</string>
+</dict>
+</plist>
@@ -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>http_request "${1:description}" do
+ action :${2:post}
+ url "${3:http://example.com/check_in}"
+ message :${4:key} =&gt; "${5:value}"
+end</string>
+ <key>name</key>
+ <string>http_request</string>
+ <key>scope</key>
+ <string>source.ruby.chef</string>
+ <key>tabTrigger</key>
+ <string>http</string>
+ <key>uuid</key>
+ <string>48526981-99AE-42A0-923E-05EA1C71B5BB</string>
+</dict>
+</plist>
View
@@ -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>link "${1:/tmp/passwd}" do
+ to "${1:/etc/passwd}"
+end</string>
+ <key>name</key>
+ <string>link</string>
+ <key>scope</key>
+ <string>source.ruby.chef</string>
+ <key>tabTrigger</key>
+ <string>link</string>
+ <key>uuid</key>
+ <string>D40C69ED-51C6-404F-A535-F1BB2FF88DF2</string>
+</dict>
+</plist>
View
@@ -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>package "${1:name}" do
+ source "${2:source}.erb"
+ owner "${3:root}"
+ group "${4:$3}"
+ mode "${5:0744}
+end
+</string>
+ <key>name</key>
+ <string>package</string>
+ <key>uuid</key>
+ <string>880936D7-8AF8-4CAA-AA29-A7A53F436A55</string>
+</dict>
+</plist>
View
@@ -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>remote_file "${1:/opt/chef/file}" do
+ source "${2:http://myfile}"
+ owner "${3:root}"
+ group "${4:$3}"
+end</string>
+ <key>name</key>
+ <string>remote</string>
+ <key>scope</key>
+ <string>source.ruby.chef</string>
+ <key>tabTrigger</key>
+ <string>remote</string>
+ <key>uuid</key>
+ <string>559C8393-2B21-4B50-97F0-65ABF75A31F8</string>
+</dict>
+</plist>
@@ -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>ruby_block "${1:desc}" do
+ block do
+ ${1:puts "awesome"}
+ end
+end</string>
+ <key>name</key>
+ <string>ruby_block</string>
+ <key>scope</key>
+ <string>source.ruby.chef</string>
+ <key>tabTrigger</key>
+ <string>block</string>
+ <key>uuid</key>
+ <string>64FF70AD-3D0A-4BDD-B6D0-2AB48B043D4C</string>
+</dict>
+</plist>
View
@@ -0,0 +1,23 @@
+<?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>script "${1:desc}" do
+ user "${2:root}"
+ cwd "${3:/tmp}"
+ code &lt;&lt;-EOF
+ ${4:script commands}
+ EOF
+end
+</string>
+ <key>name</key>
+ <string>script</string>
+ <key>scope</key>
+ <string>source.ruby.chef</string>
+ <key>tabTrigger</key>
+ <string>script</string>
+ <key>uuid</key>
+ <string>7E9B1A87-CD26-4F32-AE1F-F2181D96D59B</string>
+</dict>
+</plist>
View
@@ -0,0 +1,19 @@
+<?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>service "${1:service}" do
+ supports :${2:status} =&gt; true
+ action [ :${3:enable}, :${3:start} ]
+end</string>
+ <key>name</key>
+ <string>service</string>
+ <key>scope</key>
+ <string>source.ruby.chef</string>
+ <key>tabTrigger</key>
+ <string>service</string>
+ <key>uuid</key>
+ <string>8812AEF8-5D23-46DF-BB4A-CFC746164E6C</string>
+</dict>
+</plist>
@@ -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>user "${1:random}" do
+ comment "${2:Random User}"
+ system true
+ shell "/bin/false"
+end</string>
+ <key>name</key>
+ <string>system_user</string>
+ <key>scope</key>
+ <string>source.ruby.chef</string>
+ <key>tabTrigger</key>
+ <string>systemuser</string>
+ <key>uuid</key>
+ <string>4BEE4D3F-F075-42FF-944D-F900DD6E9F7B</string>
+</dict>
+</plist>
@@ -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>template "${1:target}" do
+ source "${2:source}.erb"
+ owner "${3:root}"
+ group "${4:$3}"
+ mode "${5:0744}
+end
+</string>
+ <key>name</key>
+ <string>template</string>
+ <key>scope</key>
+ <string>source.ruby.chef</string>
+ <key>tabTrigger</key>
+ <string>template</string>
+ <key>uuid</key>
+ <string>B17386B8-465F-4139-87C4-F2180E2CABA2</string>
+</dict>
+</plist>
View
@@ -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>user "${1:random}" do
+ comment "${2:Random User}"
+ uid "${3:1000}"
+ gid "${4:users}"
+ shell "${5:/bin/zsh}"
+end</string>
+ <key>name</key>
+ <string>user</string>
+ <key>scope</key>
+ <string>source.ruby.chef</string>
+ <key>tabTrigger</key>
+ <string>user</string>
+ <key>uuid</key>
+ <string>77654107-DDFB-4134-9090-F0CAB20A976F</string>
+</dict>
+</plist>
View
@@ -9,6 +9,22 @@
<string>942770A9-7106-4CAC-8533-3772E4BA4AEF</string>
<string>486B3F9F-E3FC-496B-8708-ED4669B542D7</string>
<string>1D72B5EC-D4D2-4C3B-8B01-FFB3E9C0EC47</string>
+ <string>7E9B1A87-CD26-4F32-AE1F-F2181D96D59B</string>
+ <string>B17386B8-465F-4139-87C4-F2180E2CABA2</string>
+ <string>559C8393-2B21-4B50-97F0-65ABF75A31F8</string>
+ <string>8812AEF8-5D23-46DF-BB4A-CFC746164E6C</string>
+ <string>880936D7-8AF8-4CAA-AA29-A7A53F436A55</string>
+ <string>589FDF39-7650-4103-973D-E5D687E9C275</string>
+ <string>77654107-DDFB-4134-9090-F0CAB20A976F</string>
+ <string>4BEE4D3F-F075-42FF-944D-F900DD6E9F7B</string>
+ <string>48526981-99AE-42A0-923E-05EA1C71B5BB</string>
+ <string>64FF70AD-3D0A-4BDD-B6D0-2AB48B043D4C</string>
+ <string>18C24F07-1726-490B-84BA-4BF83263C6EE</string>
+ <string>F889C895-5C29-4C5F-A6D7-368D262FA71A</string>
+ <string>710F974F-8D61-4392-BD23-901D9D0E8B11</string>
+ <string>FD31A386-6FA4-4FB7-8045-7781C785E4B1</string>
+ <string>CCF11DE0-BC65-4295-9977-BDC7CC4FC1D0</string>
+ <string>D40C69ED-51C6-404F-A535-F1BB2FF88DF2</string>
</array>
<key>uuid</key>
<string>73C08EDB-F2E9-4C93-A115-F5C21811C75A</string>

0 comments on commit af8aab0

Please sign in to comment.