Module: Kiba::Extend::Jobs::DependencyJob

Extended by:
Reporter
Defined in:
lib/kiba/extend/jobs/dependency_job.rb

Overview

Mixin for different behavior for dependency jobs

Since:

  • 2.2.0

Instance Method Summary collapse

Methods included from Reporter

desc_and_tags, get_duration, put_file_details, report_run_end, report_run_start, row_report, start_and_def, tags

Instance Method Details

#add_decorationObject

overrides Runner

Since:

  • 2.2.0



11
12
13
# File 'lib/kiba/extend/jobs/dependency_job.rb', line 11

def add_decoration
  # Don't decorate dependency jobs
end

#minimal_endObject

Since:

  • 2.2.0



38
39
40
# File 'lib/kiba/extend/jobs/dependency_job.rb', line 38

def minimal_end
  # silent for dependency jobs
end

#minimal_startObject

Since:

  • 2.2.0



25
26
27
# File 'lib/kiba/extend/jobs/dependency_job.rb', line 25

def minimal_start
  # silent for dependency jobs
end

#normal_endObject

Since:

  • 2.2.0



34
35
36
# File 'lib/kiba/extend/jobs/dependency_job.rb', line 34

def normal_end
  # silent for dependency jobs
end

#normal_startObject

Since:

  • 2.2.0



21
22
23
# File 'lib/kiba/extend/jobs/dependency_job.rb', line 21

def normal_start
  puts start_and_def
end

#start_labelObject

Since:

  • 2.2.0



42
43
44
# File 'lib/kiba/extend/jobs/dependency_job.rb', line 42

def start_label
  "->Starting dependency job"
end

#verbose_endObject

Since:

  • 2.2.0



29
30
31
32
# File 'lib/kiba/extend/jobs/dependency_job.rb', line 29

def verbose_end
  puts "    #{row_report} written to #{job_data.path}"
  puts "    NOTE: #{job_data.message.upcase}" if job_data.message
end

#verbose_startObject

the rest overrides Reporter

Since:

  • 2.2.0



16
17
18
19
# File 'lib/kiba/extend/jobs/dependency_job.rb', line 16

def verbose_start
  puts start_and_def
  puts "  #{desc_and_tags}"
end