Class: LagottoJob

Inherits:
Object
  • Object
show all
Includes:
Kishu::Utils, SuckerPunch::Job
Defined in:
lib/kishu/lagotto_job.rb

Instance Method Summary collapse

Methods included from Kishu::Utils

#checksum, #clean_tmp, #encoded, #encoded_file, #format_instance, #generate_header_footer, #get_authors, #get_metadata, #merged_file

Instance Method Details

#perform(report, options = {}) ⇒ Object



11
12
13
14
15
16
17
18
19
20
21
# File 'lib/kishu/lagotto_job.rb', line 11

def perform(report, options={})
  # data = format_instance event, options

  # push_url = LAGOTTINO_URL  + "/events"
  # response =  Maremma.post(push_url, data: data.to_json,
  #               bearer: LAGOTTINO_TOKEN,
  #               content_type: 'application/vnd.api+json')
  # puts data
  # puts response.status
  Report.send_report report
end