示例#1
0
        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);
        }
示例#2
0
 private void ProcessByObject()
 {
     var copier = new Variables(_variableSet.Variables, WriteWarning);
     copier.CopyVariables(InputObject);
 }