Repository: jclouds-site Updated Branches: refs/heads/master 730c25c8f -> 94b98475f
Remove Clojure references, support removed from core Project: http://git-wip-us.apache.org/repos/asf/jclouds-site/repo Commit: http://git-wip-us.apache.org/repos/asf/jclouds-site/commit/af600f46 Tree: http://git-wip-us.apache.org/repos/asf/jclouds-site/tree/af600f46 Diff: http://git-wip-us.apache.org/repos/asf/jclouds-site/diff/af600f46 Branch: refs/heads/master Commit: af600f4656b8ed1492d57b75807c8649f3644236 Parents: 730c25c Author: Svetoslav Neykov <[email protected]> Authored: Mon Jul 17 16:25:47 2017 +0300 Committer: Svetoslav Neykov <[email protected]> Committed: Mon Jul 17 16:25:47 2017 +0300 ---------------------------------------------------------------------- start/compute.md | 62 --------------------------------------------------- 1 file changed, 62 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/jclouds-site/blob/af600f46/start/compute.md ---------------------------------------------------------------------- diff --git a/start/compute.md b/start/compute.md index 89eb3fb..70f6af1 100644 --- a/start/compute.md +++ b/start/compute.md @@ -552,68 +552,6 @@ without having to resort to OS-specific scripts. This enables developers to expr to deal with the gory details of various OS flavors. To see the commands that will be executed, print the result of `Statement.render(OsFamily.UNIX)`, for example. - - -## Clojure -## Setup - * install [lein](http://github.com/technomancy/leiningen) - * `lein new mygroup/myproject` - * `cd myproject` - * `vi project.clj` - * for jclouds 1.1 and earlier (clojure 1.2 only) - -{% highlight clojure %} -(defproject mygroup/myproject "1.0.0" - :description "FIXME: write" - :dependencies [[org.clojure/clojure "1.2.0"] - [org.clojure/clojure-contrib "1.2.0"] - [org.jclouds/jclouds-allcompute "1.1.0"]]) -{% endhighlight %} - - * for jclouds 1.2 / snapshot (clojure 1.2 and 1.3) -{% highlight clojure %} -(defproject mygroup/myproject "1.0.0" - :description "FIXME: write" - :dependencies [[org.clojure/clojure "1.3.0"] - [org.clojure/core.incubator "0.1.0"] - [org.clojure/tools.logging "0.2.3"] - [org.jclouds/jclouds-allcompute "1.2.0-SNAPSHOT"]] - :repositories {"jclouds-snapshot" "https://oss.sonatype.org/content/repositories/snapshots"}) -{% endhighlight %} - - * `lein deps` - - -### Usage -Execute `lein repl` to get a repl, then paste the following or write your own code. Clearly, -you need to substitute your accounts and keys below. - -{% highlight clojure %} -(use 'org.jclouds.compute) - -(with-compute-service ["cloudservers" "email" "password"] - (nodes)) -{% endhighlight %} - -The above will list all nodes with cloudservers. Here's an example of creating and running a small linux node with the group webserver, using ssh and log4j extensions: - -{% highlight clojure %} -(def provider "cloudservers") -(def user "email") -(def password "password") - -(def my-compute - (compute-service provider user password :ssh :log4j)) - -(create-node "webserver" my-compute) -{% endhighlight %} - -You'll likely want to run the following when you're done: - -{% highlight clojure %} -(destroy-nodes-in-group "webserver" my-compute) -{% endhighlight %} - ## Tools We've looked at many tools and chosen a few to spend time integrating with.
