lib/manifest_handler.rb in inqlude-0.0.4 vs lib/manifest_handler.rb in inqlude-0.0.5

- old
+ new

@@ -33,13 +33,15 @@ end nil end def read_remote - fetch_remote + if !@settings.offline + fetch_remote + end - Dir.glob( "#{@settings.manifest_path}/*.manifest" ).sort.each do |filename| + Dir.glob( "#{@settings.manifest_path}/*/*.manifest" ).sort.each do |filename| File.open filename do |file| manifests.push JSON file.read end end end @@ -47,10 +49,10 @@ def fetch_remote if !File.exists? @settings.manifest_path + "/.git" if File.exists? @settings.manifest_path system "rm -r #{@settings.manifest_path}" end - system "git clone https://github.com/cornelius/inqlude_data.git " + + system "git clone https://github.com/cornelius/inqlude-data.git " + "#{@settings.manifest_path}" else system "cd #{@settings.manifest_path}; git pull" end end