From a477bbb3b12b1e3d9edf6e643a127054b0e94e26 Mon Sep 17 00:00:00 2001 From: hoatle Date: Mon, 20 Aug 2018 23:56:26 +0700 Subject: [PATCH] @ #440 | Location.sync should be fully implemented: clean up --- lib/teracy-dev/location.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/teracy-dev/location.rb b/lib/teracy-dev/location.rb index 3ef89613..0820d11a 100644 --- a/lib/teracy-dev/location.rb +++ b/lib/teracy-dev/location.rb @@ -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}") @@ -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 \ No newline at end of file