{"id":21202423,"url":"https://github.com/infrablocks/rake_terraform","last_synced_at":"2025-04-09T10:06:38.228Z","repository":{"id":18796318,"uuid":"85331806","full_name":"infrablocks/rake_terraform","owner":"infrablocks","description":"Rake tasks for running terraform.","archived":false,"fork":false,"pushed_at":"2025-03-27T07:46:53.000Z","size":536,"stargazers_count":11,"open_issues_count":5,"forks_count":8,"subscribers_count":11,"default_branch":"main","last_synced_at":"2025-04-02T08:08:51.623Z","etag":null,"topics":["infrablocks","rake","rake-task","rake-taskset","ruby","ruby-gem","ruby-library","rubygem","taskset","terraform"],"latest_commit_sha":null,"homepage":null,"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/infrablocks.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-03-17T16:19:04.000Z","updated_at":"2025-03-27T07:46:56.000Z","dependencies_parsed_at":"2023-01-16T21:45:41.813Z","dependency_job_id":"c3b56d75-1414-461b-85ba-4f170dedc84c","html_url":"https://github.com/infrablocks/rake_terraform","commit_stats":{"total_commits":303,"total_committers":10,"mean_commits":30.3,"dds":0.5346534653465347,"last_synced_commit":"700e296e7e8713713716d50d70a418d0b9c44302"},"previous_names":[],"tags_count":122,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infrablocks%2Frake_terraform","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infrablocks%2Frake_terraform/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infrablocks%2Frake_terraform/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infrablocks%2Frake_terraform/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/infrablocks","download_url":"https://codeload.github.com/infrablocks/rake_terraform/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248018060,"owners_count":21034048,"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":["infrablocks","rake","rake-task","rake-taskset","ruby","ruby-gem","ruby-library","rubygem","taskset","terraform"],"created_at":"2024-11-20T20:15:55.395Z","updated_at":"2025-04-09T10:06:38.206Z","avatar_url":"https://github.com/infrablocks.png","language":"Ruby","readme":"# RakeTerraform\n\nProvides rake tasks for executing terraform commands as part of a rake build.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'rake_terraform'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install rake_terraform\n\n## Usage\n\nHere is sample code to add to your `Rakefile`:\n\n```ruby\nrequire 'rake_terraform'\n\nRakeTerraform.define_installation_tasks(\n    path: File.join(Dir.pwd, 'vendor', 'terraform'),\n    version: '0.11.8')\n\nnamespace :network do\n  RakeTerraform.define_command_tasks do |t|\n    t.configuration_name = 'network'\n    t.source_directory = 'infra/network'\n    t.work_directory = 'build'\n    t.backend_config = {\n        bucket: 'some-bucket',\n        key: 'some-key.tfstate',\n        region: 'eu-west-2'\n    }\n    t.vars = {\n        first_thing: '1',\n        second_thing: '2'\n    }\n  end\nend\n```\n\nNow you can execute rake commands:\n\n    $ rake network:validate\n    $ rake network:plan\n    $ rake network:provision\n    $ rake network:output\n    $ rake network:destroy\n\nFor a complete example see https://github.com/infrablocks/end-to-end-concourse-ci\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run\n`rake spec` to run the tests. You can also run `bin/console` for an interactive\nprompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To\nrelease a new version, update the version number in `version.rb`, and then run\n`bundle exec rake release`, which will create a git tag for the version, push\ngit commits and tags, and push the `.gem` file to\n[rubygems.org](https://rubygems.org).\n\n### Managing CircleCI keys\n\nTo encrypt a GPG key for use by CircleCI:\n\n```bash\nopenssl aes-256-cbc \\\n  -e \\\n  -md sha1 \\\n  -in ./config/secrets/ci/gpg.private \\\n  -out ./.circleci/gpg.private.enc \\\n  -k \"\u003cpassphrase\u003e\"\n```\n\nTo check decryption is working correctly:\n\n```bash\nopenssl aes-256-cbc \\\n  -d \\\n  -md sha1 \\\n  -in ./.circleci/gpg.private.enc \\\n  -k \"\u003cpassphrase\u003e\"\n```\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at \nhttps://github.com/infrablocks/rake_terraform. This project is intended to be a\nsafe, welcoming space for collaboration, and contributors are expected to adhere\nto 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 \n[MIT License](http://opensource.org/licenses/MIT).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfrablocks%2Frake_terraform","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finfrablocks%2Frake_terraform","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfrablocks%2Frake_terraform/lists"}