From 35b7a5395524d25e3bb9c20b473f1a1eb6970b6f Mon Sep 17 00:00:00 2001 From: Riyad Preukschas Date: Fri, 26 Oct 2012 00:24:16 +0200 Subject: [PATCH] Reorder methods in Gitlab::Satellite --- lib/gitlab/satellite.rb | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/lib/gitlab/satellite.rb b/lib/gitlab/satellite.rb index 9d8dfb8e..64875f3f 100644 --- a/lib/gitlab/satellite.rb +++ b/lib/gitlab/satellite.rb @@ -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