class Forematter::Commands::Set

Public Instance Methods

run() click to toggle source
# File lib/forematter/commands/set.rb, line 11
def run
  files.each do |file|
    file[field] = value
    file.write
  end
end

Protected Instance Methods

value() click to toggle source
Calls superclass method Forematter::CommandRunner#value
# File lib/forematter/commands/set.rb, line 20
def value
  val = super
  YAML.load(val)
rescue Psych::SyntaxError
  val
end