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
Jérome Perrin
gitlab-ce
Commits
5d963fcc
Commit
5d963fcc
authored
Aug 08, 2017
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
We shouldn't include utility methods everywhere
parent
e26acdb1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
lib/tasks/gitlab/task_helpers.rb
lib/tasks/gitlab/task_helpers.rb
+2
-0
spec/tasks/gitlab/shell_rake_spec.rb
spec/tasks/gitlab/shell_rake_spec.rb
+2
-1
No files found.
lib/tasks/gitlab/task_helpers.rb
View file @
5d963fcc
...
@@ -5,6 +5,8 @@ module Gitlab
...
@@ -5,6 +5,8 @@ module Gitlab
TaskAbortedByUserError
=
Class
.
new
(
StandardError
)
TaskAbortedByUserError
=
Class
.
new
(
StandardError
)
module
TaskHelpers
module
TaskHelpers
extend
self
# Ask if the user wants to continue
# Ask if the user wants to continue
#
#
# Returns "yes" the user chose to continue
# Returns "yes" the user chose to continue
...
...
spec/tasks/gitlab/shell_rake_spec.rb
View file @
5d963fcc
...
@@ -22,7 +22,8 @@ describe 'gitlab:shell rake tasks' do
...
@@ -22,7 +22,8 @@ describe 'gitlab:shell rake tasks' do
describe
'create_hooks task'
do
describe
'create_hooks task'
do
it
'calls gitlab-shell bin/create_hooks'
do
it
'calls gitlab-shell bin/create_hooks'
do
expect_any_instance_of
(
Object
).
to
receive
(
:system
)
expect_any_instance_of
(
Object
).
to
receive
(
:system
)
.
with
(
"
#{
Gitlab
.
config
.
gitlab_shell
.
path
}
/bin/create-hooks"
,
*
repository_storage_paths_args
)
.
with
(
"
#{
Gitlab
.
config
.
gitlab_shell
.
path
}
/bin/create-hooks"
,
*
Gitlab
::
TaskHelpers
.
repository_storage_paths_args
)
run_rake_task
(
'gitlab:shell:create_hooks'
)
run_rake_task
(
'gitlab:shell:create_hooks'
)
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