Beispiel #1
0
 public Deployer(DeployParameters parameters)
 {
     _parameters = parameters;
     Logger      = new DeployLogger();
     Logger.InfoMessageLogged += _consoleAppender.Append;
     AddSteps();
 }
Beispiel #2
0
 public Deployer(DeployParameters parameters)
 {
     _parameters = parameters;
     Logger = new DeployLogger();
     Logger.InfoMessageLogged += _consoleAppender.Append;
     AddSteps();
 }
        public static DeployParameters Parse(string[] args)
        {
            var arguments = new Arguments(args);

            if (args.Length < 2)
            {
                throw new InvalidParametersException("missing arguments");
            }
            var parameters = new DeployParameters(
                arguments.ByNameOrIndex(PackagePathName, 0),
                GetProfile(arguments));

            return(parameters);
        }
 public static DeployParameters Parse(string[] args)
 {
     var arguments = new Arguments(args);
     if (args.Length < 2)
     {
         throw new InvalidParametersException("missing arguments");
     }
     var parameters = new DeployParameters(
         arguments.ByNameOrIndex(PackagePathName, 0),
         GetProfile(arguments));
     return parameters;
 }