Ruby on Rails Thursday, January 22, 2015

THE EASY PART:
I have four Ruby commands in a Ruby script that need to be executed in the following order:
1.  long_command1
2.  long_command2
3.  long_command3
4.  long_command4

THE HARD PART:
How do I make sure that the Ruby script finishes one command before moving on to the next one?  long_command1 needs to be completed before long_command2 can begin, long_command2 needs to be completed before long_command3 can begin, and long_command3 needs to be completed before long_command4 can begin.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/225a9432-3b33-4650-a5b0-8095409e403a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment