eschulte / rinari

Rinari Is Not A Rails IDE (it is an Emacs minor mode for Rails)
http://rinari.rubyforge.org
GNU General Public License v3.0
413 stars 68 forks source link

Zeus support #48

Open asok opened 11 years ago

asok commented 11 years ago

It would be nice if rinari could support zeus for running scripts and console. Actually it should be easy. You just check if the .zeus.sock file exists in the rails directory. I commited something like this to rails-mode. If you want I can write something similar to rinari.

purcell commented 11 years ago

Interesting. It looks like:

I'm concerned that it would be harder than you expect to integrate zeus with rinari in a robust way, but I'm happy to consider a patch, so by all means have a look through rinari.el and ruby-compilation and see what you can come up with! :-)

asok commented 11 years ago

I was thinking of something basic:

purcell commented 11 years ago

Hey, so I took a look through the code, and it's easy to intercept where "server", "console" and "generate" are run from rinari.el. However, "rake" goes through ruby-compilation.el, and in fact all of the commands eventually call ruby-compilation-do, so that's where the hacking would have to start.

It's a bit fiddly, though, and I'm out of time right now, but I'll come back to this because now I'm also interested in getting it working. :-)

purcell commented 11 years ago

I should also note (partly for my own benefit) that there is likely to be some confusing behaviour, since rinari allows the user to run, say, "rails console production", but "zeus console" ignores any additional arguments and just runs the command in the development environment.

localredhead commented 11 years ago

I would love to assist with Zeus support.