Class: DanarchyDeploy::System::Fstab
- Inherits:
-
Object
- Object
- DanarchyDeploy::System::Fstab
- 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() puts "\n > Mounting Filesystems" mount_result = DanarchyDeploy::Helpers.run_command('mount -a', ) 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, ) puts "\n" + self.name target, source = set_config(fstab, ) deploy_template(target, source, fstab[:mounts], ) format_mountpoints(fstab, ) mount_all() end |