Commit graph

2444 commits

Author SHA1 Message Date
Nico Schottelius
588731661e use context in explorer
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-11 16:49:50 +02:00
Nico Schottelius
ba43212681 Merge branch 'master' of git://github.com/asteven/cdist 2011-10-11 16:46:01 +02:00
Nico Schottelius
73f1190d55 cleanup context internally
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-11 16:45:45 +02:00
Nico Schottelius
dbd31252a8 remove CODE_HEADER
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-11 16:45:36 +02:00
Nico Schottelius
2ec3753d94 cleanup context in main
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-11 16:45:18 +02:00
Steven Armstrong
8543f3ed58 rename to match others
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-11 16:41:44 +02:00
Steven Armstrong
1c73fb1288 -- unused imports
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-11 16:41:01 +02:00
Nico Schottelius
29bb5f383c use context in cdist/bin
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-11 16:39:18 +02:00
Steven Armstrong
b3c0a5912f Merge remote-tracking branch 'telmich/master' 2011-10-11 16:32:11 +02:00
Steven Armstrong
8ef0c18da0 update test suite to match new code
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-11 16:31:43 +02:00
Steven Armstrong
a692e551c0 use new logger
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-11 16:31:05 +02:00
Nico Schottelius
d690fb30cb add base path and exec path to test main
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-11 16:26:33 +02:00
Nico Schottelius
dc21405583 use target host as key for logger
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-11 16:26:01 +02:00
Nico Schottelius
b8a3cf2f49 remove manifest code from config_install
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-11 16:25:48 +02:00
Nico Schottelius
c28fd5bbfd add template for manifest for sar / steven to have fun
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-11 16:22:44 +02:00
Nico Schottelius
4c29d9839b configure logger based on hostname
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-11 16:19:27 +02:00
Steven Armstrong
6cbcd1132e Merge remote-tracking branch 'telmich/master' 2011-10-11 16:06:34 +02:00
Steven Armstrong
e437cd90d6 rewrite exec
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-11 16:06:21 +02:00
Nico Schottelius
d4f6328eef finish context
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-11 16:05:32 +02:00
Nico Schottelius
0397e77a3e cleanup context
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-11 16:04:09 +02:00
Nico Schottelius
5bd23d0605 template for context (REDO)
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-11 15:59:26 +02:00
Steven Armstrong
4e00e2573e Merge remote-tracking branch 'telmich/master' 2011-10-11 15:54:42 +02:00
Nico Schottelius
8a327b6bc7 cleanup explorer
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-11 15:50:50 +02:00
Nico Schottelius
d9d9e6bff6 move back transfer stuff to exec
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-11 15:47:32 +02:00
Steven Armstrong
d03f23129b test and fixtures for Object explorers
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-11 15:45:10 +02:00
Steven Armstrong
2c6c9bcab5 Object handles its explorers itself
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-11 15:44:31 +02:00
Nico Schottelius
5393471841 add template for new explorer type
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-11 15:25:29 +02:00
Steven Armstrong
fea602a2c7 Merge remote-tracking branch 'telmich/master' 2011-10-11 14:22:41 +02:00
Steven Armstrong
45ff8f727f tests for Object source as list
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-11 14:22:29 +02:00
Steven Armstrong
d7adff4e21 silently ignore error when deleting nonexistent file
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-11 14:21:47 +02:00
Nico Schottelius
c674d4a94c distribute tests
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-11 14:14:12 +02:00
Steven Armstrong
19ad2fe4a9 Merge remote-tracking branch 'telmich/master' 2011-10-11 14:10:04 +02:00
Steven Armstrong
442ffb75fa nuke legacy files
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-11 14:09:47 +02:00
Nico Schottelius
2c02b17452 write down (almost?) all tests for config_install (really)
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-11 13:47:53 +02:00
Nico Schottelius
cfb74897c4 write down (almost?) all tests for config_install
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-11 13:47:41 +02:00
Nico Schottelius
9d7468edf6 add old log of trigger work
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-11 13:09:56 +02:00
Nico Schottelius
2c5b064b00 ++todo = remove CODE_HEADER in generated code
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-11 13:06:29 +02:00
Nico Schottelius
cfd04dc204 ++tests needed
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-11 13:04:01 +02:00
Nico Schottelius
5443db97c4 always setup __debug if debug is set
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-11 12:54:55 +02:00
Steven Armstrong
405ebbccb7 Merge remote-tracking branch 'telmich/master'
Conflicts:
	lib/cdist/emulator.py
2011-10-11 12:40:44 +02:00
Steven Armstrong
bcde8683af rewrite emulator to use Type and Object classes
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-11 12:27:08 +02:00
Nico Schottelius
e72ad1f7cb emulator not needed in config_install anymore
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-11 12:19:13 +02:00
Nico Schottelius
6199a255a4 add emulator output
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-11 11:06:10 +02:00
Steven Armstrong
753936b7c3 make object.source a list
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-11 10:30:30 +02:00
Steven Armstrong
904396f6a5 new method to create object on the file system
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-11 10:29:06 +02:00
Steven Armstrong
5a082058e5 new method which checks if object exists on the file system
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-11 10:28:41 +02:00
Steven Armstrong
96c059983a - legacy code, + docstrings
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-11 10:28:10 +02:00
Steven Armstrong
af83c7af8e tests for Object source
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-11 09:38:31 +02:00
Steven Armstrong
005009ab5d finish FileStringProperty
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-11 09:38:03 +02:00
Steven Armstrong
a1e1c8d665 +docstring
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-11 09:02:01 +02:00