diff --git a/start/compute.md b/start/compute.md index 89eb3fb1..71ad08d6 100644 --- a/start/compute.md +++ b/start/compute.md @@ -334,9 +334,6 @@ If you are using the Log4JLoggingModule, here is an example log4j.xml stanza you {% endhighlight %} -## Usage in Google AppEngine -Please see [][UsingJCloudsWithGAE]] - ## Advanced Usage Almost all advanced features require ssh. You will likely also want to use log4j and our enterprise configuration module. Here's how to configure these. @@ -551,75 +548,3 @@ The jclouds API allows many `Statements` to be built entirely from high-level co without having to resort to OS-specific scripts. This enables developers to express what they mean without having 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. -These tools enable developers to focus on working code, as opposed to
build and infrastructure engineering - -### Ant - -Please check [[ApacheAntComputeGuide]] on how to use ant for compute API tasks. -