1
1
{
2
- "$schema" : " https://aka.ms/dsc/schemas/v3/bundled/resource/manifest.json" ,
3
- "type" : " Microsoft.Windows/WindowsPowerShell" ,
4
- "version" : " 0.1.0" ,
5
- "kind" : " adapter" ,
6
- "description" : " Resource adapter to classic DSC Powershell resources in Windows PowerShell." ,
7
- "tags" : [
8
- " PowerShell"
9
- ],
10
- "adapter" : {
11
- "list" : {
12
- "executable" : " powershell" ,
13
- "args" : [
14
- " -NoLogo" ,
15
- " -NonInteractive" ,
16
- " -NoProfile" ,
17
- " -ExecutionPolicy" ,
18
- " Bypass" ,
19
- " -Command" ,
20
- " ./psDscAdapter/powershell.resource.ps1 List"
21
- ]
22
- },
23
- "config" : " full"
24
- },
25
- "get" : {
26
- "executable" : " powershell" ,
27
- "args" : [
28
- " -NoLogo" ,
29
- " -NonInteractive" ,
30
- " -NoProfile" ,
31
- " -ExecutionPolicy" ,
32
- " Bypass" ,
33
- " -Command" ,
34
- " $Input | ./psDscAdapter/powershell.resource.ps1 Get"
35
- ],
36
- "input" : " stdin"
37
- },
38
- "set" : {
2
+ "$schema" : " https://aka.ms/dsc/schemas/v3/bundled/resource/manifest.json" ,
3
+ "type" : " Microsoft.Windows/WindowsPowerShell" ,
4
+ "version" : " 0.1.0" ,
5
+ "kind" : " adapter" ,
6
+ "description" : " Resource adapter to classic DSC Powershell resources in Windows PowerShell." ,
7
+ "tags" : [
8
+ " PowerShell"
9
+ ],
10
+ "adapter" : {
11
+ "list" : {
39
12
"executable" : " powershell" ,
40
13
"args" : [
41
14
" -NoLogo" ,
44
17
" -ExecutionPolicy" ,
45
18
" Bypass" ,
46
19
" -Command" ,
47
- " $Input | ./psDscAdapter/powershell.resource.ps1 Set"
48
- ],
49
- "input" : " stdin" ,
50
- "preTest" : true
51
- },
52
- "test" : {
53
- "executable" : " powershell" ,
54
- "args" : [
55
- " -NoLogo" ,
56
- " -NonInteractive" ,
57
- " -NoProfile" ,
58
- " -ExecutionPolicy" ,
59
- " Bypass" ,
60
- " -Command" ,
61
- " $Input | ./psDscAdapter/powershell.resource.ps1 Test"
62
- ],
63
- "input" : " stdin" ,
64
- "return" : " state"
65
- },
66
- "validate" : {
67
- "executable" : " powershell" ,
68
- "args" : [
69
- " -NoLogo" ,
70
- " -NonInteractive" ,
71
- " -NoProfile" ,
72
- " -ExecutionPolicy" ,
73
- " Bypass" ,
74
- " -Command" ,
75
- " $Input | ./psDscAdapter/powershell.resource.ps1 Validate"
76
- ]
77
- },
78
- "exitCodes" : {
79
- "0" : " Success" ,
80
- "1" : " Error"
81
- }
20
+ " ./psDscAdapter/powershell.resource.ps1 List"
21
+ ]
22
+ },
23
+ "config" : " full"
24
+ },
25
+ "get" : {
26
+ "executable" : " powershell" ,
27
+ "args" : [
28
+ " -NoLogo" ,
29
+ " -NonInteractive" ,
30
+ " -NoProfile" ,
31
+ " -ExecutionPolicy" ,
32
+ " Bypass" ,
33
+ " -Command" ,
34
+ " $Input | ./psDscAdapter/powershell.resource.ps1 Get"
35
+ ],
36
+ "input" : " stdin"
37
+ },
38
+ "set" : {
39
+ "executable" : " powershell" ,
40
+ "args" : [
41
+ " -NoLogo" ,
42
+ " -NonInteractive" ,
43
+ " -NoProfile" ,
44
+ " -ExecutionPolicy" ,
45
+ " Bypass" ,
46
+ " -Command" ,
47
+ " $Input | ./psDscAdapter/powershell.resource.ps1 Set"
48
+ ],
49
+ "input" : " stdin" ,
50
+ "preTest" : true
51
+ },
52
+ "test" : {
53
+ "executable" : " powershell" ,
54
+ "args" : [
55
+ " -NoLogo" ,
56
+ " -NonInteractive" ,
57
+ " -NoProfile" ,
58
+ " -ExecutionPolicy" ,
59
+ " Bypass" ,
60
+ " -Command" ,
61
+ " $Input | ./psDscAdapter/powershell.resource.ps1 Test"
62
+ ],
63
+ "input" : " stdin" ,
64
+ "return" : " state"
65
+ },
66
+ "export" : {
67
+ "executable" : " powershell" ,
68
+ "args" : [
69
+ " -NoLogo" ,
70
+ " -NonInteractive" ,
71
+ " -NoProfile" ,
72
+ " -ExecutionPolicy" ,
73
+ " Bypass" ,
74
+ " -Command" ,
75
+ " $Input | ./psDscAdapter/powershell.resource.ps1 Export"
76
+ ],
77
+ "input" : " stdin" ,
78
+ "return" : " state"
79
+ },
80
+ "validate" : {
81
+ "executable" : " powershell" ,
82
+ "args" : [
83
+ " -NoLogo" ,
84
+ " -NonInteractive" ,
85
+ " -NoProfile" ,
86
+ " -ExecutionPolicy" ,
87
+ " Bypass" ,
88
+ " -Command" ,
89
+ " $Input | ./psDscAdapter/powershell.resource.ps1 Validate"
90
+ ]
91
+ },
92
+ "exitCodes" : {
93
+ "0" : " Success" ,
94
+ "1" : " Error"
82
95
}
96
+ }
0 commit comments