https://github.com/populatetools/gobierto_budgets_data
Gobierto data configuration and utilities
https://github.com/populatetools/gobierto_budgets_data
Last synced: about 1 month ago
JSON representation
Gobierto data configuration and utilities
- Host: GitHub
- URL: https://github.com/populatetools/gobierto_budgets_data
- Owner: PopulateTools
- Created: 2018-05-29T13:09:45.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2025-02-20T05:13:58.000Z (over 1 year ago)
- Last Synced: 2025-02-20T06:23:50.069Z (over 1 year ago)
- Language: Ruby
- Size: 534 KB
- Stars: 0
- Watchers: 7
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Gobierto budgets data
Gobierto budgets data is a Ruby gems that contains some classes, constants and helpers to help load data
into [Gobierto](https://gobierto.es) instances.
## How to use this gem
Add this line to your `Gemfile`:
`gem "gobierto_budgets_data"`
## Requirements
You should define the following environment variables in the application:
- `GOBIERTO_S3_BUCKET_NAME`: S3 bucket name where files will be uploaded
- `GOBIERTO_AWS_REGION`: S3 region name
- `GOBIERTO_AWS_ACCESS_KEY_ID`: S3 access key
- `GOBIERTO_AWS_SECRET_ACCESS_KEY`: S3 secret key
- `ELASTICSEARCH_URL`: Elasticsearch URL
- `ELASTICSEARCH_WRITING_URL`: Elasticsearch URL with write enabled
If you want to load Rake tasks you should include this snippet in the `Rakefile`:
```
# Load tasks from gobierto_budgets_data
spec = Gem::Specification.find_by_name "gobierto_budgets_data"
load "#{spec.gem_dir}/lib/tasks/data.rake"
load "#{spec.gem_dir}/lib/tasks/budgets-import.rake"
load "#{spec.gem_dir}/lib/tasks/elastic_search_schemas.rake"
```