Добавил билдер для команды установки профиля обеспечения
This commit is contained in:
parent
97c3e2a953
commit
560274e220
|
|
@ -0,0 +1,21 @@
|
|||
from commands.CopyCommand import CopyCommand
|
||||
from parser.InstallProfileParser import InstallProfileParser
|
||||
|
||||
|
||||
class InstallProfileCommandBuilder:
|
||||
def __init__(self):
|
||||
pass
|
||||
|
||||
def isInstallProfile(self, line):
|
||||
assert line is not None
|
||||
|
||||
return line.startswith('install profile')
|
||||
|
||||
def getCommandFor(self, line):
|
||||
assert line is not None
|
||||
|
||||
parser = InstallProfileParser()
|
||||
cpArgs = parser.parseLine(line)
|
||||
|
||||
command = CopyCommand(cpArgs)
|
||||
return command
|
||||
Loading…
Reference in New Issue