Exemplo n.º 1
0
        public Process Push(Target t,
			Action<string> output,
			Action<string> errors,
			Action<int, Process> exited)
        {
            return Push (new [] {t}, output, errors, exited);
        }
Exemplo n.º 2
0
 protected bool Equals(Target other)
 {
     return string.Equals (ID, other.ID) && Platform == other.Platform;
 }
Exemplo n.º 3
0
        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);
        }