class Nanoc::External::Filter
Public Instance Methods
run(content, params = {})
click to toggle source
# File lib/nanoc/external/filter.rb, line 8 def run(content, params = {}) cmd = params.fetch(:exec) opts = params.fetch(:options, []) command = TTY::Command.new(printer: :null) command.run(cmd, *opts, input: content).out end