Add files conf subdirectory for static files.

This commit is contained in:
Darko Poljak 2016-06-11 12:02:13 +02:00
commit 0049b62cca
9 changed files with 26 additions and 1 deletions

View file

@ -50,6 +50,7 @@ gencode-local
__object_id: the objects id
__object_fq: full qualified object id, iow: $type.name + / + object_id
__type: full qualified path to the type's dir
__files: full qualified path to the files dir
returns: string containing the generated code or None
@ -63,6 +64,7 @@ gencode-remote
__object_id: the objects id
__object_fq: full qualified object id, iow: $type.name + / + object_id
__type: full qualified path to the type's dir
__files: full qualified path to the files dir
returns: string containing the generated code or None
@ -91,6 +93,7 @@ class Code(object):
self.env = {
'__target_host': self.target_host,
'__global': self.local.base_path,
'__files': self.local.files_path,
}
def _run_gencode(self, cdist_object, which):

View file

@ -36,6 +36,7 @@ common:
__cdist_manifest: full qualified path of the manifest == script
__cdist_type_base_path: full qualified path to the directory where types are defined for use in type emulator
== local.type_path
__files: full qualified path to the files dir
initial manifest is:
script: full qualified path to the initial manifest
@ -96,6 +97,7 @@ class Manifest(object):
'__cdist_type_base_path': self.local.type_path, # for use in type emulator
'__global': self.local.base_path,
'__target_host': self.target_host,
'__files': self.local.files_path,
}
if self.log.getEffectiveLevel() == logging.DEBUG:
self.env.update({'__cdist_debug': "yes" })