lib/judges/commands/pull.rb in judges-0.11.0 vs lib/judges/commands/pull.rb in judges-0.12.0
- old
+ new
@@ -45,9 +45,10 @@
loog: @loog
)
name = args[0]
elapsed(@loog) do
if baza.name_exists?(name)
+ baza.lock(name, opts['owner'])
fb.import(baza.pull(wait(baza, baza.recent(name), opts['wait'])))
Judges::Impex.new(@loog, args[1]).export(fb)
throw :"Pulled #{fb.size} facts by the name '#{name}'"
else
throw :"There is nothing to pull, the name '#{name}' is absent on the server"