Daniel Heule
|
64f4cff3cb
|
Shell selection support via ENV
CDIST_LOCAL_SHELL for local scripts
CDIST_REMOTE_SHELL for remote scripts
|
11 years ago |
Nico Schottelius
|
c130bdf534
|
if hostname is an absolute path, strip alway leading slash
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
|
11 years ago |
Nico Schottelius
|
90896a9e06
|
update environment with messages environment
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
|
11 years ago |
Nico Schottelius
|
7cf0d60b08
|
catch permissionserror when deleting old cache
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
|
11 years ago |
Nico Schottelius
|
2f842d56eb
|
integrate messaging into gencode, manifest
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
|
11 years ago |
Nico Schottelius
|
ac5fa7cd64
|
integrate messaging into cdist
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
|
11 years ago |
Nico Schottelius
|
a76d8bb517
|
:%s/self.out_path/self.base_path/g
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
|
12 years ago |
Nico Schottelius
|
b3cf339d06
|
fallback to sys.argv[0] by default
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
|
12 years ago |
Nico Schottelius
|
cd8695d3eb
|
move create_files_dirs more to up - it is similar to init()
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
|
12 years ago |
Nico Schottelius
|
d1708c78b6
|
refactoring
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
|
12 years ago |
Nico Schottelius
|
eaf1721212
|
begin to migrate to '--output-base-path', shrink context
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
|
12 years ago |
Nico Schottelius
|
f79727559a
|
++logs and migrate context -> local
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
|
12 years ago |
Nico Schottelius
|
49d9f1f475
|
support relative paths in -c argument
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
|
12 years ago |
Nico Schottelius
|
263a8a73a7
|
minor cleanups
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
|
12 years ago |
Nico Schottelius
|
79fea569b9
|
some shell related cleanups
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
|
12 years ago |
Nico Schottelius
|
9326adf34b
|
fix refactor error
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
|
12 years ago |
Nico Schottelius
|
14a3bf7262
|
move save_cache into local
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
|
12 years ago |
Steven Armstrong
|
56b6c95ed4
|
implement conf-dir from CDIST_PATH environment variable
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
12 years ago |
Nico Schottelius
|
528901bdee
|
update a lot of tests for new exec.local
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
|
12 years ago |
Nico Schottelius
|
af24165367
|
introduce home_dir as a property
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
|
12 years ago |
Nico Schottelius
|
69a3844332
|
fix some tests and fix home_dir lookup
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
|
12 years ago |
Nico Schottelius
|
6eddaaf090
|
rename parameter correctly to add_conf_dirs
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
|
12 years ago |
Nico Schottelius
|
6771a13758
|
pass exec_path from context to local, making it obsolete to manually add the argument to the _link_types_for_emulator
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
|
12 years ago |
Nico Schottelius
|
1d1149deab
|
+debug
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
|
12 years ago |
Nico Schottelius
|
e7be0cceab
|
big change for pre4
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
|
12 years ago |
Nico Schottelius
|
e41aae041a
|
fix cache_dir syntax error
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
|
12 years ago |
Nico Schottelius
|
cbe95b18e6
|
rename function to reveal new task: create_files_dirs
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
|
12 years ago |
Nico Schottelius
|
1e264afa63
|
refactor code to allow multiple directories to be passed in
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
|
12 years ago |
Nico Schottelius
|
6ece8a97c7
|
use obsolete lib path
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
|
12 years ago |
Nico Schottelius
|
c9f728e073
|
lib/cdist => cdist (pypi)
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
|
12 years ago |
Nico Schottelius
|
612fb4cb7b
|
fix type and add fixme
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
|
13 years ago |
Nico Schottelius
|
1b8b54f84f
|
use os.umask locally
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
|
13 years ago |
Nico Schottelius
|
64bb1741aa
|
cleanup local
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
|
13 years ago |
Nico Schottelius
|
ab48a72ce1
|
return results from run()
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
|
13 years ago |
Nico Schottelius
|
a4882e7e30
|
remove useless script printing and reuse run() method
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
|
13 years ago |
Nico Schottelius
|
91ecfa7d3f
|
back to 100% tests working
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
|
13 years ago |
Steven Armstrong
|
bf13325303
|
if env is not given, os.environ is used -> need to also do that
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
13 years ago |
Steven Armstrong
|
98dec302a6
|
export __target_host for use in __remote_{copy,exec} scripts
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 |
Nico Schottelius
|
3883fe4247
|
raise cdist error instead of oserror
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
|
13 years ago |
Nico Schottelius
|
3f76f03239
|
return full command only in local mode
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
|
13 years ago |
Steven Armstrong
|
b5b7d8e727
|
add missing return_output=True argument when fetching script content
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
13 years ago |
Nico Schottelius
|
9223663136
|
CLEANUP: return flat name, not python list to user
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
|
13 years ago |
Steven Armstrong
|
ab1d3d16f1
|
implement: dont return command output by default
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
13 years ago |
Steven Armstrong
|
99ffda3cdf
|
always create global_explorer_out_path
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
13 years ago |
Steven Armstrong
|
12784c8bd8
|
+FIXME
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
13 years ago |
Steven Armstrong
|
8545221787
|
consistent naming: /object_base_path/object_path/
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
13 years ago |
Steven Armstrong
|
1d85d10f4f
|
consistent naming: /type_base_path/type_path/
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
13 years ago |
Steven Armstrong
|
a254e1f31e
|
return output of command execution as string instead of bytestring
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
13 years ago |
Steven Armstrong
|
d2878e931e
|
/Remote/Local/
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
13 years ago |