Sha256: b63ce06e8ce3ddab3a3cc68ceb27a7459bf91c21fc4b56165470209a41d9d4f3

Contents?: true

Size: 382 Bytes

Versions: 3

Compression:

Stored size: 382 Bytes

Contents

module RedpenRuby
  class Process
    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

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
redpen_ruby-0.4 lib/redpen_ruby/process.rb
redpen_ruby-0.3 lib/redpen_ruby/process.rb
redpen_ruby-0.2 lib/redpen_ruby/process.rb