Tbpgr Blog

Employee Experience Engineer tbpgr(てぃーびー) のブログ

Ruby on Rails | rakeタスクの作成

概要

rakeタスクの作成

内容

rakeタスクの作成します。

rakeタスクの作成

lib/tasksにhoge.rakeを作成

desc 'only hoge.'
task :hoge do
  puts "hoge"
end

実行

$ bundle exec spring rake hoge
hoge