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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
a4460f42
Commit
a4460f42
authored
Feb 13, 2017
by
Gabriel Mazetto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a few method signature checks
parent
44273597
Changes
2
Show 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 @
a4460f42
...
@@ -11,7 +11,7 @@ module SystemCheck
...
@@ -11,7 +11,7 @@ module SystemCheck
# @param [Array<BaseCheck>] checks classes of corresponding checks to be executed in the same order
# @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
# @param [BaseExecutor] executor_klass optionally specifiy a different executor class
def
self
.
run
(
component
,
checks
=
[],
executor_klass
=
SimpleExecutor
)
def
self
.
run
(
component
,
checks
=
[],
executor_klass
=
SimpleExecutor
)
unless
executor_klass
.
is_a?
BaseExecutor
unless
executor_klass
<
BaseExecutor
raise
ArgumentError
,
'Invalid executor'
raise
ArgumentError
,
'Invalid executor'
end
end
...
...
lib/system_check/base_executor.rb
View file @
a4460f42
...
@@ -17,7 +17,7 @@ module SystemCheck
...
@@ -17,7 +17,7 @@ module SystemCheck
#
#
# @param [BaseCheck] check class
# @param [BaseCheck] check class
def
<<
(
check
)
def
<<
(
check
)
raise
ArgumentError
unless
check
.
is_a?
BaseCheck
raise
ArgumentError
unless
check
<
BaseCheck
@checks
<<
check
@checks
<<
check
end
end
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