Move over Rake, Thor is the new King

16-Sep-2021 1210
A task runner is a way to reach into an application and execute a piece of code from the outside. This means you can invoke something from the terminal instead of having to open a REPL or in our case a Rails console to invoke a task.Why do this? There could be thousands of classes, all with different ways to invoke them. The task runner acts as a facade and only exposes what is needed to perform a specific task in isolation. Its main responsiblities are handing user input, formatting program output, and handling any options parsing.
Use coupon code:

RUBYONRAILS

to get 30% discount on our bundle!
Prepare for your next tech interview with our comprehensive collection of programming interview guides. Covering JavaScript, Ruby on Rails, React, and Python, these highly-rated books offer thousands of essential questions and answers to boost your interview success. Buy our 'Ultimate Job Interview Preparation eBook Bundle' featuring 2200+ questions across multiple languages. Ultimate Job Interview Preparation eBook Bundle