Revision 27241
Added by Sandro La Bruzzo over 10 years ago
DSL_Creator.py | ||
---|---|---|
7 | 7 |
|
8 | 8 |
class DeployModule(object): |
9 | 9 |
def __init__(self, name=None, type_source=None, version=None, url=None, mail=None, deploy_repository=None, |
10 |
deploy_repository_url=None, goal=None, dict_values=None): |
|
10 |
deploy_repository_url=None, goal=None, dict_values=None, cron=None):
|
|
11 | 11 |
if not dict_values: |
12 | 12 |
self.name = name |
13 | 13 |
self.type_source = type_source |
... | ... | |
17 | 17 |
self.goal = goal |
18 | 18 |
self.deploy_repository = deploy_repository |
19 | 19 |
self.deploy_repository_url = deploy_repository_url |
20 |
self.cron = cron |
|
20 | 21 |
else: |
21 | 22 |
self.name = dict_values['name'] |
22 | 23 |
self.type_source = dict_values['type_source'] |
... | ... | |
26 | 27 |
self.goal = dict_values['goal'] |
27 | 28 |
self.deploy_repository = dict_values['deploy_repository'] |
28 | 29 |
self.deploy_repository_url = dict_values['deploy_repository_url'] |
30 |
if 'cron' in dict_values: |
|
31 |
self.cron = dict_values['cron'] |
|
29 | 32 |
|
30 | 33 |
|
31 | 34 |
if os.path.isdir('/tmp/DSL40'): |
... | ... | |
56 | 59 |
f.write("\n") |
57 | 60 |
except Exception as e: |
58 | 61 |
print "NOT FOUND IN %s "% (name.split('/')[-1]) |
62 |
print e |
|
59 | 63 |
|
60 | 64 |
f.write("\n") |
61 | 65 |
f.write("</modules>") |
Also available in: Unified diff
added cron feature