Today I learned
  • Home
  • Github
  • Linkedin
  • Nomad Life(Travel Blog)
Subscribe

rake

A collection of 3 posts
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 servers to different enviroments. We can
Apr 12, 2017 — 1 min read
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 how both works under the hood.
Jan 7, 2017
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: /lib/tasks/hello.rake Then you can
Jul 11, 2016 — 1 min read
Today I learned © 2022
Powered by Ghost