我在我的Rails应用程序中有这样的模块。我的应用程序文件夹里有一个额外的文件夹。里面有我有一个模块。从命令提示符运行导轨模块
module ExcelUpload
class Eupload
def do_something
end
end
def self.excel_upload
upload_service = Eupload.new
upload_service.do_something
end
end
如何从命令提示符执行上述模块。我想执行像rake任务。 例如:bundle exec rake db:migrate
是否有任何命令?