Class: Lvm2::Root
- Inherits:
-
Object
- Object
- Lvm2::Root
- Defined in:
- lib/lvm2.rb
Overview
Configure system with lvm
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(devs, options) ⇒ Root
constructor
A new instance of Root.
- #x ⇒ Object
Constructor Details
#initialize(devs, options) ⇒ Root
Returns a new instance of Root.
8 9 10 11 12 13 |
# File 'lib/lvm2.rb', line 8 def initialize(devs, ) @cache = [:cache_disk] ||= nil @root = devs[:root] ||= nil @home = [:home_disk] ||= nil @vg = [:vg_name] ||= 'vg0' end |
Instance Method Details
#x ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/lvm2.rb', line 15 def x load_datas pv_create vg_create lv_setup enable_lvs end |