From e8c28b4cfbc6eb876f63b154702ad72d6e88478f Mon Sep 17 00:00:00 2001 From: Jamis Buck Date: Mon, 20 Feb 2006 03:04:15 +0000 Subject: [PATCH] Fix broken switchtower_invoke function in switchtower.rake (missing require statement) git-svn-id: http://svn.rubyonrails.org/rails/tools/switchtower@3619 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- CHANGELOG | 5 +++++ .../generators/rails/deployment/templates/switchtower.rake | 2 ++ 2 files changed, 7 insertions(+) diff --git a/CHANGELOG b/CHANGELOG index 0ff51a7a..2d9c4a9a 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,8 @@ +*1.0.1* *SVN* + +* Fix broken switchtower_invoke function in switchtower.rake (missing require statement) + + *1.0.0* (Feburary 18th, 2006) * Make CVS module's :local value default to "." diff --git a/lib/switchtower/generators/rails/deployment/templates/switchtower.rake b/lib/switchtower/generators/rails/deployment/templates/switchtower.rake index c08cb666..371a8002 100644 --- a/lib/switchtower/generators/rails/deployment/templates/switchtower.rake +++ b/lib/switchtower/generators/rails/deployment/templates/switchtower.rake @@ -10,6 +10,8 @@ def switchtower_invoke(*actions) # no rubygems to load, so we fail silently end + require 'switchtower/cli' + options = actions.last.is_a?(Hash) ? actions.pop : {} args = %w[-r config/deploy]