Class: Mclone::Session::IntactTaskSet

Inherits:
SessionTaskSet show all
Defined in:
lib/mclone.rb

Overview

Session-bound set of intact tasks for which both source and destination volumes are loaded

Instance Method Summary collapse

Methods inherited from SessionTaskSet

#initialize

Methods inherited from TaskSet

#resolve

Methods inherited from ObjectSet

#>>, #[], #commit!, #each, #each_id, #empty?, #eql?, #hash, #id, #initialize, #merge!, #modified?, #object, #resolve, #size

Constructor Details

This class inherits a constructor from Mclone::Session::SessionTaskSet

Instance Method Details

#<<(task) ⇒ Object

Accept only intact tasks for which both source and destination volumes are loaded



675
676
677
# File 'lib/mclone.rb', line 675

def <<(task)
  @session.volumes.volume(task.source_id).nil? || @session.volumes.volume(task.destination_id).nil? ? task : super
end