Skip to content
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

Merged
merged 1 commit into from
Apr 21, 2017
Merged

Move code from manageiq-gems-pending #9

merged 1 commit into from
Apr 21, 2017

Conversation

jhernand
Copy link
Contributor

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

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]>
@jhernand
Copy link
Contributor Author

Note that this should be merged before ManageIQ/manageiq-gems-pending#118.

@miq-bot
Copy link
Member

miq-bot commented Apr 11, 2017

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
4 files checked, 9 offenses detected

lib/manageiq/providers/ovirt/legacy/inventory.rb

@@ -0,0 +1,50 @@
require 'ovirt'
Copy link
Member

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

Copy link
Contributor Author

@jhernand jhernand Apr 12, 2017

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.

Copy link
Member

@bdunne bdunne left a comment

Choose a reason for hiding this comment

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

👍 LGTM. Thanks @jhernand

@bdunne bdunne merged commit a914960 into ManageIQ:master Apr 21, 2017
@bdunne bdunne added this to the Sprint 59 Ending Apr 24, 2017 milestone Apr 21, 2017
agrare pushed a commit to agrare/manageiq-providers-ovirt that referenced this pull request May 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants