Class: OsCtld::ContainerControl::Commands::Unmount::Frontend

Inherits:
Frontend
  • Object
show all
Defined in:
lib/osctld/container_control/commands/unmount.rb

Instance Attribute Summary

Attributes inherited from Frontend

#command_class, #ct

Instance Method Summary collapse

Methods inherited from Frontend

#exec_runner, #fork_runner, #initialize

Constructor Details

This class inherits a constructor from OsCtld::ContainerControl::Frontend

Instance Method Details

#execute(mountpoint) ⇒ true

Parameters:

  • mountpoint (String)

Returns:

  • (true)


12
13
14
15
# File 'lib/osctld/container_control/commands/unmount.rb', line 12

def execute(mountpoint)
  ret = exec_runner(args: [mountpoint])
  ret.ok? || ret
end