Class: Mclone::Session::IntactTaskSet
- Inherits:
-
SessionTaskSet
- Object
- ObjectSet
- TaskSet
- SessionTaskSet
- Mclone::Session::IntactTaskSet
- 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
-
#<<(task) ⇒ Object
Accept only intact tasks for which both source and destination volumes are loaded.
Methods inherited from SessionTaskSet
Methods inherited from TaskSet
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 |