Steven Armstrong
|
1729516414
|
allow .cdist (OBJECT_MARKER) inside file names but not as _the_ file/folder name
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
13 years ago |
Steven Armstrong
|
b92ea62f72
|
export OBJECT_MARKER for use in tests
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
13 years ago |
Nico Schottelius
|
c7d0d581b1
|
we pass base_path, not object_path (clearification)
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
|
13 years ago |
Steven Armstrong
|
792ddf0a5b
|
add utility method to join object name from type and object_id
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
13 years ago |
Steven Armstrong
|
afba5e9280
|
add utilitly method to split an object name into its type name and object_id
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
13 years ago |
Steven Armstrong
|
70ee0f1681
|
implement __lt__ to support sorting a list of objects
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
13 years ago |
Steven Armstrong
|
bf1b995908
|
implement __lt__ and __eq__ to support sorting a list of types
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
13 years ago |
Steven Armstrong
|
6223402b9e
|
bugfix: only attempt to transfer object parameters it their are any
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
13 years ago |
Steven Armstrong
|
60c4e21981
|
implement Explorer run_global_explorers and run_type_explorers
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
13 years ago |
Steven Armstrong
|
d6cf85e6f6
|
implement /__object_fq/__object_name/
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
13 years ago |
Steven Armstrong
|
dc3ed07153
|
/__debug/__cdist_debug/
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
13 years ago |
Steven Armstrong
|
ff2192f6de
|
remove legacy attributes: ran, prepared
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
13 years ago |
Steven Armstrong
|
022b17d700
|
implement Object state
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
13 years ago |
Steven Armstrong
|
d427e3f585
|
__self should not contain .cdist
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
13 years ago |
Steven Armstrong
|
030d5919e6
|
raise exception if object_id contains .cdist
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
13 years ago |
Steven Armstrong
|
e58b52592b
|
add missing environment variable __self
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
13 years ago |
Nico Schottelius
|
7bb81e2f18
|
Whitespace does not not weigh anything - remove - sed -i 's/ *$//g' *py */*py
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
|
13 years ago |
Steven Armstrong
|
4975b4643a
|
--typo
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
13 years ago |
Steven Armstrong
|
95a858c350
|
implement: fail if type does not exist on the filesystem
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
13 years ago |
Steven Armstrong
|
a0a4a7382d
|
import NoSuchTypeError into cdist.core namespace
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
13 years ago |
Nico Schottelius
|
32b2c49d32
|
found 2 bugs in transfer_code_remote
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
|
13 years ago |
Nico Schottelius
|
053903bb69
|
use instance logger in explorer
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
|
13 years ago |
Nico Schottelius
|
00a1f1eeb9
|
++ more host prefixing log code
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
|
13 years ago |
Nico Schottelius
|
a415cc4b91
|
add correct logger in manifest
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
|
13 years ago |
Steven Armstrong
|
889e6c23cb
|
Explorer tracks which type explorers have been transferred instad of Type
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
13 years ago |
Nico Schottelius
|
0d441eb378
|
report info when running initial manifest (it may take some time)
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
|
13 years ago |
Nico Schottelius
|
1e31721ad9
|
BUGFIX: remote path for explorer in __object variable
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
|
13 years ago |
Steven Armstrong
|
325a13088c
|
implement that type explorers are only transfered once
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
13 years ago |
Steven Armstrong
|
814b46f0c7
|
/transfered_explorers/explorers_transferred/
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
13 years ago |
Nico Schottelius
|
ba59339f67
|
fixup code and manifest
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
|
13 years ago |
Nico Schottelius
|
f80520090b
|
remove obsolete global_explorer
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
|
13 years ago |
Nico Schottelius
|
02934055e7
|
make debug test work for explorer
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
|
13 years ago |
Nico Schottelius
|
bc85237eaa
|
make code setup debug env
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
|
13 years ago |
Steven Armstrong
|
f723bede10
|
no longer return output from run_*_manifest
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
13 years ago |
Steven Armstrong
|
c30e112e4a
|
explorer: make tests pass again
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
13 years ago |
Steven Armstrong
|
c9bb105518
|
run_code* no longer returns output
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
13 years ago |
Steven Armstrong
|
fb705adc5d
|
simplify object_id error handling
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
13 years ago |
Steven Armstrong
|
93db0b58d6
|
append type to error message
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
13 years ago |
Steven Armstrong
|
f76a5abf6f
|
/./,/
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
13 years ago |
Steven Armstrong
|
1c84e423d1
|
include type name in error message
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
13 years ago |
Steven Armstrong
|
d346364544
|
better error message
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
13 years ago |
Steven Armstrong
|
3e3919d15f
|
implement fail if object_id starts with /
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
13 years ago |
Steven Armstrong
|
b122b53d73
|
implement Object object_from_name
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
13 years ago |
Steven Armstrong
|
a8733c5b9b
|
make base_path public
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
13 years ago |
Steven Armstrong
|
08d98ac389
|
only list type explorers if there are any; only transfer type explorers if there are ant
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
13 years ago |
Steven Armstrong
|
d02b8d9d30
|
fix imports
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
13 years ago |
Steven Armstrong
|
1f44617133
|
use remote paths when executing on remote side
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
13 years ago |
Steven Armstrong
|
773d325afa
|
only run gencode scripts if they exist
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
13 years ago |
Steven Armstrong
|
6dada17509
|
only run type manifest if it exists
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
13 years ago |
Steven Armstrong
|
74300ab38e
|
set __cdist_manifest for use in type emulator
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
13 years ago |