debian-mirror-gitlab/app/controllers/projects/builds_controller.rb

22 lines
379 B
Ruby
Raw Normal View History

2015-10-24 18:46:33 +05:30
class Projects::BuildsController < Projects::ApplicationController
2017-09-10 17:25:29 +05:30
before_action :authorize_read_build!
2015-10-24 18:46:33 +05:30
def index
2017-09-10 17:25:29 +05:30
redirect_to project_jobs_path(project)
2015-10-24 18:46:33 +05:30
end
def show
2017-09-10 17:25:29 +05:30
redirect_to project_job_path(project, job)
2015-10-24 18:46:33 +05:30
end
2016-06-02 11:05:42 +05:30
def raw
2017-09-10 17:25:29 +05:30
redirect_to raw_project_job_path(project, job)
2016-06-02 11:05:42 +05:30
end
2015-10-24 18:46:33 +05:30
private
2017-09-10 17:25:29 +05:30
def job
@job ||= project.builds.find(params[:id])
2015-10-24 18:46:33 +05:30
end
end