diff --git a/scripts/CommandBuilders/InstallProfileCommandBuilder.py b/scripts/CommandBuilders/InstallProfileCommandBuilder.py new file mode 100644 index 0000000..f477259 --- /dev/null +++ b/scripts/CommandBuilders/InstallProfileCommandBuilder.py @@ -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