Bari.Core.Commands.Pack.PublishCommand.Run C# (CSharp) Method

Run() public method

public Run ( Suite suite, string parameters ) : bool
suite Suite
parameters string
return bool
        public bool Run(Suite suite, string[] parameters)
        {
            if (parameters.Length == 1)
                PublishProduct(suite, parameters[0]);
            else
                throw new InvalidCommandParameterException("publish",
                                                           "The 'publish' command must be called with a product name!");

            return true;
        }