Example #1
0
        private bool IsIgnored(string path)
        {
            var isIgnored = Ignorance.IsIncluded(path) || Repository.IsPathIgnored(path);

            if (isIgnored)
            {
                Trace.TraceWarning("The file '{0}' is ignored due to `.gitignore` or ignore regex defined.", path);
            }

            return(isIgnored);
        }
Example #2
0
        //private BoosterTransport boosterTransport = null;

        void AttemptConfigLoad()
        {
            var path = Path.Combine(Application.streamingAssetsPath, "config", "config.json");

            buildInfo = JsonUtility.FromJson <BuildInfo>(File.ReadAllText(Path.Combine(Application.streamingAssetsPath, "buildinfo.json")));

            if (File.Exists(path))
            {
                telepathyTransport = FindObjectOfType <TelepathyTransport>();
                ignoranceTransport = FindObjectOfType <Ignorance>();
                config             = JsonUtility.FromJson <ServerConfig>(File.ReadAllText(path));
                Instance.StartCoroutine(Instance.SendServerStatus());
            }
            else
            {
                Logger.Log("No config found for Rcon and Server Hub connections", Category.DatabaseAPI);
            }
        }
Example #3
0
 private bool IsIgnored(string path)
 {
     return(Ignorance.IsIncluded(path));
 }
Example #4
0
 private bool IsIgnored(string path)
 {
     return(Ignorance.IsIncluded(path) || Repository.IsPathIgnored(path));
 }
Example #5
0
 public bool IsIgnored(string path)
 {
     return(Ignorance.IsIncluded(path) || IsPathIgnored(path));
 }