embulk filter script_ruby
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib/embulk/filter
.gitignore
.reek
.rubocop.yml
.ruby-version
Gemfile
LICENSE.txt
README.md
Rakefile
embulk-filter-script_ruby.gemspec

README.md

Script Ruby filter plugin for Embulk

TODO: Write short description here and embulk-filter-script_ruby.gemspec file.

Overview

  • Plugin type: filter

Configuration

  • script: script file (string, required)
  • class: class name (string, required)
  • columns: output columns (array, default: null)

Example

filters:
  - type: script_ruby
    script: filter_hoge
    class: FilterHoge
    columns:
      - {name: id, type: string}
      ...

filter_hoge.rb

class FilterHoge
  def initialize()
    ...
  end
  
  def filter(record)
    ...
    record
  end
end
$ embulk run -I lib config.yml

Build

$ rake