The method returns false if
- there is no connection to the desired server
- if all of the sakai-nakamura bundles are not up and Active
once you have that mod made you can cook up a little tester like this
# test to see if sakai 3 is up and all
# sakai bundles are loaded
# assume we're running from 3AKHOME/testscripts/SlingRuby
$LOAD_PATH << './lib'
@s = Sling.new()
# at this point we are logged in, yes as admin
# ( it's arguable that the constructor should bailfail if S3 isn't up. )
true == @s.is_Ready() ? exit(0) : exit(1)
and use it in your testing shell scripts so they won't run if the server isn't up or isn't accessible.
One thing that struck me during all this was that if the RubySling tests could be run by a group of people against a common remote host you would have a quick way to produce additional 'load' during a bug bash. Granted it would be just-less-than-senseless load. Suitably empowered participants would just fire up the tests in a mess of shells on stray machines and let them mumble around in the background while doing ad-hoc bashing.
Looks like just a little tweaking to the tests and their setup. hmm.