我正在尝试创建一个带有 rake 任务的 gem 插件。我只是在任务文件夹中注释掉了预先生成的文件,但是当我运行 rake my_plugin 时,出现了错误
Don't know how to build task...
这是任务/my_plugin.rake 文件
desc "Explaining what the task does"
task :my_plugin do
# Task goes here
end
我正在尝试创建一个带有 rake 任务的 gem 插件。我只是在任务文件夹中注释掉了预先生成的文件,但是当我运行 rake my_plugin 时,出现了错误
Don't know how to build task...
这是任务/my_plugin.rake 文件
desc "Explaining what the task does"
task :my_plugin do
# Task goes here
end