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
8e3a2def
Commit
8e3a2def
authored
Aug 19, 2012
by
randx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Project /lib cleanup
parent
d656cb74
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
74 deletions
+0
-74
lib/color.rb
lib/color.rb
+0
-31
lib/tasks/dev/repo.rake
lib/tasks/dev/repo.rake
+0
-26
lib/tasks/dev/tests.rake
lib/tasks/dev/tests.rake
+0
-10
lib/tasks/dev/user.sh
lib/tasks/dev/user.sh
+0
-7
No files found.
lib/color.rb
deleted
100644 → 0
View file @
d656cb74
module
Color
extend
self
def
colorize
(
text
,
color_code
)
"
\033
[
#{
color_code
}#{
text
}
\033
[0m"
end
def
red
(
text
)
colorize
(
text
,
"31m"
)
end
def
green
(
text
)
colorize
(
text
,
"32m"
)
end
def
yellow
(
text
)
colorize
(
text
,
"93m"
)
end
def
command
(
string
)
`
#{
string
}
`
if
$?
.
to_i
>
0
puts
red
" ==
#{
string
}
- FAIL"
puts
red
" == Error during configure"
exit
else
puts
green
" ==
#{
string
}
- OK"
end
end
end
lib/tasks/dev/repo.rake
deleted
100644 → 0
View file @
d656cb74
namespace
:dev
do
desc
"Prepare for development (run dev_user.sh first)"
task
:repos
=>
:environment
do
key
=
`sudo -u gitlabdev -H cat /home/gitlabdev/.ssh/id_rsa.pub`
raise
"
\n
*** Run ./lib/tasks/dev/user.sh first ***
\n
"
if
key
.
empty?
Key
.
create
(
:user_id
=>
User
.
first
,
:key
=>
key
,
:title
=>
"gitlabdev"
)
puts
"
\n
*** Clone diaspora from github"
`sudo -u gitlabdev -H sh -c "cd /home/gitlabdev; git clone git://github.com/diaspora/diaspora.git /home/gitlabdev/diaspora"`
puts
"
\n
*** Push diaspora source to gitlab"
`sudo -u gitlabdev -H sh -c "cd /home/gitlabdev/diaspora; git remote add local git@localhost:diaspora.git; git push local master; git push local --tags; git checkout -b api origin/api; git push local api; git checkout -b heroku origin/heroku; git push local heroku"`
puts
"
\n
*** Clone rails from github"
`sudo -u gitlabdev -H sh -c "cd /home/gitlabdev; git clone git://github.com/rails/rails.git /home/gitlabdev/rails"`
puts
"
\n
*** Push rails source to gitlab"
`sudo -u gitlabdev -H sh -c "cd /home/gitlabdev/rails; git remote add local git@localhost:ruby_on_rails.git; git push local master; git push local --tags"`
puts
"
\n
*** Clone rubinius from github"
`sudo -u gitlabdev -H sh -c "cd /home/gitlabdev; git clone git://github.com/rubinius/rubinius.git /home/gitlabdev/rubinius"`
puts
"
\n
*** Push rubinius source to gitlab"
`sudo -u gitlabdev -H sh -c "cd /home/gitlabdev/rubinius; git remote add local git@localhost:rubinius.git; git push local master; git push local --tags"`
end
end
lib/tasks/dev/tests.rake
deleted
100644 → 0
View file @
d656cb74
namespace
:dev
do
desc
"DEV | Run cucumber and rspec"
task
:tests
do
[
"cucumber"
,
"rspec spec"
].
each
do
|
cmd
|
puts
"Starting to run
#{
cmd
}
..."
system
(
"export DISPLAY=:99.0 && bundle exec
#{
cmd
}
"
)
raise
"
#{
cmd
}
failed!"
unless
$?
.
exitstatus
==
0
end
end
end
lib/tasks/dev/user.sh
deleted
100755 → 0
View file @
d656cb74
sudo
adduser
\
--gecos
'gitlab dev user'
\
--disabled-password
\
--home
/home/gitlabdev
\
gitlabdev
sudo
-i
-u
gitlabdev
-H
sh
-c
"ssh-keygen -t rsa"
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