Rush: A Ruby Shell That Abstracts System Operations Into Ruby Ones
Rush, by Adam Wiggins, is an interesting development. It's a shell and remote login (as with SSH) replacement written in Ruby that accepts Ruby syntax to perform system operations. Consider these operations:
processes.each { |p| p.kill if p.command == "mongrel_rails" }
Or..
local = Rush::Box.new('localhost') remote = Rush::Box.new('my.remote.server.com') local_dir = local['/Users/adam/myproj/'] remote_dir = remote['/home/myproj/app/'] local_dir.copy_to remote_dir remote_dir['**/.svn/'].each { |d| d.destroy }
Instead of making you use the usual UNIX commands, Rush abstracts a collection of system related tasks and allows you to perform operations using the Ruby you know and love. I can't say I'm rushing to install this just yet, because I think there might be some security aspects that need to be figured out, but it's definitely a bold, interesting development and I'm keen to see where it goes next.
February 22, 2008 at 10:37 pm
Rush cannot be used on Windows, can it?
February 23, 2008 at 12:01 am
It's cool, but seems to be a rather elongated way of doing most tasks. I think with some shortcuts it could be cooler.
February 24, 2008 at 2:57 pm
Looks pretty nice. I totally agree with Arlen, but once this is sorted out it would be much more powerful than regular bash scripts and probably a lot faster.