Add files conf subdirectory for static files.
This commit is contained in:
parent
e3636e6ffc
commit
0049b62cca
9 changed files with 26 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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" })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue