"Updates" Posts


Track our plugins on GitHub

By Derek Bullet_white Posted in Updates Bullet_white Comments Comments

Commit History for highgroove's scout-plugins 2014 GitHub

You can now follow our commits to Scout plugins at our GitHub Repository.

GitHub makes it easy to find out when new plugins are created. Feel free to fork us (as long as forking is legal in your part of the world).

Quick note – remember to use the raw format when using your own plugins from GitHub by appending ?raw=true to the plugin script URL.

Also see:

 

Everything is easier with Scout Client 2.0

By Derek Bullet_white Posted in Updates Bullet_white Comments Comments

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 [1]
gem install scout --source http://gems.scoutapp.com/

[1] Rubyforge is slow to update, in the meantime, use our gem server mirror

 

Older posts: 1 ... 4 5 6