diff options
author | Evan Weaver <eweaver@twitter.com> | 2008-11-22 18:59:21 -0800 |
---|---|---|
committer | Evan Weaver <eweaver@twitter.com> | 2008-11-22 18:59:21 -0800 |
commit | 3e1c8c363126814b60c164922ffa26b8227defda (patch) | |
tree | fc02630aed03cfd6f13aad8074d5459020e221d2 /projects/mongrel_console/lib/mongrel_console/init.rb | |
parent | 559edfb1fbf18e9496a4235831fd49c5b0d8b459 (diff) | |
parent | c365ba16d12a14bdf1cc50a26f67dd3b45f5a4d8 (diff) | |
download | unicorn-3e1c8c363126814b60c164922ffa26b8227defda.tar.gz |
Diffstat (limited to 'projects/mongrel_console/lib/mongrel_console/init.rb')
-rw-r--r-- | projects/mongrel_console/lib/mongrel_console/init.rb | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/projects/mongrel_console/lib/mongrel_console/init.rb b/projects/mongrel_console/lib/mongrel_console/init.rb deleted file mode 100644 index 7ed60cd..0000000 --- a/projects/mongrel_console/lib/mongrel_console/init.rb +++ /dev/null @@ -1,27 +0,0 @@ -require 'rubygems' -require 'gem_plugin' -require 'mongrel' - -class Console < GemPlugin::Plugin "/commands" - include Mongrel::Command::Base - - def configure - options [ - ['-c', '--chdir DIR', "Change to directory before running", :@dir, "."] - ] - end - - def validate - valid_dir? @dir, "Directory is not valid" - return @valid - end - - def run - begin - Dir.chdir @dir - load File.join(File.dirname(__FILE__), "console.rb") - rescue Object - STDERR.puts "Cannot run the console script: #$!" - end - end -end |