Class: DanarchyDeploy::System::Fstab

Inherits:
Object
  • Object
show all
Defined in:
lib/danarchy_deploy/system/fstab.rb

Class Method Summary collapse

Class Method Details

.mount_all(options) ⇒ Object



13
14
15
16
17
# File 'lib/danarchy_deploy/system/fstab.rb', line 13

def self.mount_all(options)
  puts "\n > Mounting Filesystems"
  mount_result = DanarchyDeploy::Helpers.run_command('mount -a', options)
  abort('    ! Failed to mount filesystems!') if mount_result[:stderr]
end

.new(os, fstab, options) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/danarchy_deploy/system/fstab.rb', line 5

def self.new(os, fstab, options)
  puts "\n" + self.name
  target, source = set_config(fstab, options)
  deploy_template(target, source, fstab[:mounts], options)
  format_mountpoints(fstab, options)
  mount_all(options)
end