Esempio n. 1
0
        public void Refresh()
        {
            lock (refreshPandora)
            {
                using (var jarFinder = new JarFinder(_gitSettings, _context))
                {
                    var jarFindResult = jarFinder.FindJar();

                    Directory.SetCurrentDirectory(jarFindResult.JarLocation.FullName);
                    Box            box     = Box.Mistranslate(jarFindResult.Jar);
                    var            opener  = new PandoraBoxOpener(box);
                    PandoraOptions options = new PandoraOptions(_context.Cluster, _context.Machine);
                    Configuration  cfg     = opener.Open(options);
                    _configurationRepository = new GitConfigurationRepo(_context, cfg);
                }
            }
        }
Esempio n. 2
0
        public static Elders.Pandora.Box.Configuration Open(this Elders.Pandora.Box.Box box, PandoraOptions options)
        {
            var opener = new PandoraBoxOpener(box);

            return(opener.Open(options));
        }