Nico Schottelius
c9f728e073
lib/cdist => cdist (pypi)
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
12 years ago
Steven Armstrong
36513997d9
implement multiple parameters based on https://github.com/telmich/cdist/pull/71 by Sébastien Gross
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
13 years ago
Steven Armstrong
06649d3478
new feature: capture and forward stdin to types
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
13 years ago
Steven Armstrong
7d61b77708
fix autorequire dependency handling
...
- inherit explicit requirements that the user defined himself
- but _not_ implicit requirements that cdist added for autorequire
Changes:
- added new .autorequire property to CdistObject to keep track of implicit autorequire dependencies
- Emulator appends implicit requirements to this .autorequire property
- DependencyResolver preprocess these .autorequire properties before resolving normal dependencies
- refactored and documented DependencyResolver so it's clearer what happens and easier to use from tests
- update test cases to match new DependencyResolver behaviour
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
13 years ago
Steven Armstrong
2ff286cf1d
inherit dependencies from defining object when setting up implicit dependencies through autorequire
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
13 years ago
Steven Armstrong
0760ff3c94
implement boolean parameters, forgotten files ;-)
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
13 years ago
Nico Schottelius
46e6ea4308
print name, not object (user does not need to see python way of things)
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
13 years ago
Nico Schottelius
be67059725
print name, not object (user does not need to see python way of things)
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
13 years ago
Nico Schottelius
861b13ffe4
record sanitised object, not the user supplied one, as requirement
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
13 years ago
Nico Schottelius
0861276436
remove obsolete MissingEnvironmentVariableError()
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
13 years ago
Nico Schottelius
2d61070023
remove old IllegalRequirementError exception
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
13 years ago
Nico Schottelius
eadb62e67a
minimal beaufity
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
13 years ago
Nico Schottelius
dcd3bcee32
use the great method object_from_name() in emulator
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
13 years ago
Nico Schottelius
754aba1a15
record source in setup_object not in requirements
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
13 years ago
Nico Schottelius
ab565dc3d9
cleanup / emulator
...
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
Nico Schottelius
4be37f6e93
begin rename Object => CdistObject
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
13 years ago
Steven Armstrong
252ae5ea56
new feature: dependency resolver
13 years ago
Steven Armstrong
68f66af21a
implement: accept parameters with dashes
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
13 years ago
Steven Armstrong
d0123acc2a
implement singleton as requirement
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
13 years ago
Steven Armstrong
c58ec7e4ef
prevent circular dependencies
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
13 years ago
Steven Armstrong
7d0238682b
implement autorequire in emulator
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
13 years ago
Steven Armstrong
8f306a7484
/__debug/__cdist_debug/
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
13 years ago
Steven Armstrong
2246b7496b
fails if requirement has illegal object_id
...
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
e9a0aa1863
fail if requirements type does not exist
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
13 years ago
Nico Schottelius
03ea7787d2
+self
...
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
13 years ago
Nico Schottelius
3c31b4f9a3
and finally also adjust the requirement itself
...
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
13 years ago
Nico Schottelius
5a72223ae3
strip away / in emulator in requirements
...
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
13 years ago
Nico Schottelius
ee1c568c7b
almost finish correct requirement loading, but need sleep
...
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
13 years ago
Nico Schottelius
0dd38f75c2
remove leading / from object_id of requirement
...
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
13 years ago
Nico Schottelius
a7a3ee6f19
adjust prefix
...
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
13 years ago
Nico Schottelius
e002710c4c
rewrite emulator to class based approach for better logging
...
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
13 years ago
Steven Armstrong
d83de25774
Stripp leading slash from requirements object_id
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
13 years ago
Steven Armstrong
1e622f9128
raise IllegalRequirementError if requirements object_id starts with a /
...
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
f285d9e64e
emulator: fail if object_id of requirement starts with slash
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
13 years ago
Steven Armstrong
bcde8683af
rewrite emulator to use Type and Object classes
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
13 years ago
Nico Schottelius
72a2543470
introduce install support in emulator
...
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
13 years ago
Nico Schottelius
94cca2e537
prepend hostname in emulator as well
...
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
13 years ago
Nico Schottelius
c6e8f163f5
use variable require, not __require for defining
...
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
13 years ago
Nico Schottelius
e8c9b10227
also use path in emulator
...
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
13 years ago
Nico Schottelius
03f5e1b456
fix emulator and cdist module
...
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
13 years ago
Nico Schottelius
149a605b16
use more path, move type -> cdist_type
...
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
13 years ago
Nico Schottelius
2aa0a316e6
use _path not _dir in emulator
...
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
13 years ago
Thomas Reifenberger
9045b30136
fix multiple requirements
...
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
13 years ago
Nico Schottelius
ca5361afc1
remote cdist.path, use base_dir
...
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
13 years ago
Nico Schottelius
b936fea3e5
link to emulator in config_install and remove it from emulator
...
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
13 years ago
Nico Schottelius
e26f612012
move file_to_list to cdist
...
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
13 years ago
Nico Schottelius
9b5b94577f
add debug
...
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
13 years ago