<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kuronekopunk</author_name>
  <author_url>https://blog.hatena.ne.jp/kuronekopunk/</author_url>
  <blog_title>ノンカフェインであなたにやさしい</blog_title>
  <blog_url>https://akinobu.net/</blog_url>
  <categories>
  </categories>
  <description>デバッグやバッチ処理内でRake taskを呼び出したいときの対応 Rails.application.load_tasks Rake::Task['my_task'].execute # 引数を渡す場合 Rake::Task['my_task'].execute('arg_string') Rake::Task['my_task'].execute(hoge: 'moge') my_task には hoge:moge など rake hoge:moge と指定する名前が入ります。 他サンプルだと require 'rake' しているものもありますが rails c で入っている分には不要で…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fakinobu.net%2Fentry%2F2021%2F07%2F19%2F150011&quot; title=&quot;Rails consoleでrake taskを呼び出す - ノンカフェインであなたにやさしい&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-07-19 15:00:11</published>
  <title>Rails consoleでrake taskを呼び出す</title>
  <type>rich</type>
  <url>https://akinobu.net/entry/2021/07/19/150011</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
