private void CopyVariables() { var oldSet = _octopus.VariableSets.Get(_oldProject.VariableSetId); var newSet = _octopus.VariableSets.Get(_newProject.VariableSetId); var copier = new Variables(newSet.Variables, WriteWarning); copier.CopyVariables(oldSet.Variables, CopyActionScope); WriteVerbose("Saving the variable set."); _octopus.VariableSets.Modify(newSet); }
private void ProcessByObject() { var copier = new Variables(_variableSet.Variables, WriteWarning); copier.CopyVariables(InputObject); }