Sha256: d4b252accc13b1622e22afb4b9d8cc43db6862f821359f8869cd07a58e21c64d

Contents?: true

Size: 358 Bytes

Versions: 8

Compression:

Stored size: 358 Bytes

Contents

require "capture_io"

module EmbulkRunHelper
  include CaptureIo

  def embulk_guess(seed_path, dest_path)
    silence do
      embulk_exec(%W(guess -g query_string #{seed_path} -o #{dest_path}))
    end
  end

  def embulk_run(yaml_path)
    embulk_exec(%W(run #{yaml_path}))
  end

  def embulk_exec(cli_options = [])
    Embulk.run(cli_options)
  end
end

Version data entries

8 entries across 8 versions & 3 rubygems

Version Path
embulk-parser-fixed-0.1.0 test/embulk_run_helper.rb
embulk-parser-unpack-0.1.5 test/embulk_run_helper.rb
embulk-parser-query_string-0.3.2 test/embulk_run_helper.rb
embulk-parser-query_string-0.3.1 test/embulk_run_helper.rb
embulk-parser-query_string-0.3.0 test/embulk_run_helper.rb
embulk-parser-query_string-0.2.1 test/embulk_run_helper.rb
embulk-parser-query_string-0.2.0 test/embulk_run_helper.rb
embulk-parser-query_string-0.1.3 test/embulk_run_helper.rb