LoginSignup
4
4

More than 5 years have passed since last update.

embulk_rubyというgemを作成中

Posted at

embulk便利

なんだけど、実行結果を受け取れなくて辛い。
似たような実行コードを書き散らさないといけない

解決

wrapperのgemをつくった。

とりあえずerrorとかは受け取れる。
あとは結果を解析して適切にraiseしたりreturnできればつかえる

example.rb
  EmbulkRuby::Embulk.exec config:"./example.yml", bundler: "./bundler"

systemuをつかってるので
[status, stdout, stderr]
の配列でreturnしてます。

このへんは今後いじる予定。

4
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4