Skip to content

Commit

Permalink
Support plain deployment (#4)
Browse files Browse the repository at this point in the history
Co-authored-by: Felix Desiderato <[email protected]>
  • Loading branch information
hendesi and Felix Desiderato authored Dec 24, 2021
1 parent b9358fb commit d96e62d
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions Sources/DeploymentTargetIoT/IoTDeploymentProvider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -204,18 +204,6 @@ public class IoTDeploymentProvider: DeploymentProvider { // swiftlint:disable:th
}

internal func deploy(_ result: DiscoveryResult, discovery: DeviceDiscovery) throws {
IoTContext.logger.debug("Cleaning up any leftover actions data in deployment directory")

guard
// do nothing if there were no post actions
!result.foundEndDevices.isEmpty,
// do nothing if all post actions returned 0
result.foundEndDevices.values.contains(where: { $0 != 0 })
else {
IoTContext.logger.warning("No end devices were found for device \(String(describing: result.device.hostname))")
return
}

IoTContext.logger.info("Starting deployment to device \(String(describing: result.device.hostname))")

let device = result.device
Expand Down

0 comments on commit d96e62d

Please sign in to comment.