Everything is easier with Scout Client 2.0
June 09, 2008 by Derek
We’ve released the 2nd version of our Scout client. What I love about this release is that it doesn’t make anything more complex or break compatibility with our first release. It just makes writing plugins easier.
For example – lets say you want to generate an alert. How’s this for simplicity?
class INeedASandwich < Scout::Plugin
def build_report
alert(:subject => "Get me a sandwich")
end
end
We’ve also made the process for managing memory (data stored on the client between runs of the plugin) easier to work with. Memory is a great tool for storing state.
For example:
class INeedASandwich < Scout::Plugin
def build_report
if memory(:am_i_hungry)
alert(:subject => "Get me a sandwich")
remember(:am_i_hungry => false)
else
remember(:am_i_hungry => true)
end
end
end
As always, updating to the latest release is as simple as:
gem install scout --source http://gems.scoutapp.com/
[1] Rubyforge is slow to update, in the meantime, use our gem server mirror
