- 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.
推薦閱讀
- C語言程序設計教程
- AngularJS Testing Cookbook
- Android項目開發入門教程
- INSTANT FreeMarker Starter
- 程序員考試案例梳理、真題透解與強化訓練
- AppInventor實踐教程:Android智能應用開發前傳
- Java網絡編程核心技術詳解(視頻微課版)
- Mobile Device Exploitation Cookbook
- Android傳感器開發與智能設備案例實戰
- Raspberry Pi Robotic Blueprints
- Clojure for Java Developers
- Mudbox 2013 Cookbook
- Cloud Development andDeployment with CloudBees
- C#教程
- 算法學習與應用從入門到精通