I’ve been having a lot of fun working with a Apache jclouds in JRuby. All the examples for the API are in Java and Clojure, while online JRuby docs could be better, so there’ve been some interesting translation challenges.
I just had to re-Google what .class becomes in JRuby, so a quick note for the future.
Java:
template.getOptions().as(EC2TemplateOptions.class).keyPair("bluforcloud-test");
JRuby:
template.getOptions.as(EC2TemplateOptions.java_class).keyPair "bluforcloud-test"