From c2c844e6009673c0351c137bb293e94c0f3cabea Mon Sep 17 00:00:00 2001
From: Waseem Ahmad <talk.to.waseem@gmail.com>
Date: Thu, 26 Feb 2015 21:35:35 +0530
Subject: Section explaining how rails runner accepts code in a ruby file.

[ci skip]
---
 guides/source/command_line.md | 6 ++++++
 1 file changed, 6 insertions(+)

(limited to 'guides/source')

diff --git a/guides/source/command_line.md b/guides/source/command_line.md
index 19ccdc5488..6f5a6b7957 100644
--- a/guides/source/command_line.md
+++ b/guides/source/command_line.md
@@ -338,6 +338,12 @@ You can specify the environment in which the `runner` command should operate usi
 $ bin/rails runner -e staging "Model.long_running_method"
 ```
 
+You can even execute ruby code written in a file with runner.
+
+```bash
+$ bin/rails runner lib/code_to_be_run.rb
+```
+
 ### `rails destroy`
 
 Think of `destroy` as the opposite of `generate`. It'll figure out what generate did, and undo it.
-- 
cgit v1.2.3