-
Notifications
You must be signed in to change notification settings - Fork 62
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
Move code from manageiq-gems-pending #9
Move code from manageiq-gems-pending #9
Conversation
Now that the oVirt provider has been extracted to a separate repository, it makes sense to move all the oVirt specific code from 'manageiq-gems-pending' to this repository. This patch moves the 'ovirt_event_monitor.rb' and 'ovirt_inventory.rb' files. These files implement event monitoring and inventory collection, using version 3 of the oVirt API and the 'ovirt' gem. As there is an ongoing effort to use version 4 of the oVirt API, and the oVirt SDK, these files have been added to a new 'ManageIQ::Providers::Ovirt::Legacy' module, to make it explicit that this code will eventually be removed. #8 Signed-off-by: Juan Hernandez <[email protected]>
Note that this should be merged before ManageIQ/manageiq-gems-pending#118. |
Checked commit https://github.com/jhernand/manageiq-providers-ovirt/commit/d0dd9819500bf08d7fce4bfa8c9586a93775b624 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 lib/manageiq/providers/ovirt/legacy/inventory.rb
|
@@ -0,0 +1,50 @@ | |||
require 'ovirt' |
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.
Any reason you chose to move them to lib/
?
I think this all could easily go to app/models/manageiq/providers/redhat
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.
The only reason is that these classes are used by those test scripts that I don't know where to place. Those are in the manageiq-gems-pending
repo. Not sure if they can be used from that repo if they aren't in the lib
directory of this gem. Once we decide what we do with those test scripts, an once I know how to test them, I can move the files to app/models
no objection to that.
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.
👍 LGTM. Thanks @jhernand
point setup files to manageiq repo
Now that the oVirt provider has been extracted to a separate repository,
it makes sense to move all the oVirt specific code from
'manageiq-gems-pending' to this repository.
This patch moves the 'ovirt_event_monitor.rb' and 'ovirt_inventory.rb'
files. These files implement event monitoring and inventory collection,
using version 3 of the oVirt API and the 'ovirt' gem. As there is an
ongoing effort to use version 4 of the oVirt API, and the oVirt SDK,
these files have been added to a new 'ManageIQ::Providers::Ovirt::Legacy'
module, to make it explicit that this code will eventually be removed.
#8