Permalink
Browse files

Allow overriding env.hosts via -H argument

  • Loading branch information...
1 parent 5776548 commit c15994651ac590fd07c234846fdcf5787dfce9ba @igorw committed Nov 15, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 fabfile.py
View
@@ -3,7 +3,8 @@
from fabric.contrib.project import rsync_project
from fabric.contrib.files import exists
-env.hosts = ['www-data@igor.io']
+if not env.hosts:
+ env.hosts = ['www-data@igor.io']
project_name = 'igor.io'
target_dir = '/var/www/'+project_name

0 comments on commit c159946

Please sign in to comment.