Class: Nanoc::External::Filter
- Inherits:
-
Filter
- Object
- Filter
- Nanoc::External::Filter
- Defined in:
- lib/nanoc/external/filter.rb
Instance Method Summary collapse
Instance Method Details
#run(content, params = {}) ⇒ Object
8 9 10 11 12 13 14 |
# 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 |