Skip to content

shinjiikeda/embulk-filter-script_ruby

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

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

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

Stars

Watchers

Forks

Packages

No packages published

Languages