public static void Pscp(this ICakeContext context, string[] from, string to, PscpSettings settings)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }
            if (from?.Length < 1)
            {
                throw new ArgumentNullException("from", "from has to contain at least one entry");
            }
            if (string.IsNullOrEmpty(to))
            {
                throw new ArgumentNullException("to");
            }
            var           runner     = new GenericPscpRunner <PscpSettings>(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools);
            List <string> additional = new List <string>(from);

            additional.Add(to);
            runner.Run(settings ?? new PscpSettings(), additional);
        }
 public static void Pscp(this ICakeContext context, string from, string to, PscpSettings settings)
 {
     context.Pscp(new string[] { from }, to, settings);
 }