You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: enum_system.rb
    path of file: ./repos/metasploit-framework/modules/post/linux/gather
    
    the code of the file until where you have to start completion: ##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##

class MetasploitModule < Msf::Post
  include Msf::Post::File
  include Msf::Post::Linux::System

  def initialize(info = {})
    super(
      update_info(
        info,
        'Name' => 'Linux Gather System and User Information',
     
    
  def get_crons(users, user)
    if user == 'root' && users
      users = users.chomp.split
      users.each do |u|
        next unless u == 'root'

        vprint_status('Enumerating as root')
        cron_data = ''
        users.each do |usr|
          cron_data << "*****Listing cron jobs for #{usr}*****\n"
          cron_data << execute("crontab -u #{usr} -l") + "\n\n"
        end
      end
    else
      vprint_status("Enumerating as #{user}")
      cron_data = "***** Listing cron jobs for #{user} *****\n\n"
      cron_data << execute('crontab -l')

      # Save cron data to loot
      cron_data
    end