rake Passing multiple options/argument with default options in rake Rake task allows you to accept multiple arguments which can be used within the task, and also allows us to specify default options for these arguments. Accept multiple arguments/options Lets say we have a simple rake task to sync data from/across our
ruby Script/runner vz Rake tasks When it comes to running Rails tasks the common question that comes to mind is whether to use script/runner or to call a rake task script/runner long_running_task VZ rake long_running_task To understand it better we need to understand
ruby How to load rake task from a custom file or directory If you are wondering how you can load a rake task from a custom file, then this is guide will help you to accomplish your task. Lets assume you have a rake task named hello.rake under your project directory's lib folder like: <