Commit 19a4266e authored by Ernesto Rodriguez Ortiz's avatar Ernesto Rodriguez Ortiz
Browse files

Change the way of made the import.

Remove the fabfile. from the locals imports, because the project
is in most cases cloned as a git submodule and named fabfile but
it could be named different.
parent 199fda46
Pipeline #1832 failed with stages
in 54 seconds
......@@ -17,12 +17,12 @@
#
from fabric.api import task, env, execute
from fabfile import core
from fabfile import docker
from fabfile import deploy
from fabfile import drush
from fabfile import patternlab
from fabfile import tests
from . import core
from . import docker
from . import deploy
from . import drush
from . import patternlab
from . import tests
@task
......
......@@ -24,11 +24,11 @@ from fabric.colors import green
from fabric.contrib.console import confirm
# Import default variables
from fabfile.default_vars import *
from .default_vars import *
# Import local variables' overrides, if they exist
if os.path.exists(os.path.join(os.path.dirname(__file__), 'local_vars.py')):
from fabfile.local_vars import *
from .local_vars import *
# Other env variables
......
......@@ -17,7 +17,7 @@
#
from fabric.api import task, run
from fabfile.core import *
from .core import *
@task
......
......@@ -18,7 +18,7 @@
from fabric.colors import red
from fabric.decorators import task
from fabfile.core import *
from .core import *
@task
......
......@@ -20,8 +20,8 @@ from datetime import datetime
from fabric.api import task
from fabric.colors import red
from fabfile.core import *
from fabfile.git import is_git_dirty
from .core import *
from .git import is_git_dirty
@task
......
......@@ -18,7 +18,7 @@
from fabric.colors import red, yellow
from fabric.decorators import task
from fabfile.core import *
from .core import *
@task()
......
......@@ -17,7 +17,7 @@
#
from fabric.api import task
from fabfile.core import *
from .core import *
@task
......
......@@ -31,7 +31,7 @@ def init():
db_pass = env.site_db_pass
db_host = env.site_db_host
db_name = env.site_db_name
base_url = env.site_hostname
base_url = 'localhost'
dk_run(service, user=env.local_userid,
cmd='cp core/phpunit.xml.dist core/phpunit.xml')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment