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: resolvconf.rb
    path of file: ./repos/travis-build/lib/travis/build/appliances
    
    the code of the file until where you have to start completion: require 'travis/build/appliances/base'

module Travis
  module Build
    module Appliances
      class Resolvconf < Base
        def apply?
          linux?
        end

        def apply
          sh.if 'sudo service resolvconf status >&/dev/nu
    
        def apply
          sh.if 'sudo service resolvconf status >&/dev/null', raw: true do
            sh.fold "resolvconf" do
              sh.raw <<-EOF
  echo "options timeout:1"  | sudo tee -a /etc/resolvconf/resolv.conf.d/tail >/dev/null
  echo "options attempts:3" | sudo tee -a /etc/resolvconf/resolv.conf.d/tail >/dev/null
  sudo service resolvconf restart
              EOF
            end
          end
        end