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

dry code #302

Merged
merged 1 commit into from
Mar 29, 2016
Merged

dry code #302

merged 1 commit into from
Mar 29, 2016

Conversation

jreidinger
Copy link
Member

No description provided.

@teclator
Copy link
Contributor

LGTM

grub_devices.sort_by! { |dev| dev[2..-1].to_i }

grub_devices.map { |d| @model.system_device_for(d) }
sorted_disks.map { |d| @model.system_device_for(d) }
end
Copy link
Contributor

Choose a reason for hiding this comment

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

NP: Maybe i would name it ordered_disks as we used sorted_disks method, but i'm not the best to recommend method names :)

Copy link
Member Author

Choose a reason for hiding this comment

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

it is even more tricky, as it is sorted grub devices, but then it is too long method for me...and it is not just grub devices, but grub devices representing disks ( we filter out all non hd devices ). So I expect that good name is very hard to find.

@jreidinger jreidinger merged commit e6e3675 into config_files_proto Mar 29, 2016
@jreidinger jreidinger deleted the jreidinger_config_files_proto branch March 29, 2016 09:01
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.

None yet

3 participants