Hobo / hobo

The web app builder for Rails (moved from tablatom/hobo)
http://hobocentral.net
103 stars 39 forks source link

hobo generator cannot adjust rails version #58

Open bryanlarsen opened 10 years ago

bryanlarsen commented 10 years ago

The hobo generator command has this form:

hobo new name [hobo_opt] [rails_opt]

but to specify the rails version, rails takes this form:

rails _*version*_ new name

Fixing this shouldn't be difficult, but I'm not exactly sure what form it should take ATM. Thoughts?

iox commented 10 years ago

What do you think about adding an option like this?

hobo new name [hobo_opt] [rails_opt] -rails_version=*version*
bryanlarsen commented 10 years ago

Yes, that seems like the right approach. I was wondering if we should do something more similar to how rails does it, but I think your suggestion is the right approach.

that being said, it should probably be standard long option format, aka --rails-version=. The options parser we're using should do it this way...

iox commented 10 years ago

You are right about the option format, let's do it like that.