Exemplo n.º 1
0
 public StopPackageCommand(INPloyConfiguration nPloyConfiguration,
     IPowershellRunner powershellRunner)
 {
     _nPloyConfiguration = nPloyConfiguration;
     _powershellRunner = powershellRunner;
     IsCommand("StopPackage", "StopPackage");
     HasAdditionalArguments(1, "InstalledPackage");
     HasOption("d|directory=", "Stop in this directory", s => WorkingDirectory = s);
 }
Exemplo n.º 2
0
        public InstallPackageCommand(INPloyConfiguration nPloyConfiguration, IPowershellRunner powershellRunner, INuGetRunner nuGetRunner)
        {
            _nPloyConfiguration = nPloyConfiguration;
            _powershellRunner = powershellRunner;
            _nuGetRunner = nuGetRunner;

            IsCommand("InstallPackage", "InstallPackage");
            HasAdditionalArguments(1, "Package");
            HasOption("e|environment=", "", e => Environment = e);
            HasOption("d|directory=", "Install in this directory", s => WorkingDirectory = s);
            HasOption("p|packagesources=", "Packagesources", s => PackageSources = s);
            HasOption("c|configuration=", "NPloy configuration directory", s => ConfigurationDirectory = s);
            HasOption("n|nuget=", "NuGet console path", s => NuGetPath = s);
            HasOption("v|version=", "Version of package to install ", s => Version = s);
            HasOption("o|verbose", "Verbose output", s => Verbose = s != null);
            HasOption("properties=", "Additional properties", s => Properties = s);
            HasOption("IncludePrerelease", "Include prerelease packages", s => IncludePrerelease = s != null);
        }
Exemplo n.º 3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ServiceManager" /> class.
        /// </summary>
        /// <param name="environment">The environment.</param>
        /// <param name="log">The log.</param>
        /// <param name="powershellRunner">The powershell runner.</param>
        public ServiceManager(ICakeEnvironment environment, ICakeLog log, IPowershellRunner powershellRunner)
        {
            if (environment == null)
            {
                throw new ArgumentNullException("environment");
            }
            if (log == null)
            {
                throw new ArgumentNullException("log");
            }
            if (powershellRunner == null)
            {
                throw new ArgumentNullException("powershellRunner");
            }

            _Environment      = environment;
            _Log              = log;
            _PowershellRunner = powershellRunner;
        }
Exemplo n.º 4
0
 public WindowsFeatureTask(IPowershellRunner powershellRunner)
 {
     _powershellRunner = powershellRunner;
 }
Exemplo n.º 5
0
 public InstallChocolateyTask(IPowershellRunner powershellRunner)
 {
     _powershellRunner = powershellRunner;
 }
Exemplo n.º 6
0
 public PowershellTask(IPowershellRunner powershellRunner)
 {
     _powershellRunner = powershellRunner;
 }
Exemplo n.º 7
0
 public PowershellFileTask(IFileProvider fileProvider, IPowershellRunner powershellRunner)
 {
     _fileProvider     = fileProvider;
     _powershellRunner = powershellRunner;
 }