Module: PalletOps::Clojure

Defined in:
lib/pallet-ops/clojure.rb

Constant Summary collapse

REQUIRE =
Java::clojure::lang::RT.var("clojure.core","require")
SYMBOL =
Java::clojure::lang::RT.var("clojure.core","symbol")
EVAL =
Java::clojure::lang::RT.var("clojure.core","eval")
APPLY =
Java::clojure::lang::RT.var("clojure.core","apply")
READ_STRING =
Java::clojure::lang::RT.var("clojure.core","read-string")
KEYWORD =
Java::clojure::lang::RT.var("clojure.core","keyword")
PR_STR =
Java::clojure::lang::RT.var("clojure.core","pr-str")
KW_MAP_STR =
Java::clojure::lang::RT.var("pallet.jruby","kw-map-str")
COMPUTE_SERVICE_FROM_MAP =
Java::clojure::lang::RT.var("pallet.compute",
"compute-service-from-map")
COMPUTE_SERVICE =
Java::clojure::lang::RT.var("pallet.compute", "compute-service")
COMPUTE_NODES =
Java::clojure::lang::RT.var("pallet.compute", "nodes")
CORE_LIFT =
Java::clojure::lang::RT.var("pallet.core", "lift")
MAIN =
Java::clojure::lang::RT.var("pallet.main", "-main")
IDENTITY =
PalletOps::Clojure::KEYWORD.invoke("identity")
CREDENTIAL =
PalletOps::Clojure::KEYWORD.invoke("credential")

Class Method Summary collapse

Class Method Details

.clj_eval(s) ⇒ Object



36
37
38
39
40
# File 'lib/pallet-ops/clojure.rb', line 36

def self.clj_eval(s)
  cmd=Java::clojure::lang::RT.readString(s)
  eval=Java::clojure::lang::RT.var("clojure.core","eval")
  eval.invoke(cmd)
end