Instance Propertyheckj.formic 0.3.0Formic
ignoreFailure
A Boolean value that indicates whether a failing command should fail a playbook.
let ignoreFailure: Bool
A Boolean value that indicates whether a failing command should fail a playbook.
let ignoreFailure: Bool
import Formic
๐ Swift library to support IT Automation tasks. ๐ ๐
struct CopyInto
A command to transfer a file into the host.
@frozen struct Bool
A value type whose instances are either true
or false
.
init(location: String, from: String, env: [String : String]? = nil, ignoreFailure: Bool = false, retry: Backoff = .never, executionTimeout: Duration = .seconds(30))
Transfers a file from the host where this is run to the destination host.
var description: String { get }
A textual representation of the command.
let destinationPath: String
The destination path on the remote host.
let env: [String : String]?
An optional dictionary of environment variables the system sets when it runs the command.
let executionTimeout: Duration
The maximum duration to allow for the command.
let from: String
The local path of the file to copy.
let id: UUID
The ID of the command.
let retry: Backoff
The retry settings for the command.
@discardableResult func run(host: RemoteHost, logger: Logger?) async throws -> CommandOutput