Commits

sodas tsai committed c1d7ee1

Refine code

Comments (0)

Files changed (2)

beanstalk/tasks/__init__.py

-from fabric.api import task
 from beanstalk.tasks import app, server, users, info, utils, daemon
+from beanstalk.decorators import beanstalk_task
 
-
-settings = task(alias='settings')(utils.load_role_settings)
+settings = beanstalk_task(alias='settings')(utils.load_role_settings)

beanstalk/tasks/app.py

     if 'web_servers' not in env.roledefs:
         env.roledefs['web_servers'] = list(set(user_hosts))
     else:
-        env.roledefs.update({
-            'web_servers': list(set(env.roledefs['web_servers'] + user_hosts))
-        })
+        env.roledefs.update({'web_servers': list(set(env.roledefs['web_servers'] + user_hosts))})
 
 
 @beanstalk_task(beanstalk_role='app')