public static object GetTargets(IParameters parameters) { var remoteOne = new PrintTask(Output) { Description = parameters.Required <string>("hack") }; var two = new PrintTask(Output) { Description = parameters.Required <string>("two") }; var remoteBounce = new RemoteBounce(); RemoteBounceArguments remoteOneArgs = remoteBounce.ArgumentsForTargets(new { RemoteOne = remoteOne }); var one = new RemoteExec { BounceArguments = remoteOneArgs, Machine = parameters.Required <string>("machine"), }; return(remoteBounce.WithRemoteTargets(new { One = one, Two = two, })); }
public static object GetTargets(IParameters parameters) { var remoteOne = new PrintTask(Output) {Description = parameters.Required<string>("hack")}; var two = new PrintTask(Output) {Description = parameters.Required<string>("two")}; var remoteBounce = new RemoteBounce(); RemoteBounceArguments remoteOneArgs = remoteBounce.ArgumentsForTargets(new { RemoteOne = remoteOne }); var one = new RemoteExec { BounceArguments = remoteOneArgs, Machine = parameters.Required<string>("machine"), }; return remoteBounce.WithRemoteTargets(new { One = one, Two = two, }); }