- Learning PowerShell DSC(Second Edition)
- James Pogran
- 174字
- 2021-07-02 18:31:22
Class-based DSC resources
Instead of PowerShell module folders and supporting module files, DSC resources have been simplified to one file using class-based code.
We will cover how to make DSC resources in Chapter 4, DSC Resources, for both PowerShell V4 and V5, but we will briefly mention the improvements V5 brings. If this is confusing at this point, don't worry; we will get into more detail in Chapter 5, Pushing DSC Configurations.
Each file has the get, set, and test functions declared as methods to a single class, which DSC knows how to parse and execute. This is a huge feature in and of itself and leads to several exciting possibilities, not the least of which is class inheritance, which reduces some of the duplication required in DSC V4.
The concept of software classes, functions, and methods may sound more like programming than what you want to know, but it is not as scary as it sounds, and it will be further explained in the PowerShell class-base DSC resource section in this book.
推薦閱讀
- PWA入門與實踐
- Mastering Adobe Captivate 2017(Fourth Edition)
- Beginning Java Data Structures and Algorithms
- Java面向對象軟件開發
- PyTorch Artificial Intelligence Fundamentals
- Python Game Programming By Example
- 編寫高質量代碼:改善Python程序的91個建議
- Python金融數據分析
- 高級C/C++編譯技術(典藏版)
- Data Analysis with Stata
- Rust Essentials(Second Edition)
- Go語言精進之路:從新手到高手的編程思想、方法和技巧(1)
- Learning Grunt
- 深度學習程序設計實戰
- 快樂編程:青少年思維訓練