Добавил билдер для команды установки профиля обеспечения

This commit is contained in:
rzaitov 2013-11-05 16:26:36 +04:00
parent 97c3e2a953
commit 560274e220
1 changed files with 21 additions and 0 deletions

View File

@ -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