From 560274e2207d9561cd88e39a62adafa3d7231d72 Mon Sep 17 00:00:00 2001 From: rzaitov Date: Tue, 5 Nov 2013 16:26:36 +0400 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D0=B1=D0=B8=D0=BB=D0=B4=D0=B5=D1=80=20=D0=B4=D0=BB=D1=8F=20?= =?UTF-8?q?=D0=BA=D0=BE=D0=BC=D0=B0=D0=BD=D0=B4=D1=8B=20=D1=83=D1=81=D1=82?= =?UTF-8?q?=D0=B0=D0=BD=D0=BE=D0=B2=D0=BA=D0=B8=20=D0=BF=D1=80=D0=BE=D1=84?= =?UTF-8?q?=D0=B8=D0=BB=D1=8F=20=D0=BE=D0=B1=D0=B5=D1=81=D0=BF=D0=B5=D1=87?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../InstallProfileCommandBuilder.py | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 scripts/CommandBuilders/InstallProfileCommandBuilder.py 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