Class: OsCtld::ContainerControl::Commands::Mount::Frontend

Inherits:
Frontend
  • Object
show all
Defined in:
lib/osctld/container_control/commands/mount.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(opts) ⇒ true

Parameters:

  • opts (Hash)

Options Hash (opts):

  • :shared_dir (String)

    path to the host-shared directory

  • :src (String)

    directory inside ‘:shared_dir` to relocate

  • :dst (String)

    target mountpoint

Returns:

  • (true)


15
16
17
18
# File 'lib/osctld/container_control/commands/mount.rb', line 15

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