Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add Deploy and SCM folders.

  • Loading branch information...
commit fce9a0d2102f8e0fef6baf82c262fbec1a31f27f 1 parent 29ff6cb
@cabeca authored
View
24 Deploy/deploy.sublime-snippet
@@ -0,0 +1,24 @@
+<snippet>
+ <content><![CDATA[
+deploy "/my/deploy/dir" do
+ repo "git@github.com/whoami/project"
+ revision "abc123" # or "HEAD" or "TAG_for_1.0" or (subversion) "1234"
+ user "deploy_ninja"
+ enable_submodules true
+ migrate true
+ migration_command "rake db:migrate"
+ environment "RAILS_ENV" => "production", "OTHER_ENV" => "foo"
+ shallow_clone true
+ action :deploy # or :rollback
+ restart_command "touch tmp/restart.txt"
+ git_ssh_wrapper "wrap-ssh4git.sh"
+ scm_provider Chef::Provider::Git # is the default, for svn: Chef::Provider::Subversion
+end
+
+]]></content>
+ <!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
+ <tabTrigger>deploy</tabTrigger>
+ <!-- Optional: Set a scope to limit where the snippet will trigger -->
+ <scope>source.ruby</scope>
+ <description>deploy</description>
+</snippet>
View
17 SCM/git.sublime-snippet
@@ -0,0 +1,17 @@
+<snippet>
+ <content><![CDATA[
+git "${1:/home/user/deployment}" do
+ repository "${2:git@github.com:gitsite/deployment.git}"
+ reference "${3:master}"
+ user "${4:user}"
+ group "${5:test}"
+ action :sync
+end
+
+]]></content>
+ <!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
+ <tabTrigger>git</tabTrigger>
+ <!-- Optional: Set a scope to limit where the snippet will trigger -->
+ <scope>source.ruby</scope>
+ <description>git</description>
+</snippet>
View
18 SCM/subversion.sublime-snippet
@@ -0,0 +1,18 @@
+<snippet>
+ <content><![CDATA[
+subversion "${1:name}" do
+ destination "${2:/opt/mysources/couch}"
+ repository "${3:http://svn.apache.org/repos/asf/couchdb/trunk}"
+ revision "${4:HEAD}"
+ user "${5:user}"
+ group "${6:test}"
+ action :sync
+end
+
+]]></content>
+ <!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
+ <tabTrigger>subversion</tabTrigger>
+ <!-- Optional: Set a scope to limit where the snippet will trigger -->
+ <scope>source.ruby</scope>
+ <description>subversion</description>
+</snippet>
Please sign in to comment.
Something went wrong with that request. Please try again.