Commit 35b7a539 authored by Riyad Preukschas's avatar Riyad Preukschas

Reorder methods in Gitlab::Satellite

parent 8778961d
...@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment