class

Sandcube::CLI::Host

Inherits Reference < Object

Constants

BASE_COMMANDS = ["containerd", "ctr", "runsc", "containerd-shim-runsc-v1", "ip", "nft", "conntrack", "sysctl", "findmnt", "xfs_quota", "xfs_info", "mkfs.xfs", "mount", "umount", "mountpoint", "losetup", "fallocate", "modprobe"] of ::String

Class methods

validate_mount(json : String, path : String) : Nil
Source

Instance methods

capture(command : String, args = [] of String) : String
Source
defaults(data : String, run : String) : Config
Source
dependencies_ready?
Source
doctor(config : Config, output : IO = STDOUT) : Bool
Source
mount_storage(config : Config) : Nil
Source
prepare_kernel
Source
provision_storage(path : String, image : String, requested_size : Int64 | Nil = nil) : Nil

A preallocated image preserves project quotas on ordinary ext4 VPS disks without repartitioning or formatting any existing block device.

Source
storage!(path : String, empty = false) : Nil
Source