public JasmineConfiguration Configure(string file, ISerenityJasmineApplication application) { file = file.ToFullPath(); JasmineConfiguration config; if (_fileSystem.IsFile(file)) { Console.WriteLine("Reading directives from " + file); if (!_fileSystem.FileExists(file)) { throw new CommandFailureException( "Designated serenity/jasmine file at {0} does not exist".ToFormat(file)); } config = _configLoader.LoadFrom(file); } else { config = new JasmineConfiguration(file); config.AddContentFolder(file); } ProcessConfiguration(config, application); return(config); }
public JasmineConfiguration Configure(string file, ISerenityJasmineApplication application) { file = file.ToFullPath(); JasmineConfiguration config; if (_fileSystem.IsFile(file)) { Console.WriteLine("Reading directives from " + file); if (!_fileSystem.FileExists(file)) { throw new CommandFailureException( "Designated serenity/jasmine file at {0} does not exist".ToFormat(file)); } config = _configLoader.LoadFrom(file); } else { config = new JasmineConfiguration(file); config.AddContentFolder(file); } ProcessConfiguration(config, application); return config; }
private static void include(string text, JasmineConfiguration config) { var folder = text.Split(':').Last(); config.AddContentFolder(folder); }