Commit 7bf32a18 authored by 20th (Victor Nikulshin)'s avatar 20th (Victor Nikulshin)
Browse files

Sort module imports by type and name

parent aeb7befe
from fabric.api import task, env, execute
from fabric.colors import red
from fabric.contrib.console import confirm
import behat
import deploy
import docker
from deploy import *
import drush
import behat
import patternlab
from .environments import e
from fabric.api import task, env, execute
from .environments import e
from fabric.colors import red
from fabric.contrib.console import confirm
@task
def init():
......
from __future__ import unicode_literals
from fabric.api import task, roles, env
from fabric.colors import green
import helpers as h
@task
@roles('docker')
def init(rewrite=True):
......
from __future__ import unicode_literals
from fabric.api import task, roles, env
from fabric.colors import red, green
import helpers as h
@task
@roles('docker')
def db_import(filename, role='docker'):
......
......@@ -17,13 +17,15 @@
#
from __future__ import unicode_literals
import glob
import os
from fabric.api import task, env, local, run
from fabric.colors import green
from fabric.utils import abort
import helpers as h
import os
import glob
def _set_hosts(environment):
......
from __future__ import unicode_literals
from fabric.api import task, roles, env, local, run
from fabric.colors import red, green
import helpers as h
###########################################################
# Helper functions to manage docker images and containers #
###########################################################
......
......@@ -17,15 +17,15 @@
#
from __future__ import unicode_literals
from datetime import datetime
from fabric.api import task, roles, env
from fabric.contrib.console import confirm
from fabric.colors import red, green
from fabric.contrib.console import confirm
from fabric.utils import abort
from datetime import datetime
import helpers as h
import core as c
import helpers as h
from git import isGitDirty
......
......@@ -2,6 +2,7 @@ from importlib import import_module
from fabric.utils import abort
def e(name):
"""
Set your environment before running other commands
......
import re
import time
from os import path
from fabric.api import task, env, execute
from fabric.api import task, env, local
from fabric.colors import red, green, yellow
from fabric.api import task, env, execute
from fabric.contrib.console import confirm
from .environments import e
import helpers as h
import time
import re
from .environments import e
@task(alias='is_dirty')
def check_status():
......
......@@ -17,19 +17,18 @@
#
from __future__ import unicode_literals
import socket
from getpass import getuser
from fabric.api import lcd, cd, roles, local, run
from fabric.colors import green
from fabric.contrib.console import confirm
from fabric.contrib.files import exists
# Import socket to find the localhost IP address
import socket
# Import default variables
from default_vars import *
# Import local variables' overrides, if they exist
if path.exists(path.join(path.dirname(__file__), 'local_vars.py')):
from local_vars import *
......
from __future__ import unicode_literals
from fabric.api import task, roles, env
from fabric.colors import green
import helpers as h
@task
@roles('local')
def build():
......
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