Reorder methods in Gitlab::Satellite

This commit is contained in:
Riyad Preukschas 2012-10-26 00:24:16 +02:00
parent 8778961d33
commit 35b7a53955

View file

@ -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
@ -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