# Mark repository as synced using atomic conditions
#
# @return [Boolean] whether the update was successful
# @param [String] type must be one of the values in TYPES
# @see REGISTRY_TYPES
defmark_synced_atomically(type)
# Indicates whether the project is dirty (needs to be synced).
#
...
...
@@ -233,4 +269,12 @@ class Geo::ProjectRegistry < Geo::BaseRegistry
num_rows>0
end
# Make sure informed type is one of the allowed values
#
# @param [String] type must be one of the values in TYPES otherwise it will fail
# @see REGISTRY_TYPES
defensure_valid_type!(type)
raiseArgumentError,"Invalid type: '#{type.inspect}' informed. Must be one of the following: #{REGISTRY_TYPES.map{|type|"'#{type}'"}.join(', ')}"unlessREGISTRY_TYPES.include?(type.to_sym)