Permalink
Browse files

Added metadata snippets.

  • Loading branch information...
1 parent 2fc077a commit 1fec3abd5a8213245946a6237092a4f29fb7ded0 @cabeca committed Jul 5, 2012
Showing with 45 additions and 0 deletions.
  1. +16 −0 Metadata/metadata.sublime-snippet
  2. +27 −0 Metadata/metadataf.sublime-snippet
  3. +2 −0 README.md
@@ -0,0 +1,16 @@
+<snippet>
+ <content><![CDATA[
+maintainer "${1:YOUR_COMPANY_NAME}"
+maintainer_email "${2:YOUR_EMAIL}"
+license "${3:All rights reserved}"
+description "${4:Installs/Configures example}"
+long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc'))
+version "${5:0.0.1}"
+
+]]></content>
+ <!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
+ <tabTrigger>metadata</tabTrigger>
+ <!-- Optional: Set a scope to limit where the snippet will trigger -->
+ <scope>source.ruby</scope>
+ <description>metadata</description>
+</snippet>
@@ -0,0 +1,27 @@
+<snippet>
+ <content><![CDATA[
+name "example"
+maintainer "YOUR_COMPANY_NAME"
+maintainer_email "YOUR_EMAIL"
+license "All rights reserved"
+description "Installs/Configures example"
+long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc'))
+version "0.0.1"
+depends "package"
+attribute "pets/cat/name",:display_name => "Cat Name"
+grouping "pets/cat",:title => "Cat Options"
+conflicts "package"
+provides "service[example]"
+recipe "example::one", "Description for example"
+recommends "package"
+replaces "package"
+supports "ubuntu"
+suggests "package"
+$0
+]]></content>
+ <!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
+ <tabTrigger>metadataf</tabTrigger>
+ <!-- Optional: Set a scope to limit where the snippet will trigger -->
+ <scope>source.ruby</scope>
+ <description>metadata full</description>
+</snippet>
View
@@ -62,6 +62,8 @@ These are the available completions:
logd
log
mdadm
+ metadataf
+ metadata
mountf
mountl
mountn

0 comments on commit 1fec3ab

Please sign in to comment.