class Perus::Pinger::Replace

Public Instance Methods

run() click to toggle source
# File lib/perus/pinger/commands/replace.rb, line 11
def run
    text = IO.read(options.path)
    text.gsub!(/#{options.grep}/, options.replacement)
    IO.write(options.path, text)
    true
end