This repository include sample recipes for tumugi
- Recipe 1: Download file and save it as localfile
- Recipe 2: Export BigQuery query result to Google Drive and notify URL to Slack
- Ruby >= 2.3
- Bundler
Copy .env.template
to .env
and update ENV vars to yours.
export GCP_PRIVATE_KEY_FILE="/path/to/private/key.json"
export GOOGLE_DRIVE_FOLDER_ID="YOUR_FOLDER_ID"
export SLACK_WEBHOOK_URL="https://hooks.slack.com/services/xxx"
Then run bundle install
to install dependencies.
$ bundle install
$ bundle exec tumugi run -f recipes/recipe1 -p day:2016-05-02 main
$ bundle exec tumugi run -f recipes/recipe2 main
The gem is available as open source under the terms of the Apache License Version 2.0.