Module: GetVersion::PlatformVersions
- Included in:
- ExecutionContext
- Defined in:
- lib/getversion/platform_versions.rb
Instance Method Summary collapse
Instance Method Details
#google_appengine_version ⇒ Object
8 9 10 11 12 13 |
# File 'lib/getversion/platform_versions.rb', line 8 def google_appengine_version realpath = WickedWitch[@path] dir = File.dirname realpath version_file = File.join dir, 'VERSION' YAML::load_file(version_file)['release'] end |
#osx_version ⇒ Object
15 16 17 |
# File 'lib/getversion/platform_versions.rb', line 15 def osx_version Executable.version('sw_vers') { find_version_in_output '-productVersion' } end |
#windows_version ⇒ Object
19 20 21 |
# File 'lib/getversion/platform_versions.rb', line 19 def windows_version Executable.version('ver') { find_version_in_output } end |