Commits

Thejesh GN committed 971ecbc

Latest changes.

Comments (0)

Files changed (1)

 from fabric.contrib.console import confirm
 from fabric.colors import green
 from fabric.contrib.files import sed
-
+from fabric.operations import prompt
 def publish(file):
     local('s3cmd put --acl-public '+file+' s3://text.thejeshgn.com/'+file)
     print(green("Published! - check http://text.thejeshgn.com/"+file))
  
 def rename(file):
     return
-    
+   
+def backup():
+    commit_msg = prompt('backup message?', default='Latest changes.')
+    local('hg commit -m "'+commit_msg+'"')
+    local('hg push')
+
 def verify(file):
     local('gpg --verify '+file)