Class: Mkfs::Lvm
Direct Known Subclasses
Instance Method Summary collapse
- #format_home ⇒ Object
- #format_root ⇒ Object
- #format_swap ⇒ Object
-
#initialize(devs, options) ⇒ Lvm
constructor
A new instance of Lvm.
Constructor Details
#initialize(devs, options) ⇒ Lvm
Returns a new instance of Lvm.
95 96 97 98 |
# File 'lib/mkfs.rb', line 95 def initialize(devs, ) @vg = [:vg_name] super end |
Instance Method Details
#format_home ⇒ Object
108 109 110 |
# File 'lib/mkfs.rb', line 108 def format_home mkfs "/dev/#{@vg}/home" end |
#format_root ⇒ Object
104 105 106 |
# File 'lib/mkfs.rb', line 104 def format_root mkfs "/dev/#{@vg}/root" end |
#format_swap ⇒ Object
100 101 102 |
# File 'lib/mkfs.rb', line 100 def format_swap mk_swap "/dev/#{@vg}/swap" end |