Loading helpers.py +2 −3 Original line number Diff line number Diff line Loading @@ -58,16 +58,15 @@ else: env.site_drush_aliases = path.join(env.docker_site_root, 'sites/all/drush') def fab_run(role="local", cmd="", capture=False): def fab_run(role="local", cmd=""): """ Helper function to run the task locally or remotely :param role: the role to use for define the host :param cmd: the command to execute :param capture: if it should return or not the output of the command :return: the function to execute the command locally or remotely """ if role == "local": return local(cmd, capture) return local(cmd) else: return run(cmd) Loading Loading
helpers.py +2 −3 Original line number Diff line number Diff line Loading @@ -58,16 +58,15 @@ else: env.site_drush_aliases = path.join(env.docker_site_root, 'sites/all/drush') def fab_run(role="local", cmd="", capture=False): def fab_run(role="local", cmd=""): """ Helper function to run the task locally or remotely :param role: the role to use for define the host :param cmd: the command to execute :param capture: if it should return or not the output of the command :return: the function to execute the command locally or remotely """ if role == "local": return local(cmd, capture) return local(cmd) else: return run(cmd) Loading