Class: RedpenRuby::Process

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

Instance Method Summary collapse

Instance Method Details

#format_redpen_ruby_output(message, version) ⇒ Object



8
9
10
# File 'lib/redpen_ruby/process.rb', line 8

def format_redpen_ruby_output(message, version)
  FormatMessage.new(message, version)
end

#redpen_ruby(config, target) ⇒ Object



3
4
5
6
# File 'lib/redpen_ruby/process.rb', line 3

def redpen_ruby(config, target)
  redpen_bin = File.expand_path(File.dirname(__FILE__) + '/../redpen-cli-1.1/bin/redpen')
  format_redpen_ruby_output(`#{redpen_bin} -c #{config} #{target} 2>&1`, `#{redpen_bin} -v`)
end