Class: Forematter::Commands::Touch

Inherits:
Forematter::CommandRunner show all
Defined in:
lib/forematter/commands/touch.rb

Instance Method Summary collapse

Methods inherited from Forematter::CommandRunner

#call

Instance Method Details

#runObject



37
38
39
40
41
42
# File 'lib/forematter/commands/touch.rb', line 37

def run
  files_with(field).each do |file|
    file[field] = now
    file.write
  end
end