public Process Push(Target t, Action<string> output, Action<string> errors, Action<int, Process> exited) { return Push (new [] {t}, output, errors, exited); }
protected bool Equals(Target other) { return string.Equals (ID, other.ID) && Platform == other.Platform; }
public Process StartGetDevicesNames( Action<Target, DiscoveryStatus> found, Action<string> errors, Action<int, Process> exited) { var parseDevice = new Action<string> (o => { if (o == null) { return; } var target = new Target (o.Substring (1), DevicePlatform.iOS); var status = o.StartsWith ("+") ? DiscoveryStatus.FOUND : DiscoveryStatus.LOST; found (target, status); }); return StartProcess ("push --list", parseDevice, errors, exited); }