File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,10 @@ def exec(command, directory)
6969 def find_project
7070 identifier = get_identifier
7171 project = Project . find_by_identifier ( identifier . downcase )
72- fail ActiveRecord ::RecordNotFound , "No project found with identifier '#{ identifier } '" if project . nil?
72+ fail (
73+ ActiveRecord ::RecordNotFound ,
74+ "No project found with identifier '#{ identifier } '"
75+ ) if project . nil?
7376 project
7477 end
7578
@@ -96,7 +99,10 @@ def find_repositories
9699 end
97100
98101 if param_repo . nil? || param_repo . length == 0
99- logger . info { " GithubHook: The repository '#{ params [ :repository_id ] } ' isn't in the list of projects repos. Updating all repos instead." }
102+ logger . info {
103+ "GithubHook: The repository '#{ params [ :repository_id ] } ' isn't " \
104+ "in the list of projects repos. Updating all repos instead."
105+ }
100106
101107 else
102108 repositories = param_repo
@@ -111,7 +117,10 @@ def find_repositories
111117 # identifier.
112118 def get_identifier
113119 identifier = get_project_name
114- fail ActiveRecord ::RecordNotFound , "Project identifier not specified" if identifier . nil?
120+ fail (
121+ ActiveRecord ::RecordNotFound ,
122+ "Project identifier not specified"
123+ ) if identifier . nil?
115124 identifier
116125 end
117126
You can’t perform that action at this time.
0 commit comments