file_upload.rb
def load_auth_token
  unless File.exist?(AUTH_TOKEN_FILENAME)
    raise <<~ERROR
      #{AUTH_TOKEN_FILENAME} does not exist.
      Copy #{AUTH_TOKEN_FILENAME}.example to #{AUTH_TOKEN_FILENAME},
      replace the placeholder with your auth token, and then run again.
    ERROR
  end

  File.read(AUTH_TOKEN_FILENAME)
end
# Add your API auth token to this file
Add your API auth token to this file
Add your API auth token to this file
def load_auth_token
  unless File.exist?(AUTH_TOKEN_FILENAME)
    raise <<~ERROR
      #{AUTH_TOKEN_FILENAME} does not exist.
      Copy #{AUTH_TOKEN_FILENAME}.example to #{AUTH_TOKEN_FILENAME},
      replace the placeholder with your auth token, and then run again.
    ERROR
  end
  File.read(AUTH_TOKEN_FILENAME)
end
def load_auth_token unless File . exist? ( AUTH_TOKEN_FILENAME ) raise <<~ERROR #{ AUTH_TOKEN_FILENAME }  does not exist.
      Copy  #{ AUTH_TOKEN_FILENAME } .example to  #{ AUTH_TOKEN_FILENAME } ,
      replace the placeholder with your auth token, and then run again.
     ERROR end File . read ( AUTH_TOKEN_FILENAME ) end
Add your API auth token to this file
Add your API auth token to this file