Esempio n. 1
0
        public static ScpUpload Upload(string IPAddress, MonoBrickExecutionCommand cmd)
        {
            var scp = new ScpUpload(IPAddress, cmd.Config.OutputDirectory, cmd.DeviceDirectory);

            scp.Upload();
            return(scp);
        }
Esempio n. 2
0
        public static ScpUpload Upload(string IPAddress, MonoBrickExecutionCommand cmd)
        {
            var scp = new ScpUpload(IPAddress, cmd);

            scp.Upload();
            return(scp);
        }
Esempio n. 3
0
 public SshExecute(string IPAddress, MonoBrickExecutionCommand cmd, string sdbOptions, bool verbose)
 {
     _cmd                = cmd;
     _sdbOptions         = sdbOptions;
     _console            = cmd.Console;
     _sshHelper          = new SshCommandHelper(IPAddress, _executed, cmd.Console, verbose);
     Success             = false;
     SuccessWithWarnings = false;
 }
		public SshExecute(string IPAddress, MonoBrickExecutionCommand cmd, string sdbOptions, IConsole console, bool verbose)
		{
			_cmd = cmd;
			_sdbOptions = sdbOptions;
			_console = console;
			_sshHelper = new SshCommandHelper(IPAddress, _executed, console, verbose);
			Success = false;
			SuccessWithWarnings = false;
		}
        public ScpUpload(string IPAddress, MonoBrickExecutionCommand cmd)
        {
            _localPath  = cmd.Config.OutputDirectory;
            _remotePath = cmd.DeviceDirectory;
            _scpClient  = new ScpClient(IPAddress, "root", "");
            _sshHelper  = new SshCommandHelper(IPAddress);
            _fileHash   = UserSettings.Instance.LastUploadHash;
            _console    = cmd.Console;

            Success             = false;
            SuccessWithWarnings = false;
            ErrorMessage        = "";
        }
        public bool CanExecute(ExecutionCommand command)
        {
            MonoBrickExecutionCommand cmd = command as MonoBrickExecutionCommand;

            if (cmd == null)
            {
                return(false);
            }

            if (AOT && cmd.Config.Name != "Release")
            {
                return(false);
            }

            return(true);
        }
		public static SshExecute ExecuteCommand(string IPAddress, MonoBrickExecutionCommand cmd, string sdbOptions, IConsole console, bool verbose)
		{
			var sshC = new SshExecute(IPAddress, cmd, sdbOptions, console, verbose);
			return sshC;
		}
		public static ScpUpload Upload(string IPAddress, MonoBrickExecutionCommand cmd)
		{
			var scp = new ScpUpload(IPAddress, cmd.Config.OutputDirectory, cmd.DeviceDirectory);
			scp.Upload();
			return scp;
		}
Esempio n. 9
0
        public static SshExecute ExecuteCommand(string IPAddress, MonoBrickExecutionCommand cmd, string sdbOptions, IConsole console, bool verbose)
        {
            var sshC = new SshExecute(IPAddress, cmd, sdbOptions, console, verbose);

            return(sshC);
        }
		public MonoBrickSoftDebuggerStartInfo(IPAddress address, int debugPort, MonoBrickExecutionCommand cmd)
			: base(new SoftDebuggerListenArgs(cmd.AppName, address, debugPort))
		{
			ExecutionCommand = cmd;
		}
Esempio n. 11
0
 public MonoBrickSoftDebuggerStartInfo(IPAddress address, int debugPort, MonoBrickExecutionCommand cmd)
     : base(new SoftDebuggerListenArgs(cmd.AppName, address, debugPort))
 {
     ExecutionCommand = cmd;
 }