lib/doggy/cli/pull.rb in doggy-2.0.27 vs lib/doggy/cli/pull.rb in doggy-2.0.28

- old
+ new

@@ -71,9 +71,14 @@ local_resources = klass.all_local remote_resources = klass.all klass.assign_paths(remote_resources, local_resources) remote_resources.each(&:save_local) + + ids = local_resources.map(&:id) - remote_resources.map(&:id) + local_resources.each do |local_resource| + local_resource.destroy_local if ids.include?(local_resource.id) + end end end end