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

#initialize, #pipe_runner

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)


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

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