aboutsummaryrefslogtreecommitdiffstats
path: root/railties/bin
diff options
context:
space:
mode:
authorJamis Buck <jamis@37signals.com>2005-08-03 15:02:31 +0000
committerJamis Buck <jamis@37signals.com>2005-08-03 15:02:31 +0000
commit3d4a32377651a13575ce6da84875af764fdbe339 (patch)
tree0349c2e07e8e7d9c92387e7515ad05e129a892dc /railties/bin
parent3fc8639b78417cffc112916537bb8249f8880394 (diff)
downloadrails-3d4a32377651a13575ce6da84875af764fdbe339.tar.gz
rails-3d4a32377651a13575ce6da84875af764fdbe339.tar.bz2
rails-3d4a32377651a13575ce6da84875af764fdbe339.zip
Add integration with SwitchTower (rake tasks, default deploy.rb recipe)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1968 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/bin')
-rw-r--r--railties/bin/switchtower4
-rw-r--r--railties/bin/switchtower_for_gem4
2 files changed, 8 insertions, 0 deletions
diff --git a/railties/bin/switchtower b/railties/bin/switchtower
new file mode 100644
index 0000000000..741be775cc
--- /dev/null
+++ b/railties/bin/switchtower
@@ -0,0 +1,4 @@
+#!/usr/local/bin/ruby
+if not system "switchtower #{ARGV.join(" ")}"
+ abort "Could not execute switchtower. Is it installed?"
+end
diff --git a/railties/bin/switchtower_for_gem b/railties/bin/switchtower_for_gem
new file mode 100644
index 0000000000..57d79bc06c
--- /dev/null
+++ b/railties/bin/switchtower_for_gem
@@ -0,0 +1,4 @@
+#!/usr/local/bin/ruby
+require 'rubygems'
+require_gem 'switchtower'
+load 'switchtower'