示例#1
0
        async Task SetRemoteExecutableBitAsync(SshTarget target, string remoteTargetPath,
                                               DataRecorder record)
        {
            try
            {
                await _remoteCommand.RunWithSuccessAsync(target, "chmod a+x " + remoteTargetPath);

                record.Chmod(DataRecorder.NoError);
            }
            catch (ProcessException e)
            {
                Trace.WriteLine("Error setting executable permissions: " + e.ToString());
                record.Chmod(e);
                throw new DeployException(ErrorStrings.FailedToSetExecutablePermissions(e.Message),
                                          e);
            }
        }