コード例 #1
0
 /// <summary>
 ///     Sets any additional arguments to pass directly to the SSH invocation
 /// </summary>
 /// <param name="settings">The settings</param>
 /// <param name="args">Arbitrary arguments to pass to ssh</param>
 /// <returns></returns>
 public static VagrantSSHSettings WithArguments(this VagrantSSHSettings settings, params string[] args)
 {
     settings.ExtraSSHArguments = string.Join(" ", args);
     return(settings);
 }
コード例 #2
0
 /// <summary>
 ///     Sets the command to run in the SSH session
 /// </summary>
 /// <param name="settings">The settings</param>
 /// <param name="command">REQUIRED: The command to run in the session.</param>
 /// <returns></returns>
 public static VagrantSSHSettings RunCommand(this VagrantSSHSettings settings, string command)
 {
     settings.Command = command;
     return(settings);
 }