Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add fabfile

  • Loading branch information...
commit 54f85bfda715f622db3c9d91585b81de3ac8df1b 1 parent 61b2bee
@yuriihabrusiev yuriihabrusiev authored
Showing with 27 additions and 0 deletions.
  1. +27 −0 fabfile.py
View
27 fabfile.py
@@ -0,0 +1,27 @@
+from fabric.api import *
+import os
+
+env.use_ssh_config = True
+env.hosts = ['ec2']
+
+def status():
+ local("git status -uno")
+
+def pull():
+ local("git submodule foreach git pull origin master")
+ local("git pull")
+
+def push():
+ local("git push")
+
+def qc():
+ local("git commit -am \"update\"")
+
+def qpush():
+ qc()
+ pull()
+ push()
+
+def ec2pull():
+ with cd("~"):
+ run("git pull")
Please sign in to comment.
Something went wrong with that request. Please try again.