Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Drupal
drupalizer
Commits
6d51163d
Commit
6d51163d
authored
Apr 15, 2016
by
Ernesto Rodriguez Ortiz
Browse files
Remove not used import and change the name of the migration scripts
parent
f669a4a1
Changes
2
Hide whitespace changes
Inline
Side-by-side
deploy.py
View file @
6d51163d
...
...
@@ -153,7 +153,7 @@ def _aegir_remove_platform_without_sites(target, environment, platform):
:param platform The patern name of the platform in wich the sites will be migrated on
"""
aegir_path
=
target
.
get
(
'aegir_path'
)
run
(
'{}/remove-platform
-wihout-site
s {} {}'
.
format
(
aegir_path
,
environment
,
platform
))
run
(
'{}/remove-platforms {} {}'
.
format
(
aegir_path
,
environment
,
platform
))
@
task
...
...
@@ -217,7 +217,7 @@ def migrate(environment):
if
_is_aegir_deployment
(
target
):
# Deploy to Aegir server.
platform
=
_aegir_platform_name
(
target
,
environment
)
if
env
.
get
(
'migrate'
,
"false"
)
==
"true"
:
if
env
.
get
(
'migrate
_sites
'
,
"false"
)
==
"true"
:
_aegir_migrate_sites
(
target
,
environment
,
platform
)
if
env
.
get
(
'remove_platforms'
,
"false"
)
==
"true"
:
...
...
helpers.py
View file @
6d51163d
...
...
@@ -26,11 +26,6 @@ from fabric.contrib.files import exists
# Import socket to find the localhost IP address
import
socket
import
os
# Import datetime
from
datetime
import
datetime
# Import default variables
from
default_vars
import
*
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment