Skip to content
Snippets Groups Projects
Commit 35b7a539 authored by Riyad Preukschas's avatar Riyad Preukschas
Browse files

Reorder methods in Gitlab::Satellite

parent 8778961d
No related branches found
No related tags found
1 merge request!1818Refactor Satellite Code
Loading
Loading
@@ -5,20 +5,8 @@ module Gitlab
 
attr_accessor :project
 
def initialize project
self.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
def initialize(project)
@project = project
end
 
#will be deleted all branches except PARKING_BRANCH
Loading
Loading
@@ -37,5 +25,16 @@ module Gitlab
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment