Permalink
Browse files

Added HTTP Request, Link and Log folders.

  • Loading branch information...
1 parent 62bb3eb commit 3bf232eb7275fdf06dbdb4491f9735999ccd48f7 @cabeca committed May 3, 2012
@@ -0,0 +1,17 @@
+<snippet>
+ <content><![CDATA[
+authorization = "Basic #{Base64.encode64('username:password')}"
+http_request "${1:posting data}" do
+ action :post
+ url "${2:http://example.com/check_in}"
+ message ${3::some => "data"}
+ headers (${4:\{"AUTHORIZATION" => authorization\}})
+end
+
+]]></content>
+ <!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
+ <tabTrigger>http_requestp</tabTrigger>
+ <!-- Optional: Set a scope to limit where the snippet will trigger -->
+ <scope>source.ruby</scope>
+ <description>http_request post</description>
+</snippet>
@@ -0,0 +1,13 @@
+<snippet>
+ <content><![CDATA[
+http_request "${1:some message}" do
+ url "${2:http://example.com/check_in}"
+end
+
+]]></content>
+ <!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
+ <tabTrigger>http_request</tabTrigger>
+ <!-- Optional: Set a scope to limit where the snippet will trigger -->
+ <scope>source.ruby</scope>
+ <description>http_request</description>
+</snippet>
@@ -0,0 +1,16 @@
+<snippet>
+ <content><![CDATA[
+link "${1:/tmp/passwd}" do
+ to "${2:/etc/passwd}"
+ link_type :${3:symbolic}
+ owner "${4:root}"
+ group "${5:root}"
+end
+
+]]></content>
+ <!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
+ <tabTrigger>linkf</tabTrigger>
+ <!-- Optional: Set a scope to limit where the snippet will trigger -->
+ <scope>source.ruby</scope>
+ <description>link full</description>
+</snippet>
@@ -0,0 +1,14 @@
+<snippet>
+ <content><![CDATA[
+link "${1:/tmp/passwd}" do
+ to "${2:/etc/passwd}"
+ link_type :hard
+end
+
+]]></content>
+ <!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
+ <tabTrigger>linkh</tabTrigger>
+ <!-- Optional: Set a scope to limit where the snippet will trigger -->
+ <scope>source.ruby</scope>
+ <description>link hard</description>
+</snippet>
@@ -0,0 +1,13 @@
+<snippet>
+ <content><![CDATA[
+link "${1:/tmp/passwd}" do
+ to "${2:/etc/passwd}"
+end
+
+]]></content>
+ <!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
+ <tabTrigger>link</tabTrigger>
+ <!-- Optional: Set a scope to limit where the snippet will trigger -->
+ <scope>source.ruby</scope>
+ <description>link</description>
+</snippet>
@@ -0,0 +1,10 @@
+<snippet>
+ <content><![CDATA[
+log ("${0:your string to log}") { level :debug }
+]]></content>
+ <!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
+ <tabTrigger>logd</tabTrigger>
+ <!-- Optional: Set a scope to limit where the snippet will trigger -->
+ <scope>source.ruby</scope>
+ <description>log debug</description>
+</snippet>
@@ -0,0 +1,10 @@
+<snippet>
+ <content><![CDATA[
+log "${0:your string to log}"
+]]></content>
+ <!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
+ <tabTrigger>log</tabTrigger>
+ <!-- Optional: Set a scope to limit where the snippet will trigger -->
+ <scope>source.ruby</scope>
+ <description>log</description>
+</snippet>

0 comments on commit 3bf232e

Please sign in to comment.