Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

embulk filter script_ruby

Resources

License

Packages

No packages published

Languages