Commit 085ceb8d authored by Adrian DC's avatar Adrian DC
Browse files

feat(gitlab)!: warn '.local: network:' as deprecated through issue

Issue: #286
---

Signed-off-by: default avatarAdrian DC <radian.dc@gmail.com>
parent ba3a54cf
Loading
Loading
Loading
Loading
+10 −0
Changes for src/parsers/gitlab.py: 10 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -23,6 +23,8 @@ from ..models.variables import VariablesParser
from ..package.bundle import Bundle
from ..package.updates import Updates
from ..package.version import Version
from ..prints.colors import Colors
from ..system.platform import Platform
from ..types.environment import Environment
from ..types.paths import Paths
from ..types.volumes import Volumes
@@ -561,6 +563,14 @@ class GitLab:
            # Parse local network
            if 'network' in local and not options.network:
                options.network = local['network']
                print(' ')
                print(f'  {Colors.YELLOW}‣ WARNING: '
                      f'{Colors.RED}.local: network: '
                      f'{Colors.BOLD}YAML configuration is deprecated, see: '
                      f'{Colors.GREEN}{Bundle.REPOSITORY}/-/issues/286'
                      f'{Colors.RESET}')
                Platform.flush()
                sleep(1)

            # Parse local no_console
            if 'no_console' in local and not options.no_console: