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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add BlkDevice#to_be_formatted? #255

Merged
merged 2 commits into from Jun 8, 2017
Merged

Conversation

ancorgs
Copy link
Contributor

@ancorgs ancorgs commented Jun 8, 2017

2 lines of code, 169 of RSpec. 馃槃

@coveralls
Copy link

Coverage Status

Coverage increased (+0.007%) to 85.709% when pulling e5414ed on ancorgs:partitioner_methods into f272178 on yast:master.

@@ -24,6 +24,8 @@
require "y2storage"

describe Y2Storage::BlkDevice do
using Y2Storage::Refinements::SizeCasts
Copy link
Member

Choose a reason for hiding this comment

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

why it is needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just convenience. To be able to write

vg1.create_lvm_lv("newlv", 1.GiB)

down there (lines 135, 169, 214...), instead of

vg1.create_lvm_lv("newlv", Y2Storage::DiskSize.GiB(1))

Copy link
Member

Choose a reason for hiding this comment

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

ok

@ancorgs ancorgs merged commit 8b6c988 into yast:master Jun 8, 2017
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