Подключил команду создания бэкапа

This commit is contained in:
rzaitov 2013-11-01 13:33:52 +04:00
parent 6d62c15251
commit d623a717eb
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,4 @@
create backup for 'BuildSample'
inside 'BuildSample/BuildSample.sln' remove NotCompileApp project
clean 'BuildSample/BuildSample.sln' for 'Release|iPhone'
build 'BuildSample/BuildSample.sln' for 'Release|iPhone'

View File

@ -1,4 +1,5 @@
from CommandBuilders.CleanBuildCommandBuilder import CleanBuildCommandBuilder
from CommandBuilders.CreateBackupCommandBuilder import CreateBackupCommandBuilder
from CommandBuilders.RemoveProjectCommandBuilder import RemoveProjectCommandBuilder
from CommandBuilders.ShCommandBuilder import ShCommandBuilder
@ -9,6 +10,7 @@ class StepsRunner:
self.shCommandBuilder = ShCommandBuilder()
self.removeProjectBuilder = RemoveProjectCommandBuilder()
self.createBackupBuilder = CreateBackupCommandBuilder()
buildUtilPath = config['build_tool']
self.cleanBuilder = CleanBuildCommandBuilder(buildUtilPath, 'clean')
@ -41,6 +43,9 @@ class StepsRunner:
elif self.buildBuilder.isCleanBuild(line):
cmd = self.buildBuilder.getCommandFor(line)
cmd.execute()
elif self.createBackupBuilder.isCreateBackup(line):
cmd = self.createBackupBuilder.getCommandFor(line)
cmd.execute()
else:
msg = "unrecognised step. Line: '{0}'".format(line)
raise Exception(msg)