Skip to content

Commit

Permalink
Added File folder.
Browse files Browse the repository at this point in the history
  • Loading branch information
cabeca committed May 2, 2012
1 parent 0f6cc2f commit 29ff6cb
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 0 deletions.
17 changes: 17 additions & 0 deletions File/file-content.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<snippet>
<content><![CDATA[
file "${1:name}" do
action :create
owner "root"
group "root"
mode "0644"
content "${2:content here}"
end
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>filec</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.ruby</scope>
<description>file with content</description>
</snippet>
19 changes: 19 additions & 0 deletions File/file-full.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<snippet>
<content><![CDATA[
file "${1:name}" do
action :${2:create}
path "${3:path}"
backup ${4:5}
owner "${5:root}"
group "${6:root}"
mode "${7:0644}"
content "${8:content here}"
end
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>filef</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.ruby</scope>
<description>file full</description>
</snippet>
16 changes: 16 additions & 0 deletions File/file.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<snippet>
<content><![CDATA[
file "${1:name}" do
action :create
owner "root"
group "root"
mode "0644"
end
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>file</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.ruby</scope>
<description>file</description>
</snippet>

0 comments on commit 29ff6cb

Please sign in to comment.