Skip to content

tumugi/tumugi-recipes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Recipes for tumugi

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

How to run

Prerquisities

  • Ruby >= 2.3
  • Bundler

Setup

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

Run recipe

$ bundle exec tumugi run -f recipes/recipe1 -p day:2016-05-02 main
$ bundle exec tumugi run -f recipes/recipe2 main

License

The gem is available as open source under the terms of the Apache License Version 2.0.

About

Example recipes for tumugi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages