Permalink
Browse files

tweak to work with cap2

  • Loading branch information...
1 parent de6734b commit da6dc3a502ef3616a6ae0c5fff07d4606d0bc217 @jamis jamis committed May 12, 2007
Showing with 11 additions and 2 deletions.
  1. +5 −0 ChangeLog
  2. +5 −1 lib/capistrano/ext/monitor.rb
  3. +1 −1 lib/capistrano/ext/version.rb
View
5 ChangeLog
@@ -1,3 +1,8 @@
+*1.1.1* (May 12, 2007)
+
+* Tweak to work with Capistrano 2 [Jamis Buck]
+
+
*1.1.0* (September 14, 2006)
* Add uptime task [Jamis Buck]
View
6 lib/capistrano/ext/monitor.rb
@@ -287,7 +287,11 @@ def uptime
Capistrano.plugin :monitor, MonitorServers
-Capistrano.configuration(:must_exist).load do
+configuration = Capistrano::Configuration.respond_to?(:instance) ?
+ Capistrano::Configuration.instance(:must_exist) :
+ Capistrano.configuration(:must_exist)
+
+configuration.load do
desc <<-STR
Watch the load on the servers. Display is updated every 30 seconds by default,
though you can specify a DELAY environment variable to make it update more or
View
2 lib/capistrano/ext/version.rb
@@ -3,7 +3,7 @@ module Ext
module Version #:nodoc:
MAJOR = 1
MINOR = 1
- TINY = 0
+ TINY = 1
STRING = [MAJOR, MINOR, TINY].join(".")
end

0 comments on commit da6dc3a

Please sign in to comment.