# Running custom ruby scripts

**URL:** <https://meta.discourse.org/t/running-custom-ruby-scripts/236408>\
**Category:** Development\
**Created:** [August 17, 2022, 9:41am UTC](https://meta.discourse.org/t/running-custom-ruby-scripts/236408 "2022-08-17T09:41:24Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)\
**Post date:** [August 17, 2022, 10:35am UTC](https://meta.discourse.org/t/running-custom-ruby-scripts/236408/6 "2022-08-17T10:35:08Z")

</div>

So rake task might be your goto solution. That’s purposely designed for ad hoc script running. I would still put that into a plugin though, as you can then manage it nicely on GitHub and you’d never forget where you put it or delete it accidentally.

Here’s a load of examples: [discourse/lib/tasks at 1472e47aae5bfdfb6fd9abfe89beb186c751f514 · discourse/discourse · GitHub](https://github.com/discourse/discourse/tree/1472e47aae5bfdfb6fd9abfe89beb186c751f514/lib/tasks)

---

_[View the full topic](https://meta.discourse.org/t/running-custom-ruby-scripts/236408)._
