-
Notifications
You must be signed in to change notification settings - Fork 680
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
Speed up windows package lookup #970
Conversation
This is supposed to fix #86 but I can't figure out what the unit tests are doing and what and _() function is.... I'll look into this tomorrow. |
@@ -53,8 +53,11 @@ | |||
|
|||
# windows | |||
it 'verify windows package parsing' do | |||
STDERR.puts "FUCK EVERYTHING!" |
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.
We probably don't want to commit this :D
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.
@ksubrama Its not acceptable to place offensive language in a PR.
1d56a67
to
d8101de
Compare
@ksubrama thanks for the new implementation. I added unit and integration tests for that implementation |
d8101de
to
1989c25
Compare
packages.each { |pkg| | ||
package_name = pkg.strip | ||
# get wmi package information | ||
cmd = powershell("Get-WmiObject -Class Win32_Product | Where-Object {$_.Name -eq '#{package_name}'} | Select-Object -Property Name,Version,Vendor,PackageCode,Caption,Description | ConvertTo-Json") |
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.
👍 I like that we are using the old command here to ensure we match the same output we would have gotten with the old code.
👍 This looks reasonable to me. |
fixes #86 |
No description provided.