Class: Arv::Collection::CollectionRoot

Inherits:
CollectionStream show all
Defined in:
lib/arvados/collection.rb

Instance Attribute Summary

Attributes inherited from CollectionItem

#name, #path

Instance Method Summary collapse

Methods inherited from CollectionStream

#[], #add_copy, #check_can_add_copy, #copy_named, #each_file_path, #file?, #file_at, #find, human_name, #leaf?, #manifest_text, #merge, #stream_at

Constructor Details

#initializeCollectionRoot



431
432
433
434
# File 'lib/arvados/collection.rb', line 431

def initialize
  super("")
  setup
end

Instance Method Details

#check_can_merge(src_item, key) ⇒ Object



442
443
444
445
446
447
448
# File 'lib/arvados/collection.rb', line 442

def check_can_merge(src_item, key)
  if items.include?(key)
    super
  else
    raise_root_write_error(key)
  end
end

#delete(name, opts = {}) ⇒ Object



436
437
438
439
440
# File 'lib/arvados/collection.rb', line 436

def delete(name, opts={})
  super
  # If that didn't fail, it deleted the . stream.  Recreate it.
  setup
end