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
5e73a3b1
Commit
5e73a3b1
authored
Dec 14, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove colored gem from upgrader script
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
ee53b739
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
lib/gitlab/upgrader.rb
lib/gitlab/upgrader.rb
+4
-5
No files found.
lib/gitlab/upgrader.rb
View file @
5e73a3b1
require
"colored"
require_relative
"version_info"
require_relative
"version_info"
module
Gitlab
module
Gitlab
class
Upgrader
class
Upgrader
def
execute
def
execute
puts
"GitLab
#{
current_version
.
major
}
upgrade tool"
.
yellow
puts
"GitLab
#{
current_version
.
major
}
upgrade tool"
puts
"Your version is
#{
current_version
}
"
puts
"Your version is
#{
current_version
}
"
puts
"Latest available version for GitLab
#{
current_version
.
major
}
is
#{
latest_version
}
"
puts
"Latest available version for GitLab
#{
current_version
.
major
}
is
#{
latest_version
}
"
...
@@ -62,12 +61,12 @@ module Gitlab
...
@@ -62,12 +61,12 @@ module Gitlab
def
upgrade
def
upgrade
update_commands
.
each
do
|
title
,
cmd
|
update_commands
.
each
do
|
title
,
cmd
|
puts
title
.
yellow
puts
title
puts
" ->
#{
cmd
}
"
puts
" ->
#{
cmd
}
"
if
system
(
cmd
)
if
system
(
cmd
)
puts
" -> OK"
.
green
puts
" -> OK"
else
else
puts
" -> FAILED"
.
red
puts
" -> FAILED"
puts
"Failed to upgrade. Try to repeat task or proceed with upgrade manually "
puts
"Failed to upgrade. Try to repeat task or proceed with upgrade manually "
exit
1
exit
1
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