define replace_matching_line( $match, $replace ) {
exec { "/usr/bin/ruby -i -p -e 'sub(%r{$match}, \'$replace\')' $name":
onlyif => "/bin/grep -E '$match' $name",
}
}
|
Pastie
Support Pastie
or read my
Pastie << self
blog
define replace_matching_line( $match, $replace ) {
exec { "/usr/bin/ruby -i -p -e 'sub(%r{$match}, \'$replace\')' $name":
onlyif => "/bin/grep -E '$match' $name",
}
}
|