Class: Lvm2::Root
- Inherits:
-
Object
- Object
- Lvm2::Root
- Defined in:
- lib/lvm2.rb
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.
7 8 9 10 11 12 |
# File 'lib/lvm2.rb', line 7 def initialize(devs, ) @cache = [:cache_disk] ||= nil @root = devs[:root] ||= nil @home = [:home_disk] ||= nil @vg = [:vg_name] ||= 'vg1' end |
Instance Method Details
#x ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/lvm2.rb', line 14 def x load_datas pv_create vg_create lv_setup enable_lvs end |