-
Notifications
You must be signed in to change notification settings - Fork 898
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added Product name to VMDB::Appliance #16409
Conversation
@Fryguy something like this ok to access the product name? |
7019f97
to
7de06b5
Compare
Oh I like this. 👍 |
This PR is needed for #16410 |
@@ -20,6 +20,10 @@ def self.log_config_on_startup | |||
Vmdb::Appliance.log_diagnostics | |||
end | |||
|
|||
def self.PRODUCT_NAME |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why the UPPER_CASE naming for a method?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copying the convention https://github.com/ManageIQ/manageiq/blob/master/lib/vmdb/appliance.rb#L9-L15
I assume it's because they are effectively constants.
7de06b5
to
fe184a5
Compare
Checked commit juliancheal@fe184a5 with ruby 2.3.3, rubocop 0.47.1, and haml-lint 0.20.0 lib/vmdb/appliance.rb
|
Since PR ManageIQ#16409 we now have a method for product name.
Added Product name to VMDB::Appliance (cherry picked from commit 64842b7)
Gaprindashvili backport details:
|
@juliancheal can you explain me what is this PR for, I don't really understand the use case? |
@Loicavenel Hi, we didn't want people using the the internationalisation version method all around the code, to get the product name. |
ok make sense |
No description provided.