Esempio n. 1
0
 def incr_push_version(self):
     """Called by /_bump to increment the push_version number"""
     # should probably apply locking here
     new_version = cherrypy.config['_push_version'] = util.push_version() + 1
     f = open(util.make_absolute('var/run/splunk/push-version.txt'), 'w')
     f.write(str(new_version))
     f.close()
     return new_version
Esempio n. 2
0
 def push_version(self, *a, **kw):
     return util.push_version(*a, **kw)