lib/navo.rb
# Synchronize access. If a key is specified, synchronizes access for that
# key. This allows us to ensure only one thread modifies a particular
# resource (say building a particular Dockerfile).
Synchronize access. If a key is specified, synchronizes access for that
key. This allows us to ensure only one thread modifies a particular
resource (say building a particular Dockerfile).
Synchronize access . If a key is specified synchronizes access for that key . This allows us to ensure only one thread modifies a particular resource ( say building a particular Dockerfile ) .
def synchronize(key = nil)
      mutex[key].synchronize do
        yield
      end
    end
def synchronize ( key = nil ) mutex [ key ] . synchronize do yield end end
Synchronize access.
Synchronize access .
key
<not_specific>