Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
f141eeae
Commit
f141eeae
authored
Feb 13, 2017
by
Gabriel Mazetto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a few method signature checks
parent
d3cc6396
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
lib/system_check.rb
lib/system_check.rb
+1
-1
lib/system_check/base_executor.rb
lib/system_check/base_executor.rb
+1
-1
No files found.
lib/system_check.rb
View file @
f141eeae
...
...
@@ -11,7 +11,7 @@ module SystemCheck
# @param [Array<BaseCheck>] checks classes of corresponding checks to be executed in the same order
# @param [BaseExecutor] executor_klass optionally specifiy a different executor class
def
self
.
run
(
component
,
checks
=
[],
executor_klass
=
SimpleExecutor
)
unless
executor_klass
.
is_a?
BaseExecutor
unless
executor_klass
<
BaseExecutor
raise
ArgumentError
,
'Invalid executor'
end
...
...
lib/system_check/base_executor.rb
View file @
f141eeae
...
...
@@ -17,7 +17,7 @@ module SystemCheck
#
# @param [BaseCheck] check class
def
<<
(
check
)
raise
ArgumentError
unless
check
.
is_a?
BaseCheck
raise
ArgumentError
unless
check
<
BaseCheck
@checks
<<
check
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment