public override bool Execute(Input input) { var maker = new Maker(_solution); maker.AppSettings(input.Environment); return(true); }
public void Create_destination_from_template_if_app_settings_does_not_exist() { // arrange var m = new Maker(new MiruSolution(_solutionDir)); // act m.AppSettings("CI"); // assert (m.Solution.AppDir / "appSettings.CI.yml").ShouldContain("ConnectionString"); }
public Task Execute() { var maker = new Maker(_solution); Console2.BreakLine(); maker.AppSettings(Environment); Console2.BreakLine(); return(Task.CompletedTask); }
public void Create_destination_from_existent_app_settings_example() { // arrange var m = new Maker(new MiruSolution(_solutionDir)); Files.Create(m.Solution.AppDir / "appSettings-example.yml", "Example"); // act m.AppSettings("Production"); // assert (m.Solution.AppDir / "appSettings.Production.yml").ShouldContain("Example"); }
public void Skip_if_destination_app_settings_exist() { // arrange var m = new Maker(new MiruSolution(_solutionDir)); var appSettingsStaging = m.Solution.AppDir / "appSettings.Staging.yml"; Files.Create(appSettingsStaging, appSettingsStaging); // act m.AppSettings("Staging"); // assert appSettingsStaging.ShouldContain(appSettingsStaging); }