This project is archived and is in readonly mode.
Make app templates sync output back immediately?
-
DHH
- Assigned user set to Pratik
-
Pratik
- State changed from new to incomplete
Looks good. But I think we should change all the instances of
with a single patch.Thanks.
-
Sven Fuchs
Pratik, you mean "all the instances of backticks" ... where? allover Rails? I could look into that, too, of course.
-
Sven Fuchs
- State changed from incomplete to open
Ok, I've now reworked that patch to use system() for all the git commands in that file.
I've again applied the patch and ran "rails app -m template.rb" using it. That template contained a git clone command with a rather large repository. The command's output from Github was immediately sync'ed back to my shell so I could watch the clone command's status.
Will change the ticket status to "open" again.
-
Sven Fuchs
Also deleted the first version patch to avoid any confusion.
-
José Valim
Pratik, I will handle it. It will include changes to thor.
Thanks Sven!
-
Sven Fuchs
Changes to Thor? Is Thor part of the app template system in Rails?
-
José Valim
Yup, it's on Rails 3: http://blog.plataformatec.com.br/2009/07/creating-your-own-generato...
-
José Valim
Already fixed this on Thor. Rails 3 will have this fixed as soon as I update the vendored version.
-
Sven Fuchs
Cool! :)
Can we apply it to 2.3.x, too?
-
José Valim
I cannot apply to Rails 2.3, but it would be a good idea. I also replaced run() to use system instead of backticks, everything appears to be great.
-
Repository
- State changed from open to resolved
(from [5a0e2959117e29e6836b9f611d6ba1d3260702b7]) Make app template git adapter sync back output immediately by using system() instead of backticks [#2047 Make app templates sync output back immediately? state:resolved]
Signed-off-by: Pratik Naik pratiknaik@gmail.com
http://github.com/rails/rails/commit/5a0e2959117e29e6836b9f611d6ba1...
