Skip to content

Commit

Permalink
@ #440 | Location.sync should be fully implemented: clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
hoatle committed Aug 20, 2018
1 parent 96b297e commit a477bbb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/teracy-dev/location.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,12 @@ def self.sync(location, sync_existing = true)
def self.git_sync(location, sync_existing)
@@logger.debug("git_sync: location: #{location}; sync_existing: #{sync_existing}")

git = location['git'] # maybe we'll support for protocols
git = location['git']
branch = location['tag'] ||= location['branch']
ref = location['ref']
lookup_path = location['lookup_path']
path = location['path']
if File.exist? path
# only check if the extension is in the default extensions directory
if sync_existing == true
@@logger.debug("git_sync: sync existing, location: #{location}")

Expand Down Expand Up @@ -63,7 +62,7 @@ def self.git_sync(location, sync_existing)
end
end

# add other types of protocol sync here
# add other types of sync protocols here when required/ implemented

end
end

0 comments on commit a477bbb

Please sign in to comment.