Skip to content

Arie/logs_tf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logs.tf interface Build Status Dependencies Code Climate Coverage Status

A gem for the logs.tf API

Usage

  • Get an account and API key on logs.tf
  • Set a constant called LogsTF:API_KEY or use it as an argument in the next step
  • Create a log object.
log = LogsTF::Log.new(File.open('logfile.log'), 'map_name', 'title', 'api_key')
  • Create the upload object:
upload = LogsTF::Upload.new(log)
  • If there something wrong an error will be raised which you can rescue and inspect the message of:
begin
  upload.send
rescue Exception => e
  puts "The error is #{e.message}"
end
  • If everthing's alright, you can get the URL to the uploaded log:
  upload.send
  upload.url

About

Gem for the logs.tf API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published