This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Provide a cleaner way to access deep object properties avoiding null pointers | |
* | |
* So, instead of doing this: | |
* | |
* var x = (obj && obj.prop && obj.prop[subprop] && obj.prop[subprop][lastprop]) || "default"; | |
* | |
* you can do: | |
* | |
* var x = get(obj, "prop", "subprop", subprop, lastprop) || "default"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns coral-deploy.pallet8 | |
"Node defintions" | |
(:require | |
[pallet.api :as api] | |
[pallet.configure :as configure] | |
[pallet.actions :as action] | |
[pallet.crate.automated-admin-user :as admin-user] | |
[pallet.compute.vmfest :as vbox] | |
[pallet.crate.java :as java] | |
[pallet.crate.lein :as lein] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; My project.clj: | |
(defproject projectname "0.1.0-SNAPSHOT" | |
:description "FIXME Pallet project for projectname" | |
:dependencies [[org.clojure/clojure "1.3.0"] | |
[org.cloudhoist/pallet "0.7.3"] | |
[org.cloudhoist/pallet-jclouds "1.4.3"] | |
[org.cloudhoist/pallet-vmfest "0.3.0-alpha.2"] | |
[org.virtualbox/vboxjws "4.2.6"] | |