Skip to content
This repository has been archived by the owner on Dec 2, 2020. It is now read-only.

Refactors facts about Java version #55

Closed
wants to merge 3 commits into from

Conversation

petems
Copy link
Member

@petems petems commented Mar 9, 2015

These facts have since been refactored, ported these changes from https://github.com/puppetlabs/puppetlabs-java/

java_version = Facter.value(:java_version)
java_patch_level = java_version.strip.split('_')[0].split('.')[1] unless java_version.nil?
end
end
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs a newline.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@MikeMcQuaid
Copy link
Contributor

Hmm, I'm wondering if/why we need this for Java 8 support when we can just do version comparisons on the existing fact?

@petems petems mentioned this pull request Mar 9, 2015
petems added 2 commits May 6, 2015 05:49
Got some advice from some Puppetlabs people on how to do facts better! :)
Catches edge-case where which java is resolved, but Java is not actually installed!
@petems
Copy link
Member Author

petems commented May 6, 2015

@MikeMcQuaid We don't need it, as you can perform regex's on the current fact, it just makes it a little easier to have Facter/Ruby code to perform that string manipulation 😄

@petems petems force-pushed the refactor_java_version_facts branch 2 times, most recently from 90d9918 to bf21c28 Compare May 6, 2015 05:35
These facts have since been refactored, ported these changes from https://github.com/puppetlabs/puppetlabs-java/
@petems petems force-pushed the refactor_java_version_facts branch from bf21c28 to 04d28d5 Compare May 6, 2015 05:36
@MikeMcQuaid
Copy link
Contributor

@petems Could I see some sample code that you'd like to use this? Thanks!

@petems
Copy link
Member Author

petems commented Jan 8, 2017

Been a while, gonna close this

@petems petems closed this Jan 8, 2017
@petems petems deleted the refactor_java_version_facts branch January 8, 2017 17:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants