class ActiveSupport::FileUpdateChecker

def execute_if_updated

Execute the block given if updated.
def execute_if_updated
  if updated?
    yield if block_given?
    execute
    true
  else
    false
  end
end