{"id":13505799,"url":"https://github.com/dxw/terrafile","last_synced_at":"2025-04-24T00:09:27.295Z","repository":{"id":33288254,"uuid":"156686619","full_name":"dxw/terrafile","owner":"dxw","description":"Install Terraform modules using a Terrafile","archived":false,"fork":false,"pushed_at":"2025-04-17T00:50:43.000Z","size":54,"stargazers_count":2,"open_issues_count":4,"forks_count":2,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-04-17T13:51:49.738Z","etag":null,"topics":["tech-ops"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dxw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-11-08T10:02:33.000Z","updated_at":"2024-10-29T12:01:43.000Z","dependencies_parsed_at":"2024-01-03T02:28:31.492Z","dependency_job_id":"408152c8-fb58-46db-966a-fc717ec54394","html_url":"https://github.com/dxw/terrafile","commit_stats":{"total_commits":25,"total_committers":7,"mean_commits":"3.5714285714285716","dds":"0.43999999999999995","last_synced_commit":"d2250614de79b05afe57b20982b4e7b447654282"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dxw%2Fterrafile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dxw%2Fterrafile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dxw%2Fterrafile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dxw%2Fterrafile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dxw","download_url":"https://codeload.github.com/dxw/terrafile/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249418610,"owners_count":21268466,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["tech-ops"],"created_at":"2024-08-01T00:01:14.068Z","updated_at":"2025-04-24T00:09:27.275Z","avatar_url":"https://github.com/dxw.png","language":"Ruby","funding_links":[],"categories":["Tools"],"sub_categories":["Miscellaneous","Community providers"],"readme":"# Terrafile\n\nThis gem provides a `terrafile` executable (Ruby) to install a Terraform project's modules using `git`. \n\nThe idea of using a 'Terrafile' (like a 'Puppetfile' or a 'Gemfile') to manage a project's dependencies comes from Ben Snape and this code is based on his blog post [http://bensnape.com/2016/01/14/terraform-design-patterns-the-terrafile/](http://bensnape.com/2016/01/14/terraform-design-patterns-the-terrafile/).\n\nConventions:\n\n- a project's modules are described in a `Terrafile` located at the root of the project\n- terraform modules are installed in `vendor/terraform_modules`   \n\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'terrafile'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install terrafile\n\n## Usage\n\nInvoke the executable from your shell:\n\n    $ terrafile\n\nto install the modules listed in `Terrafile` into `vendor/terraform_modules`.\n\n## Dependencies\n\n- git\n- Ruby (\u003e= 2.7.6)\n\n## Development\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n### Installing gem in development\n\n- `gem build terrafile.gemspec`\n- `gem install terrafile-*.gem`\n\nThen you can run `$ terrafile` to run the latest version\n\n### Tests\n\nRun the test suite with: \n\n    rake test\n\nThe task will:\n\n- run unit tests with 'rspec'\n- enforce 100% coverage with 'simplecov'\n- lint the Ruby code with 'rubocop'\n- run integration tests with 'cucumber'\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/dxw/terrafile. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the Terrafile project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/dxw/terrafile/blob/master/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdxw%2Fterrafile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdxw%2Fterrafile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdxw%2Fterrafile/lists"}