예제 #1
0
파일: __init__.py 프로젝트: pombredanne/law
 def get_source_target(self):
     # when self.source_path is set, return a target around it
     # otherwise assume self.requires() returns a task with a single local target
     if self.source_path not in (NO_STR, None):
         return LocalFileTarget(self.source_path)
     else:
         return self.input()
예제 #2
0
파일: __init__.py 프로젝트: yrath/law
 def output(self):
     repo_base = os.path.basename(self.get_repo_path())
     return LocalFileTarget("{}_{}.tgz".format(repo_base, self.checksum))
예제 #3
0
 def output(self):
     return LocalFileTarget("{}.tgz".format(
         os.path.basename(self.cmssw_path)))
예제 #4
0
 def output(self):
     return LocalFileTarget("{}_{}.tgz".format(os.path.basename(self.repo_path), self.checksum))