Guest User

Untitled

a guest
Jun 18th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. source "/home/foobar/.rvm/scripts/rvm"
  2.  
  3. if [ $1 == 'task1' ]; then
  4. /usr/bin/env /home/foobar/.rvm/rubies/ruby-1.9.2-p0/bin/ruby /var/www/rails_app/script/rails runner -e production "Tasker.task1"
  5. exit 1;
  6. fi
  7.  
  8. if [ $1 == 'task2' ]; then
  9. /usr/bin/env /home/foobar/.rvm/rubies/ruby-1.9.2-p0/bin/ruby /var/www/rails_app/script/rails runner -e production "Tasker.task2"
  10. exit 1;
  11. fi
  12.  
  13. if [ $1 == 'task3' ]; then /usr/bin/env /home/foobar/.rvm/rubies/ruby-1.9.2-p0/bin/ruby /var/www/rails_app/script/rails runner -e production "Tasker.task3"
  14. exit 1;
  15. fi
Add Comment
Please, Sign In to add comment