Class: Hive::Paths::Jobs
- Inherits:
-
Object
- Object
- Hive::Paths::Jobs
- Defined in:
- lib/hive/paths/jobs.rb
Class Method Summary collapse
- .complete_url(job_id) ⇒ Object
- .end_url(job_id) ⇒ Object
- .error_url(job_id) ⇒ Object
- .job_base(job_id) ⇒ Object
- .prepare_url(job_id) ⇒ Object
- .report_artifacts_url(job_id) ⇒ Object
- .start_url(job_id) ⇒ Object
- .update_results_url(job_id) ⇒ Object
Class Method Details
.complete_url(job_id) ⇒ Object
28 29 30 |
# File 'lib/hive/paths/jobs.rb', line 28 def complete_url(job_id) "#{job_base(job_id)}/complete" end |
.end_url(job_id) ⇒ Object
16 17 18 |
# File 'lib/hive/paths/jobs.rb', line 16 def end_url(job_id) "#{job_base(job_id)}/end" end |
.error_url(job_id) ⇒ Object
32 33 34 |
# File 'lib/hive/paths/jobs.rb', line 32 def error_url(job_id) "#{job_base(job_id)}/error" end |
.job_base(job_id) ⇒ Object
36 37 38 |
# File 'lib/hive/paths/jobs.rb', line 36 def job_base(job_id) "#{jobs_base}/#{job_id.to_s}" end |
.prepare_url(job_id) ⇒ Object
8 9 10 |
# File 'lib/hive/paths/jobs.rb', line 8 def prepare_url(job_id) "#{job_base(job_id)}/prepare" end |
.report_artifacts_url(job_id) ⇒ Object
24 25 26 |
# File 'lib/hive/paths/jobs.rb', line 24 def report_artifacts_url(job_id) "#{job_base(job_id)}/report_artifacts" end |
.start_url(job_id) ⇒ Object
12 13 14 |
# File 'lib/hive/paths/jobs.rb', line 12 def start_url(job_id) "#{job_base(job_id)}/start" end |
.update_results_url(job_id) ⇒ Object
20 21 22 |
# File 'lib/hive/paths/jobs.rb', line 20 def update_results_url(job_id) "#{job_base(job_id)}/update_results" end |