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
61586093
Commit
61586093
authored
Apr 20, 2020
by
lauraMon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved file location, updated var name
parent
71b3b5b7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
ee/lib/tasks/gitlab/seed/metrics.rake
ee/lib/tasks/gitlab/seed/metrics.rake
+4
-4
spec/fixtures/lib/gitlab/metrics/dashboard/development_metrics.yml
...ures/lib/gitlab/metrics/dashboard/development_metrics.yml
+0
-0
No files found.
ee/lib/tasks/gitlab/seed/metrics.rake
View file @
61586093
...
...
@@ -29,8 +29,8 @@ namespace :gitlab do
)
project
=
Project
.
find
(
args
.
project_id
)
content
=
File
.
read
(
Rails
.
root
.
join
(
'spec'
,
'fixtures'
,
'metrics'
,
'dashboard'
,
'development_metrics.yml'
))
project
_attributes
=
[
content
=
File
.
read
(
Rails
.
root
.
join
(
'spec'
,
'fixtures'
,
'
lib'
,
'gitlab'
,
'
metrics'
,
'dashboard'
,
'development_metrics.yml'
))
file
_attributes
=
[
project
.
creator
,
'.gitlab/dashboards/development_metrics.yml'
,
content
,
...
...
@@ -41,11 +41,11 @@ namespace :gitlab do
]
begin
project
.
repository
.
create_file
(
*
project
_attributes
)
project
.
repository
.
create_file
(
*
file
_attributes
)
rescue
Gitlab
::
Git
::
Index
::
IndexError
=>
error
raise
error
unless
error
.
message
==
'A file with this name already exists'
project
.
repository
.
update_file
(
*
project
_attributes
)
project
.
repository
.
update_file
(
*
file
_attributes
)
end
end
end
...
...
spec/fixtures/metrics/dashboard/development_metrics.yml
→
spec/fixtures/
lib/gitlab/
metrics/dashboard/development_metrics.yml
View file @
61586093
File moved
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