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: erlang.rb
    path of file: ./repos/travis-build/lib/travis/build/script
    
    the code of the file until where you have to start completion: module Travis
  module Build
    class Script
      class Erlang < Script

    
        def script
          sh.if "#{rebar_configured} && -f ./rebar" do
            sh.cmd './rebar compile && ./rebar skip_deps=true eunit'
          end
          sh.elif rebar_configured do
            sh.if "-n $(command -v rebar3)" do
              sh.cmd 'rebar3 eunit'
            end
            sh.else do
              sh.cmd 'rebar compile && rebar skip_deps=true eunit'
            end
          end
          sh.else do
            sh.cmd 'make test'
          end
        end