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

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

Constructor Details

#initializeCollectionRoot

Returns a new instance of CollectionRoot.



439
440
441
442
# File 'lib/arvados/collection.rb', line 439

def initialize
  super("")
  setup
end

Instance Method Details

#check_can_merge(src_item, key) ⇒ Object



450
451
452
453
454
455
456
# File 'lib/arvados/collection.rb', line 450

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

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



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

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