Class: Redpen::Process

Inherits:
Object
  • Object
show all
Defined in:
lib/redpen/process.rb

Instance Method Summary collapse

Instance Method Details

#run(config, target, format) ⇒ Object



6
7
8
9
# File 'lib/redpen/process.rb', line 6

def run(config, target, format)
  redpen_bin = File.expand_path('../../redpen-distribution-1.7.0/bin/redpen', __FILE__)
  Result.new(*Open3.capture3("#{redpen_bin} -c #{config} -f #{format} #{target}"))
end