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)))); }
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}"); }