# Path: moa/sysConf.py
# USERCONFIGFILE = os.path.join(os.path.expanduser('~'),
#                               '.config', 'moa', 'config')
# SYSCONFIGFILE = os.path.join('etc', 'moa', 'config')
# def _interpret_var(v):
#     def __init__(self):
#     def getUser(self):
#     def saveUser(self, conf):
#     def getVersion(self):
# class SysConf(Yaco.Yaco):


import textwrap
import moa.ui
import moa.utils
import moa.args
import moa.template
from moa.sysConf import sysConf

# Copyright 2009-2011 Mark Fiers
# The New Zealand Institute for Plant & Food Research
#
# This file is part of Moa - http://github.com/mfiers/Moa
#
# Licensed under the GPL license (see 'COPYING')
#
"""
**template** - information on templates
-------------------------------------------

"""




@moa.args.needsJob
@moa.args.command
def refresh(job, args):
    """
    Refresh the template

    Reload the template from the original repository.
    """
    job.refreshTemplate()


def hook_git_finish_refresh():

# Path: moa/sysConf.py
# USERCONFIGFILE = os.path.join(os.path.expanduser('~'),
#                               '.config', 'moa', 'config')
# SYSCONFIGFILE = os.path.join('etc', 'moa', 'config')
# def _interpret_var(v):
#     def __init__(self):
#     def getUser(self):
#     def saveUser(self, conf):
#     def getVersion(self):
# class SysConf(Yaco.Yaco):


# Path: moa/plugin/system/template.py
import textwrap
import moa.ui
import moa.utils
import moa.args
import moa.template
from moa.sysConf import sysConf


# Copyright 2009-2011 Mark Fiers
# The New Zealand Institute for Plant & Food Research
#
# This file is part of Moa - http://github.com/mfiers/Moa
#
# Licensed under the GPL license (see 'COPYING')
#
"""
**template** - information on templates
-------------------------------------------

"""




@moa.args.needsJob
@moa.args.command
def refresh(job, args):
    """
    Refresh the template

    Reload the template from the original repository.
    """
    job.refreshTemplate()


def hook_git_finish_refresh():

    sysConf.git.commitJob(sysConf.job, 'moa refresh (%s)' % sysConf.job.wd)