Commit 35b7a5395524d25e3bb9c20b473f1a1eb6970b6f

Authored by Riyad Preukschas
1 parent 8778961d

Reorder methods in Gitlab::Satellite

Showing 1 changed file with 13 additions and 14 deletions   Show diff stats
lib/gitlab/satellite.rb
... ... @@ -5,20 +5,8 @@ module Gitlab
5 5  
6 6 attr_accessor :project
7 7  
8   - def initialize project
9   - self.project = project
10   - end
11   -
12   - def create
13   - `git clone #{project.url_to_repo} #{path}`
14   - end
15   -
16   - def path
17   - Rails.root.join("tmp", "repo_satellites", project.path)
18   - end
19   -
20   - def exists?
21   - File.exists? path
  8 + def initialize(project)
  9 + @project = project
22 10 end
23 11  
24 12 #will be deleted all branches except PARKING_BRANCH
... ... @@ -37,5 +25,16 @@ module Gitlab
37 25 end
38 26 end
39 27  
  28 + def create
  29 + `git clone #{project.url_to_repo} #{path}`
  30 + end
  31 +
  32 + def exists?
  33 + File.exists? path
  34 + end
  35 +
  36 + def path
  37 + Rails.root.join("tmp", "repo_satellites", project.path)
  38 + end
40 39 end
41 40 end
... ...