Module: Yast::PartitioningEpTmpfsLibInclude
- Defined in:
- ../../src/include/partitioning/ep-tmpfs-lib.rb
Instance Method Summary (collapse)
- - (Object) EpAddTmpfsDevice
- - (Object) EpDeleteTmpfsDevice(device)
- - (Object) initialize_partitioning_ep_tmpfs_lib(include_target)
Instance Method Details
- (Object) EpAddTmpfsDevice
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 |
# File '../../src/include/partitioning/ep-tmpfs-lib.rb', line 61 def EpAddTmpfsDevice data = { "device" => "tmpfs", "fstype" => "TMPFS", "format" => true, "type" => :tmpfs, "detected_fs" => :tmpfs, "used_fs" => :tmpfs } if ( data_ref = arg_ref(data); _DlgCreateTmpfs_result = DlgCreateTmpfs(data_ref); data = data_ref.value; _DlgCreateTmpfs_result ) Builtins.y2milestone("EpAddTmpfsDevice data:%1", data) Storage.AddTmpfsVolume( Ops.get_string(data, "mount", ""), Ops.get_string(data, "fstopt", "") ) UpdateMainStatus() UpdateNavigationTree(nil) TreePanel.Create end nil end |
- (Object) EpDeleteTmpfsDevice(device)
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
# File '../../src/include/partitioning/ep-tmpfs-lib.rb', line 32 def EpDeleteTmpfsDevice(device) if device == nil # error popup Popup.Error(_("No tmpfs device selected.")) return end tmp = Builtins.splitstring(device, ":") mount = Ops.get(tmp, 1, "") Builtins.y2milestone( "EpDeleteTmpfsDevice device:%1 mount:%2", device, mount ) # YesNo popup. %1 is path to a file if Popup.YesNo( Builtins.sformat(_("\nReally delete tmpfs mounted to %1"), mount) ) && Storage.DelTmpfsVolume(mount) new_focus = nil new_focus = :tmpfs if UI.QueryWidget(:tree, :CurrentItem) == device UpdateMainStatus() UpdateNavigationTree(new_focus) TreePanel.Create end nil end |
- (Object) initialize_partitioning_ep_tmpfs_lib(include_target)
28 29 30 |
# File '../../src/include/partitioning/ep-tmpfs-lib.rb', line 28 def initialize_partitioning_ep_tmpfs_lib(include_target) textdomain "storage" end |