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: rake_tasks.rb
    path of file: ./repos/travis-build/lib/travis/build
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

requ
    
      def latest_release_for(repo)
        logger.info "Fetching releases from #{repo}"

        latest_release = octokit.latest_release(repo)['tag_name']
        raise "No releases found for #{repo}" if latest_release.empty?

        latest_release
      rescue
        raise "Could not get latest release for #{repo}"
      end