Skip to content

Conversation

movitto
Copy link
Contributor

@movitto movitto commented Jul 17, 2013

No description provided.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0%) when pulling 6a922f0 on movitto:lvm-support1 into 42d0486 on ManageIQ:master.

Copy link
Member

Choose a reason for hiding this comment

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

As this list grows, would it help to alphabetize these, or does it make more sense to keep them in logical groups (i.e. partitioning, mounting, power, volumes, etc.) If logical grouping is better, perhaps comments before each group might help keep the list clear?

@jrafanie
Copy link
Member

@movitto This is still failing on travis, does this pass locally for you? https://travis-ci.org/ManageIQ/linux_admin/builds/9190071

@chessbyte
Copy link
Member

Why are there 3 classes (LogicalVolume, PhysicalVolume, VolumeGroup) inside lib/linux_admin/logical_volume.rb? Why not split them out into 3 separate files?

@Fryguy
Copy link
Member

Fryguy commented Jul 17, 2013

@chessbyte Oh yeah, I didn't notice that. Totally agree with the one-class-per-file thing.

Copy link
Member

Choose a reason for hiding this comment

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

@movitto I just noticed we're subclassing in many places... are we doing that for the methods from Common? If so, can't we just use include/extend to gain that behavior?

@movitto
Copy link
Contributor Author

movitto commented Jul 17, 2013

As this list grows, would it help to alphabetize these....

Whatever works. Can be easily adjusted in a subsequent formatting patch.

Minor whitespace here (vg is way to the right).

Done

This is still failing on travis, does this pass locally for you?

I was passing locally, just forgot to take the different environment on travis into account. Hopefully fixed it in the followup.

Why not split them out into 3 separate files?

Done

can't we just use include/extend to gain that behavior?

Ya we should resolve this once and for all to make it consistent across the board. In general, unless there is reason not too, I prefer including modules as mixins, providing methods on instances w/out disrupting the static class hierarchy. If this sounds reasonable to everyone, it can be implemented in a separate reorg patch.

@jrafanie
Copy link
Member

@movitto Can you rebase and re-push, it can't be automatically merged?

I opened issue #19 to move from inheritance to composition where we only need LinuxAdmin::Common.

@Fryguy
Copy link
Member

Fryguy commented Jul 17, 2013

The LinuxAdmin::Common was written as subclassing initially because it was complicated to use the mixin when everything was class methods. Now that everything is moving to objects, technically it shouldn't even be a mixin, it should just be another object...in this case, like a utility object. Then when you want to run something you would say something like Common.run or Utils.run or something.

@movitto
Copy link
Contributor Author

movitto commented Jul 18, 2013

Rebased

jrafanie added a commit that referenced this pull request Jul 19, 2013
flush out logical volume support
@jrafanie jrafanie merged commit bf07ddd into ManageIQ:master Jul 19, 2013
@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling b0b0545 on movitto:lvm-support1 into 28d869d on ManageIQ:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling b0b0545 on movitto:lvm-support1 into 28d869d on ManageIQ:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants