0

How to run a script in a padrino context by passing the script path to padrino? I see that similar feature is available in rails: Executing Ruby script in an Rails application

The padrino website: http://www.padrinorb.com/guides/development-commands says this can be done by running

$ padrino r script/my_script.rb

But I get the error :

Could not find task "r".
Community
  • 1
  • 1
radiantRazor
  • 477
  • 3
  • 13
  • All I read from [here][1] is `padrino rake ...`. [1]: http://www.padrinorb.com/guides/rake-tasks – jgburet Mar 02 '15 at 09:40

1 Answers1

0
cat script/my_script.rb | padrino console

This worked for me

radiantRazor
  • 477
  • 3
  • 13