Ejemplo n.º 1
0
        private static void MainImpl(Options options)
        {
            try
            {
                if (options.Verbose)
                {
                    Console.WriteLine($"Verbose output enabled. Current Arguments: -i {options.InputFile} -o {options.OutputFile} -v {options.Verbose}");
                    Console.WriteLine("ExpandARM is in Verbose mode!");
                }
                else
                {
                    Console.WriteLine("ExpandARM");
                }

                var armio       = ArmIO.Create(new FileSystem());
                var armTemplate = armio.LoadArmTemplate(options.InputFile);
                armio.ExpandArmTemplate(armTemplate);
                armio.SaveExpandedTemplate(armTemplate, options.OutputFile);
            }
            catch (ExpandArmException)
            {
                throw;
            }
            catch (Exception e)
            {
                throw new ExpandArmException("Unhandled exception caught.", e);
            }
        }
Ejemplo n.º 2
0
 public void Initialize()
 {
     fileSystem = MockFileSystemImpl.FileSystem;
     sut        = ArmIO.Create(fileSystem);
 }