Fork me on GitHub
#mount
<
2016-03-05
>
mike_ananev18:03:59

hello all! does anybody knows how to start only certain parts of the system, but replace some config states (in starting parts) by test configs?

mike_ananev19:03:48

no, it doesn't. start-with performs start all system

mike_ananev19:03:24

i need start only ceratin namespaces but in starting namespaces i need swap config to test config

dm320:03:51

if you scroll a bit up there's Be Composing part

dm320:03:08

where you can specify which nses to start and which to substitute

dm320:03:20

(scroll the README, I mean)

mike_ananev21:03:49

solved! key is new version of mount. i've used 0.1.9 but now exist 0.1.10 with new functionality

mike_ananev21:03:51

(-> (only #{#'foo/a #'foo/b #'foo/c #'bar/d #'baz/e}) (with-args {:a 42}) (except [#'foo/c #'bar/d]) (swap-states {#'foo/a #'test/a}) (swap {#'baz/e {:datomic {:uri "datomic:<mem://composable-mount>"}}}) mount/start)