foreman_pipeline / app / lib / actions / foreman_pipeline / job / run_job_manually.rb @ be52ca64
1 |
module Actions |
---|---|
2 |
module ForemanPipeline |
3 |
module Job |
4 |
class RunJobManually < Actions::EntryAction |
5 |
|
6 |
def plan(job) |
7 |
if job.is_valid? && job.target_cv_version_avail? && !job.version_already_promoted?
|
8 |
plan_action(DeployNewHost, job)
|
9 |
plan_self(:info => "Manually triggered job started.") |
10 |
else
|
11 |
plan_self(:info => "Manually triggered job execution skipped, check job configuration.") |
12 |
end
|
13 |
end
|
14 |
|
15 |
def run |
16 |
output = input |
17 |
end
|
18 |
end
|
19 |
end
|
20 |
end
|
21 |
end
|