Class: Forematter::Commands::Set

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

Instance Method Summary collapse

Methods inherited from Forematter::CommandRunner

#call

Instance Method Details

#runObject



11
12
13
14
15
16
# File 'lib/forematter/commands/set.rb', line 11

def run
  files.each do |file|
    file[field] = value
    file.write
  end
end