Ejemplo n.º 1
0
        public JobRunStatus BootstrapChef(string config, string validator, string runList)
        {
            var description = $"Bootstrapping chef with run list {runList}";

            Logger.Info(description);
            return(ChefJobRunner.RunChefJob.Bootstrap(
                       CreateChefBootstrapper(config, validator, ChefRunner.ParseRunList(runList))));
        }
Ejemplo n.º 2
0
 public void ToJson_ShouldBeReadableByChefClient()
 {
     ChefRunner.ParseRunList("recipe[base],recipe[foo],recipe[bar],role[webserver]").ToJson()
     .Should().Be("{\r\n  \"run_list\": [\r\n    \"recipe[base]\",\r\n    \"recipe[foo]\",\r\n    \"recipe[bar]\",\r\n    \"role[webserver]\"\r\n  ]\r\n}");
 }