This should be easy, for some reason I can’t remember how to do it.
I have in /lib a file called “joe_converter.rb” that I want to be able
to run from terminal. Here’s the beginning of “joe_converter.rb”:
Takes in a URL, creates all needed objects, and ends up creating an
LqSnapshot for that URL
def self.do_the_conversion url, scores, user_id
How can I run this from terminal correctly? I tried with
“script/runner”, and put in the necessary parameters, but I get back
wrong number of arguments (0 for 5) (ArgumentError)
Anyone have any ideas about this?