This library provides information on the application hosting environment for
apps running on Google Cloud Platform. This includes information on the Google
compute product being used, the current project and credentials, and other
information surfaced via environment variables, the file system, and the
Metadata Server.
In general, Google provides official support for CRuby versions that are
actively supported by the Ruby Core team -- that is, Ruby versions that are
either in normal maintenance or in security maintenance -- and for about one
year after end of life. Older versions of Ruby may still work, but are
unsupported and not recommended. See
https://www.ruby-lang.org/en/downloads/branches/ for more details about the
Ruby-Core support schedule. See
https://cloud.google.com/ruby/getting-started/supported-ruby-versions for more
details about Google's Ruby support schedule.
Contributing
Contributions to this library are always welcome and highly encouraged.
Please note that this project is released with a Contributor Code of Conduct. By
participating in this project you agree to abide by its terms. See Code of
Conduct
for more information.
License
This library is licensed under Apache 2.0. Full license text is available in
LICENSE.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["Version latestkeyboard_arrow_down\n\n- [2.3.1 (latest)](/ruby/docs/reference/google-cloud-env/latest)\n- [2.3.0](/ruby/docs/reference/google-cloud-env/2.3.0)\n- [2.2.2](/ruby/docs/reference/google-cloud-env/2.2.2) \n\ngoogle-cloud-env\n================\n\nThis library provides information on the application hosting environment for\napps running on Google Cloud Platform. This includes information on the Google\ncompute product being used, the current project and credentials, and other\ninformation surfaced via environment variables, the file system, and the\nMetadata Server.\n\n- [google-cloud-env API documentation](https://googleapis.dev/ruby/google-cloud-env/latest)\n\nSupported Ruby Versions\n-----------------------\n\nThis library is supported on Ruby 3.0+.\n\nIn general, Google provides official support for CRuby versions that are\nactively supported by the Ruby Core team -- that is, Ruby versions that are\neither in normal maintenance or in security maintenance -- and for about one\nyear after end of life. Older versions of Ruby *may* still work, but are\nunsupported and not recommended. See\n\u003chttps://www.ruby-lang.org/en/downloads/branches/\u003e for more details about the\nRuby-Core support schedule. See\n\u003chttps://cloud.google.com/ruby/getting-started/supported-ruby-versions\u003e for more\ndetails about Google's Ruby support schedule.\n\nContributing\n------------\n\nContributions to this library are always welcome and highly encouraged.\n\nSee the [Contributing\nGuide](https://googleapis.dev/ruby/google-cloud-env/latest/file.CONTRIBUTING.html)\nfor more information on how to get started.\n\nPlease note that this project is released with a Contributor Code of Conduct. By\nparticipating in this project you agree to abide by its terms. See [Code of\nConduct](https://googleapis.dev/ruby/google-cloud-env/latest/file.CODE_OF_CONDUCT.html)\nfor more information.\n\nLicense\n-------\n\nThis library is licensed under Apache 2.0. Full license text is available in\n[LICENSE](https://googleapis.dev/ruby/google-cloud-env/latest/file.LICENSE.html).\n\nSupport\n-------\n\nPlease [report bugs at the project on\nGithub](https://github.com/googleapis/google-cloud-ruby/issues). Don't\nhesitate to [ask\nquestions](http://stackoverflow.com/questions/tagged/google-cloud-platform+ruby)\nabout the client or APIs on [StackOverflow](http://stackoverflow.com)."]]