Integration of rake tasks and shell commands with Rails generators?

Just starting to learn about rake and Rails generators… I have a
couple Qs I have yet to find answers to.

  1. Can shell commands somehow be called from a generator’s manifest
    method? If so, is that poor form?
  2. Can rake tasks be called from a generator’s manifest method?

Thanks heaps, Elliott

Any thoughts on this one?

Thanks, Elliott

I found the syntax that makes shell calls from Ruby…

example_shell_command = gem list
puts example_shell_command

Elliott

This was a useful post for me on the topic of Ruby and the shell:
http://pasadenarb.com/2007/03/ruby-shell-commands.html

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs