# -*- encoding : utf-8 -*-
namespace :submodules do

  desc "Check the status of the project's submodules"
  task :
check_submodules => :environment do
    require'submodules/submodules_status'
    Submodules::SubmodulesStatus.new.check_submodules
  end

end

A:

You can use the following code to check the status of the submodules:
require