Beispiel #1
0
        public virtual Layer MakeLayer()
        {
            var layerParams = Args.GetLayerParams();
            var osParam = Args.GetOsParam();

            var list = new List<Slice>();

            var dirList = new SliceDirectoryList(Args.SlicesDir);
            dirList.ForEach(dir => list.AddRange(dir.FindByOs(osParam)));

            var layers = new LayerList(list);
            var layer = layers.FindLayer(layerParams[0]); //todo: check layer found and has good dependencies
            return layer;
        }
Beispiel #2
0
        public virtual Layer MakeLayer()
        {
            var layerParams = Args.GetLayerParams();
            var osParam     = Args.GetOsParam();

            var list = new List <Slice>();

            var dirList = new SliceDirectoryList(Args.SlicesDir);

            dirList.ForEach(dir => list.AddRange(dir.FindByOs(osParam)));

            var layers = new LayerList(list);
            var layer  = layers.FindLayer(layerParams[0]); //todo: check layer found and has good dependencies

            return(layer);
        }
Beispiel #3
0
        /// <summary>
        /// Finds all versions of requested layers for specific OS and lists them.
        /// </summary>
        void ICommand.Run()
        {
            var layerParams = Args.GetLayerParams();
            var osParam = Args.GetOsParam();

            var list = new List<Slice>();

            var dirList = new SliceDirectoryList(Args.SlicesDir);
            dirList.ForEach(dir => list.AddRange(dir.FindByOs(osParam)));

            var layers = new LayerList(list).FindLayers(layerParams);
            foreach (var layer in layers)
            {
                Console.WriteLine(layer.Name);
            }
        }
Beispiel #4
0
        /// <summary>
        /// Finds all versions of requested layers for specific OS and lists them.
        /// </summary>
        void ICommand.Run()
        {
            var layerParams = Args.GetLayerParams();
            var osParam     = Args.GetOsParam();

            var list = new List <Slice>();

            var dirList = new SliceDirectoryList(Args.SlicesDir);

            dirList.ForEach(dir => list.AddRange(dir.FindByOs(osParam)));

            var layers = new LayerList(list).FindLayers(layerParams);

            foreach (var layer in layers)
            {
                Console.WriteLine(layer.Name);
            }
        }