- 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.
推薦閱讀
- Docker and Kubernetes for Java Developers
- 深入淺出WPF
- Practical Windows Forensics
- Hands-On JavaScript High Performance
- Visual Basic程序設計與應用實踐教程
- Java網絡編程核心技術詳解(視頻微課版)
- Mastering React
- Java網絡編程實戰
- Qlik Sense? Cookbook
- 計算機應用基礎項目化教程
- Scrapy網絡爬蟲實戰
- 數據結構:Python語言描述
- 百萬在線:大型游戲服務端開發
- Android智能手機APP界面設計實戰教程
- CryENGINE Game Programming with C++,C#,and Lua