In Ruby on Rails rake task is calling a function from another rake file -


As you can see, I have defined a pane within a rake file, no problem, that works fine The problem is, when I declare another file in the other rake file , define the function is called from another file. Can you give some suggestions? Thank you.

Name Location: Backtest def get_user_input if ENV ['date_from']. is present? & Amp; & Amp; ENV ['date_until']. Present? # Get input ... and 'sample usage:' blah blah ... 'end end "start backtest" function: start = & gt; : Environment # get_user_input # left of code ... end end

you can It:

  requires a 'rake' load 'your_rake_file_name_here.rake' get_user_input  

Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -