Commit graph

76 commits

Author SHA1 Message Date
Nico Schottelius
06a6bf1a0d debug object run
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-09-07 10:12:40 +02:00
Nico Schottelius
68a51da380 make debug more verbose
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-09-07 10:10:46 +02:00
Nico Schottelius
bd85d22a89 +debugging of __cdist_object_run
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-09-07 10:09:19 +02:00
Nico Schottelius
c3bf34bf3d add support for __cdist_debug={0,1,2}
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-09-07 10:07:04 +02:00
Nico Schottelius
74418c77e0 remove obsolete calls to set +e/-e
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-09-07 10:01:59 +02:00
Nico Schottelius
2b955b09bc move out all functions that do not only print a value from bin/cdist-config
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-09-05 10:01:56 +02:00
Nico Schottelius
a5564850ce -whitespaces at the end of lines
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-09-05 09:57:44 +02:00
Nico Schottelius
368ea87b89 call to __cdist_object_list
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-09-05 09:55:22 +02:00
Nico Schottelius
f7f2194b8f move __cdist_object_list into seperate file
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-09-05 09:54:20 +02:00
Nico Schottelius
bea7d5f828 also fix the function name :-)
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-09-05 09:51:38 +02:00
Nico Schottelius
4440838650 enable debugging before catching unset variables
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-09-05 09:49:00 +02:00
Nico Schottelius
86e30c7a8a re-rename variable, which got broken during core integration
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-09-05 09:47:58 +02:00
Nico Schottelius
cdc6f0d0c0 fix wrong call to __cdist_type_build_emulation
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-09-05 09:43:26 +02:00
Nico Schottelius
8dbe6f9c77 add prefix to variable name [once more]
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-08-10 16:20:24 +02:00
Nico Schottelius
8fe9e86254 add prefix to variable name
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-08-10 16:18:20 +02:00
Nico Schottelius
160d85dee1 only setup path when executing something, not generally
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-08-10 16:17:15 +02:00
Nico Schottelius
97e8c431af only build emulator binaries once
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-08-10 16:15:10 +02:00
Nico Schottelius
c9f4455677 less todo
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-08-10 16:11:08 +02:00
Nico Schottelius
b5b8bdc016 cleanup __cdist_dir
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-08-10 16:03:12 +02:00
Nico Schottelius
f8595793c1 cleanup caching function
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-08-10 16:00:06 +02:00
Nico Schottelius
c70bfb2e20 cleanup for correct working in function environment
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-08-10 15:55:55 +02:00
Nico Schottelius
49bad52715 remove debug
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-08-09 17:54:28 +02:00
Nico Schottelius
f6fac37f1d successfully run remote code!
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-08-09 17:50:38 +02:00
Nico Schottelius
5c35cad477 cleanups
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-08-09 17:39:21 +02:00
Nico Schottelius
8daa07acbf only check, do not run
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-08-09 17:38:59 +02:00
Nico Schottelius
bd39d5c185 finish __cdist_run_if_executable
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-08-09 17:23:05 +02:00
Nico Schottelius
f6d7a3e478 and give it a good name
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-08-09 17:18:49 +02:00
Nico Schottelius
07dc79410a add template for script that only runs if the file exists
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-08-09 17:18:35 +02:00
Nico Schottelius
2926532560 begin to merge __cdist_object_code_run and __cdist_code_run
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-08-09 17:14:38 +02:00
Nico Schottelius
7fab1c9dd9 use new wrapper __cdist_run_shell
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-08-02 12:17:48 +02:00
Nico Schottelius
39f1c8a242 add two new wrapper to run code and shellcode
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-08-02 12:15:59 +02:00
Nico Schottelius
815de25d9a continue corelib
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-07-28 10:54:18 +02:00
Nico Schottelius
0c00e4a0d2 no need for eval here
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-07-28 10:53:58 +02:00
Nico Schottelius
3a1bf25398 do not exit if a type does not have explorer :-)
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-07-27 01:27:05 +02:00
Nico Schottelius
6d3053a9bc fix type explorer: working again
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-07-27 01:22:54 +02:00
Nico Schottelius
8ad8ce162f -legacy
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-07-27 01:03:51 +02:00
Nico Schottelius
67ba0f7e9f do not use __global directly; manifest run works
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-07-27 00:14:04 +02:00
Nico Schottelius
41a0c1dc8a cleanup/continue
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-07-27 00:07:44 +02:00
Nico Schottelius
197fa583b5 finish global explorer part - works again!
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-07-27 00:06:24 +02:00
Nico Schottelius
666744209e running explorers works again
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-07-26 23:42:09 +02:00
Nico Schottelius
b06f6be5a6 begin to re-do __explorer and __global on remote side with functions
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-07-26 23:39:53 +02:00
Nico Schottelius
bb06a69bd5 cleanup
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-06-17 14:52:06 +02:00
Nico Schottelius
390d527515 global explorers work again
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-06-17 14:51:32 +02:00
Nico Schottelius
29e029a2eb replace __cdist_type_has_explorer with __cdist_dir_listing
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-06-17 14:37:36 +02:00
Nico Schottelius
a5b9713986 ++todo, use new function
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-06-17 14:28:45 +02:00
Nico Schottelius
83e75666c3 begin integration of type|global support
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-06-17 14:28:10 +02:00
Nico Schottelius
141b808603 do not use cdist-remote always
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-06-17 14:16:43 +02:00
Nico Schottelius
4fbe2a2676 begin work on __cdist_explorer_run
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-06-17 13:01:03 +02:00
Nico Schottelius
29450e5e99 add __cdist_explorer_run, which should replace __cdist_remote_explorer_run
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-06-17 12:49:02 +02:00
Nico Schottelius
c474317a6a migrate more stuff from cdist-config to core/
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-06-17 12:34:40 +02:00