Skip to content

Instantly share code, notes, and snippets.

@gourneau
Created August 27, 2012 21:43
Show Gist options
  • Select an option

  • Save gourneau/3492540 to your computer and use it in GitHub Desktop.

Select an option

Save gourneau/3492540 to your computer and use it in GitHub Desktop.
fab delpy
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