Skip to content

Instantly share code, notes, and snippets.

@greggroth
Created November 29, 2011 18:16
Show Gist options
  • Save greggroth/1405798 to your computer and use it in GitHub Desktop.
Save greggroth/1405798 to your computer and use it in GitHub Desktop.
how about this?
Dir['*.rb'].each do |file_name|
pid = spawn("rails r #{file_name}")
waitpid(pid, 0)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment