lib/rubu.rb in rubu-0.0.2 vs lib/rubu.rb in rubu-0.0.3

- old
+ new

@@ -387,10 +387,16 @@ end # Configuration space for Rubu. + # + # Options: + # * serial - Force parallel executions to serial. + # * parmax - Limit the number of parallel executions. + # * verbose - Show command executions. + # * force - Force Step updates. class Order @@order = {} # Set Order entry value. @@ -571,10 +577,11 @@ # Check for mark (checksum) based update needs. def mark_update? unless date_update? + target.skip = true return false end # Check if targets are missing. unless target.exist? @@ -665,20 +672,20 @@ # Date based Step. class StepAged < Step # Update if Step source is newer than target. def update? - date_update? + Order[ :force ] || date_update? end end # Mark (checksum) based Step. class StepMark < Step # Update if target generated from Step source is different - # from old target. + # from old target in addition of being newer. def update? - mark_update? + Order[ :force ] || mark_update? end end # Trail with name. Trail is a collection of Steps and/or Trails.