This repository has been archived on 2021-03-01. You can view files and clone it, but cannot push or open issues or pull requests.
kaneton/export/modules/svnexport.py
Mercier Pierre-Olivier fee4dd4e6d Initial snapshot
2013-02-11 22:04:30 +01:00

47 lines
1.2 KiB
Python

#
# ---------- header -----------------------------------------------------------
#
# project kaneton
#
# license kaneton
#
# file /home/mycure/kaneton/export/modules/svnexport.py
#
# created francois goudal [sat oct 25 20:57:38 2008]
# updated julien quintard [sat feb 5 11:14:04 2011]
#
#
# ---------- imports ----------------------------------------------------------
#
import env
#
# ---------- functions --------------------------------------------------------
#
#
# module_init()
#
# called by export.py on startup, to discover the available actions
# returns an array of strings, the index 0 is the action name, and the
# others are the parameters required in the YAML file.
#
def module_init():
return ['svnexport']
#
# module_action(export_dir, arg)
#
# called by export.py when required by the YAML file.
# this function does the job of the action.
# arg contains the parameters required as specified in the module_init return
# value.
#
def module_action(export_dir, arg):
env.display(env.HEADER_OK, 'action svnexport', env.OPTION_NONE)
env.launch("svn", "export svn+ssh://subversion@repositories.passeism.org/kaneton " + export_dir,env.OPTION_NONE)
return 0