The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Announcing pulse-0.2.0

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Paul Gross

Posts: 152
Nickname: pgross
Registered: Sep, 2007

Paul Gross is a software developer for ThoughtWorks.
Announcing pulse-0.2.0 Posted: Nov 14, 2007 9:44 PM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Paul Gross.
Original Post: Announcing pulse-0.2.0
Feed Title: Paul Gross's Blog - Home
Feed URL: http://feeds.feedburner.com/pgrs
Feed Description: Posts mainly about ruby on rails.
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Paul Gross
Latest Posts From Paul Gross's Blog - Home

Advertisement

I just released a new version of pulse. Pulse adds an action to your rails project that can be used for external health checking. The most common use is by a http proxy such as haproxy.

The main new feature of version 0.2.0 is that the pulse URL is now specified in routes.rb. For example, you might like /heartbeat better than /pulse. The URL is set up in config/routes.rb like:


map.pulse 'pulse_url'

For example, config/routes.rb might look like:


ActionController::Routing::Routes.draw do |map|
  map.connect ':controller/:action/:id'
  map.pulse 'pulse'
end

Pulse is now a rails plugin instead of a gem, so check out the new installation instructions.

Pulse no longer monkey patches rails in the manner described in Add routes with a rails plugin or gem. Now, it mixes a Pulse::Routes module into ActionController::Routing::RouteSet::Mapper. This allows the “map.pulse” syntax that is shown above.

The code (lib/routes.rb) looks like:


module Pulse
  module Routes
    def pulse(path)
      connect path, :controller => 'pulse', :action => 'pulse'
    end
  end
end

ActionController::Routing::RouteSet::Mapper.send :include, Pulse::Routes

Read: Announcing pulse-0.2.0

Topic: The Bible on my Mac Previous Topic   Next Topic Topic: Los frameworks (web) olvidados de Ruby

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use