This adds a new capistrano task called console:shell which, when run, opens a script/console shell on your remote production (or staging/etc.) host. Lets you play in your familiar script/console shell but directly on your remote host.
HandleIT
gem "CapConsole", "~> 0.0.2"