BuildScript/scripts/TouchinBuild/CommandBuilders/InstallProfileCommandBuilde...

22 lines
460 B
Python

from commands.CopyCommand import CopyCommand
from parsers.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