class Mclone::Volume::TaskSet

Volume-bound set of tasks belonging to the specific volume

Public Class Methods

new(volume) click to toggle source
Calls superclass method Mclone::ObjectSet::new
# File lib/mclone.rb, line 464
def initialize(volume)
  @volume = volume
  super()
end

Public Instance Methods

<<(task) click to toggle source

Accept only the tasks referencing the volume as either source or destination

Calls superclass method Mclone::TaskSet#<<
# File lib/mclone.rb, line 470
def <<(task)
  task.source_id == @volume.id || task.destination_id == @volume.id ? super : task
end