Class: Rubu::StepAgedMark

Inherits:
Step show all
Defined in:
lib/rubu.rb

Overview

Date and Mark based Step.

Instance Attribute Summary

Attributes inherited from Step

#sources, #targets

Attributes inherited from Move

#errmsg, #output, #status, #subs

Instance Method Summary (collapse)

Methods inherited from Step

#date_update?, #fork, #initialize, #mark_update?, #rbrun, #rbuse, #run, #setup, #shrun, #shuse, #source, #target, use, usezip, #walk, zip

Methods included from MoveStyles

#parallel_run, #serial_run

Methods inherited from Move

#display, #error, #host, #host_in, #host_out, #initialize, #use

Constructor Details

This class inherits a constructor from Rubu::Step

Instance Method Details

- (Boolean) update?

Update if Step source is newer than target and also target generated from Step source is different from old target.

Returns:

  • (Boolean)


689
690
691
692
693
694
695
696
# File 'lib/rubu.rb', line 689

def update?
    if date_update?
        puts "Hello"
        mark_update?
    else
        false
    end
end