getDeploy method

Deployment getDeploy({
  1. required ArgResults results,
  2. required DartDeploy dartDeploy,
  3. required DartBuild dartBuild,
})

Implementation

Deployment getDeploy({
  required ArgResults results,
  required DartDeploy dartDeploy,
  required DartBuild dartBuild,
}) {
  return WebDeployment(
    dartDeploy: dartDeploy,
    dartBuild: dartBuild,
    webServerPath: results[argWebServerPath] as String,
    preScriptPath: results[argWebPreScript] as String?,
    postScriptPath: results[argWebPostScript] as String?,
    serverConnection: WebServerConnection(
      host: results[argWebServerHost] as String,
      port: int.tryParse(results[argWebServerPort] ?? ''),
      sshUser: results[argWebSshUser] as String,
      sshPrivateKeyBase64: results[argWebSshPrivateKeyBase64] as String?,
      // sshPrivateKeyPassphrase: results[argWebSshPrivateKeyPassphrase] as String?,
    ),
  );
}