Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fetch ssh username from environment variable.
  • Loading branch information
Yamashita Yuu committed Sep 15, 2011
1 parent a77c1c8 commit dc27a78
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fabfile.py
Expand Up @@ -26,7 +26,8 @@ def __getitem__(self, key):
self.__setitem__(key, val)
return val

env.user = 'deploy'
if env.user is None:
env.user = os.getenv('USER')
opt = LazyAttributeDictionary(env)
opt.prefix = (lambda: os.path.join('/u/apps/redis', re.findall('(?:[0-9]+\.)*[0-9]+', opt.archive)[0]))
opt.target = os.path.realpath('./target')
Expand Down

0 comments on commit dc27a78

Please sign in to comment.