2020-08-18 13:56:58 +00:00
|
|
|
# local
|
2020-08-19 15:21:38 +00:00
|
|
|
from ..subcommand import ProjectCommand
|
2020-08-18 13:56:58 +00:00
|
|
|
|
|
|
|
|
|
|
|
class DisableCommand(ProjectCommand):
|
|
|
|
"""kiwi disable"""
|
|
|
|
|
|
|
|
def __init__(self):
|
|
|
|
super().__init__(
|
|
|
|
'disable', num_projects='+',
|
2020-08-19 14:10:56 +00:00
|
|
|
action="Disabling",
|
2020-08-20 12:40:49 +00:00
|
|
|
description="Disable project(s) in this instance"
|
2020-08-18 13:56:58 +00:00
|
|
|
)
|
|
|
|
|
2020-08-19 14:10:56 +00:00
|
|
|
def _run_projects(self, runner, args, projects):
|
2020-08-19 09:58:13 +00:00
|
|
|
return all([
|
|
|
|
project.disable()
|
2020-08-19 14:10:56 +00:00
|
|
|
for project in projects
|
2020-08-19 09:58:13 +00:00
|
|
|
])
|