HostRunnerPlatform class abstract

This class is used to make the commands platform specific for example, the ping command is different on windows and linux

only supports windows, linux and macos

Implementers

Constructors

HostRunnerPlatform.new(Platform platform)
const
HostRunnerPlatform.build(Platform host)
factory

Properties

currentSourcePath String
no setter
hashCode int
The hash code for this object.
no setterinherited
homePath String
no setter
pingSuccessRegex RegExp?
no setter
platform → Platform
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
terminalCommandRunner List<String>
no setter

Methods

addSshKeyToAgent({required String filePath}) List<String>
commandRunner(List<String> commands) List<String>
compressCommand({String compressedFileName = 'archive.tar.gz', String source = '.', bool lastCommand = false, List<String> exclude = const []}) List<String>
This command is used to compress a folder
compressCurrentProjectCommand({required String compressedFileName}) List<String>
This command is used to compress the current project
copySshKeyCommand({required String filePath, required bool ipv6, required String targetDevice}) List<String>
deleteFile({required String target, bool lastCommand = false}) List<String>
generateSshKeyCommand({required String filePath}) List<String>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pingCommand({required bool ipv6, required String pingTarget}) List<String>
scpCommand({required bool ipv6, required String source, required String dest, bool addHostToKnownHosts = false, bool lastCommand = false, String endCharacter = ';'}) List<String>
sshCommand({required bool ipv6, required String sshTarget, required String command, bool addHostToKnownHosts = false, bool lastCommand = false, String endCharacter = ';'}) List<String>
sshMultiCommand({required bool ipv6, required String sshTarget, required List<String> commands, bool addHostToKnownHosts = false, String endCharacter = ';'}) List<String>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited