Today I learned
  • Github
  • Linkedin
  • Nomad Life(Travel Blog)
  • About
Sign in 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
12 Apr 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.
07 Jan 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: <project>/lib/tasks/
11 Jul 2016 1 min read
Page 1 of 1
Today I learned © 2025
Powered by Ghost