blob: 2752954e9ca6597d857b137993c8eb476bb29975 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
class LintsController < ApplicationController
def show
end
def create
if params[:content].blank?
@status = false
@error = "Please provide content of your file"
else
@config_processor = GitlabCiYamlProcessor.new params[:content]
@status = true
end
rescue Psych::SyntaxError => e
@error = e.message
@status = false
rescue Exception => e
@error = "Undefined error"
@status = false
end
end
|