Commit graph

647 commits

Author SHA1 Message Date
Nico Schottelius
04c768d51d lib: 2.0.9
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-03-12 20:20:56 +01:00
Nico Schottelius
ef4b217d43 Merge branch 'master' into exit_code_and_sigint_cleanup 2012-03-09 23:18:37 +01:00
Nico Schottelius
5f2f8e2bd2 no == true needed
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-03-09 23:14:15 +01:00
Nico Schottelius
efd6a999b1 Merge remote-tracking branch 'mcodd/support_rsync_in_remote_copy' into exit_code_and_sigint_cleanup 2012-03-09 23:12:19 +01:00
Matt Coddington
3e6b866cae support rsync for remote copy 2012-03-09 15:43:49 -05:00
Nico Schottelius
5001e9cbe7 prevent tracebacks in tempfile code/initial manifest from stdin
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-03-07 13:01:11 +01:00
Nico Schottelius
edcb2363e9 ++version(2.0.8)
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-20 11:18:37 +01:00
Nico Schottelius
27fb4374d3 Merge branch 'feature_boolean_parameter' of https://github.com/asteven/cdist 2012-02-16 11:04:50 +01:00
Nico Schottelius
64bb1741aa cleanup local
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-15 17:05:22 +01:00
Nico Schottelius
72fb77f135 extend not append
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-15 17:02:21 +01:00
Nico Schottelius
f031a40746 rebuild the command string
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-15 17:01:03 +01:00
Nico Schottelius
ab48a72ce1 return results from run()
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-15 16:25:18 +01:00
Nico Schottelius
a4882e7e30 remove useless script printing and reuse run() method
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-15 16:17:49 +01:00
Steven Armstrong
0760ff3c94 implement boolean parameters, forgotten files ;-)
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2012-02-15 14:44:16 +01:00
Steven Armstrong
362bdcdbdd implement boolean parameters
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2012-02-15 13:57:45 +01:00
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>
2012-02-15 09:27:30 +01:00
Nico Schottelius
0082b7f07c allow objects to start with /, but not to contain //; sanitise after validation
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-14 12:41:13 +01:00
Nico Schottelius
861b13ffe4 record sanitised object, not the user supplied one, as requirement
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-14 11:12:17 +01:00
Nico Schottelius
c9ae06db64 do not setup __debug - let the user do if required - do not interfere type with core
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-13 16:27:41 +01:00
Nico Schottelius
d51a177a95 invent a generic CdistObjectError and point to definition source (easier debugging)
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-13 16:22:14 +01:00
Nico Schottelius
0861276436 remove obsolete MissingEnvironmentVariableError()
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-13 16:14:48 +01:00
Nico Schottelius
f8868349e6 cdist_object.type => cdist_object.cdist_type
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-13 15:01:45 +01:00
Nico Schottelius
632146114c update copyright
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-13 14:30:27 +01:00
Nico Schottelius
e3ab8ef77b version increment
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-13 14:25:11 +01:00
Nico Schottelius
2d61070023 remove old IllegalRequirementError exception
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-13 10:47:40 +01:00
Nico Schottelius
2fce038423 correct catching exception to IllegalObjectIdError
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-13 10:43:42 +01:00
Nico Schottelius
f12a83f3dd -migration to CdistType error
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-13 10:41:12 +01:00
Nico Schottelius
0851af7d52 allow object_id to start and end with one /, fail with any //
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-13 10:39:04 +01:00
Nico Schottelius
8f75a9133f do not fail validation on empty object_id
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-13 10:38:36 +01:00
Nico Schottelius
a8e9b7feed :%s/cdist_object.type/cdist_object.cdist_type/g
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-13 08:55:42 +01:00
Nico Schottelius
2bc201614a :%s/cdist_object.type/cdist_object.cdist_type/g
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-13 08:54:09 +01:00
Nico Schottelius
1e5226e21c fix indention errors due to vim c&p
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-13 08:51:40 +01:00
Nico Schottelius
eadb62e67a minimal beaufity
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-13 08:44:09 +01:00
Nico Schottelius
dcd3bcee32 use the great method object_from_name() in emulator
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-13 07:57:51 +01:00
Nico Schottelius
2492d51f6f make object_from_name() better readable
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-13 07:56:37 +01:00
Nico Schottelius
097b4ea6ad :%s/self.type/self.cdist_type/g
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-13 07:50:11 +01:00
Nico Schottelius
754aba1a15 record source in setup_object not in requirements
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-13 07:47:33 +01:00
Nico Schottelius
f27730e10b finish rewrite to instance method
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-13 07:45:32 +01:00
Nico Schottelius
ab565dc3d9 cleanup / emulator
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-13 07:45:10 +01:00
Nico Schottelius
0c990e1756 add singleton / no object_id test to CdistObject
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-13 07:25:04 +01:00
Nico Schottelius
91ecfa7d3f back to 100% tests working
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-12 01:27:25 +01:00
Nico Schottelius
fb4f8784b6 rename Type => CdistType
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-12 01:18:14 +01:00
Nico Schottelius
1314567012 also begin to prefix type with cdist
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-12 01:10:57 +01:00
Nico Schottelius
4be37f6e93 begin rename Object => CdistObject
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-12 00:08:18 +01:00
Nico Schottelius
15fb097464 add function to sanitise object_id and verify no //
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-12 00:05:21 +01:00
Nico Schottelius
53c61d42ad remove useless if env:
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-09 19:12:49 +01:00
Nico Schottelius
1dcc420a38 no, no common base class for local/remote
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-09 19:09:32 +01:00
Nico Schottelius
d55c52601f move run_type_explorer near run_type_explorers
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-09 19:08:32 +01:00
Nico Schottelius
72fefef320 increment version, update web release
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-01-28 20:49:47 +01:00
Steven Armstrong
252ae5ea56 new feature: dependency resolver 2012-01-19 07:51:02 +01:00