| team@social.meissa-gmbh.de | Website & Blog
Common utils for dda-pallet
dda-pallet is compatible to the following versions
You can encrypt
(ns ...
(:require
[dda.pallet.commons.encrypted-credentials :as crypto]))
(crypto/encrypt
(crypto/get-public-key
{:user-home "/home/user/"
:key-id "-key-id-"})
{:account "acnt"
:secret "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"})
or decrypt with
(def encrypted-secret
{:account "acnt",
:secret "-----BEGIN PGP MESSAGE-----....-----END PGP MESSAGE-----\n"})
(crypto/decrypt
(crypto/get-secret-key {:user-home "/home/mje/"
:key-id key-id})
encrypted-secret
key-passphrase)
See also: https://domaindrivenarchitecture.org/posts/2016-10-24-encrypted-credentials/
We typically use remote-whitebox-local-tested method for running server-tests:
Example for collecting facts - e.g. in settings phase:
(package-fact/collect-packages-fact)
Execute tests - e.g. in test phase:
(package-test/test-installed? "atom")
For complete example see: https://github.com/DomainDrivenArchitecture/dda-managed-vm/blob/master/src/org/domaindrivenarchitecture/pallet/crate/managed_vm.clj or https://github.com/DomainDrivenArchitecture/dda-managed-ide/blob/master/src/org/domaindrivenarchitecture/pallet/crate/managed_ide.clj
In order to do some work on your own, you can add [lein-idefiles "0.2.1"] to your lein plugins and execute
git clone git@github.com:DomainDrivenArchitecture/dda-pallet-commons.git
lein idefiles eclipse
up to now you're ready to start working ...
Copyright © 2015, 2016, 2017, 2018 meissa GmbH Licensed under the Apache License, Version 2.0 (the "License") Pls. find licenses of our subcomponents here
Can you improve this documentation? These fine people already did:
M.Jerger, Michael Jerger & jemEdit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close