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
35b7a539
Commit
35b7a539
authored
Oct 26, 2012
by
Riyad Preukschas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reorder methods in Gitlab::Satellite
parent
8778961d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
14 deletions
+13
-14
lib/gitlab/satellite.rb
lib/gitlab/satellite.rb
+13
-14
No files found.
lib/gitlab/satellite.rb
View file @
35b7a539
...
@@ -5,20 +5,8 @@ module Gitlab
...
@@ -5,20 +5,8 @@ module Gitlab
attr_accessor
:project
attr_accessor
:project
def
initialize
project
def
initialize
(
project
)
self
.
project
=
project
@project
=
project
end
def
create
`git clone
#{
project
.
url_to_repo
}
#{
path
}
`
end
def
path
Rails
.
root
.
join
(
"tmp"
,
"repo_satellites"
,
project
.
path
)
end
def
exists?
File
.
exists?
path
end
end
#will be deleted all branches except PARKING_BRANCH
#will be deleted all branches except PARKING_BRANCH
...
@@ -37,5 +25,16 @@ module Gitlab
...
@@ -37,5 +25,16 @@ module Gitlab
end
end
end
end
def
create
`git clone
#{
project
.
url_to_repo
}
#{
path
}
`
end
def
exists?
File
.
exists?
path
end
def
path
Rails
.
root
.
join
(
"tmp"
,
"repo_satellites"
,
project
.
path
)
end
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