Created
August 27, 2012 21:43
-
-
Save gourneau/3492540 to your computer and use it in GitHub Desktop.
fab delpy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from __future__ import with_statement | |
| from fabric.api import local, settings, abort, run, cd, put, env, lcd | |
| from fabric.operations import local | |
| from fabric.contrib.console import confirm | |
| import os | |
| env.hosts = ['root@IP'] | |
| env.passwords = {'root@IP': 'PASSWORD'} | |
| def deploy(): | |
| package = put("/tmp/path") | |
| run("echo /tmp/path") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment