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.
Move over Rake, Thor is the new King #ruby #rubydeveloper #rubyonrails #Rake, https://rubyonrails.ba/link/move-over-rake-thor-is-the-new-king