Class: Lvm2::Root

Inherits:
Object
  • Object
show all
Defined in:
lib/lvm2.rb

Direct Known Subclasses

Hybrid

Instance Method Summary collapse

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, options)
  @cache = options[:cache_disk] ||= nil
  @root = devs[:root] ||= nil
  @home = options[:home_disk] ||= nil
  @vg = options[:vg_name] ||= 'vg1'
end

Instance Method Details

#xObject



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