fluent_command_builder 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/fluent_command_builder.rb +1 -0
- data/lib/fluent_command_builder/command_builder.rb +11 -15
- data/lib/fluent_command_builder/command_builders/aspnet_compiler_20.rb +19 -19
- data/lib/fluent_command_builder/command_builders/aspnet_compiler_35.rb +19 -19
- data/lib/fluent_command_builder/command_builders/aspnet_compiler_40.rb +19 -19
- data/lib/fluent_command_builder/command_builders/cucumber_11.rb +33 -33
- data/lib/fluent_command_builder/command_builders/dotcover_11.rb +55 -55
- data/lib/fluent_command_builder/command_builders/installutil_11.rb +10 -10
- data/lib/fluent_command_builder/command_builders/installutil_20.rb +11 -11
- data/lib/fluent_command_builder/command_builders/installutil_35.rb +11 -11
- data/lib/fluent_command_builder/command_builders/installutil_40.rb +12 -12
- data/lib/fluent_command_builder/command_builders/msbuild_20.rb +17 -17
- data/lib/fluent_command_builder/command_builders/msbuild_30.rb +17 -17
- data/lib/fluent_command_builder/command_builders/msbuild_35.rb +25 -25
- data/lib/fluent_command_builder/command_builders/msbuild_40.rb +43 -43
- data/lib/fluent_command_builder/command_builders/msdeploy_40.rb +34 -34
- data/lib/fluent_command_builder/command_builders/mstest_2005.rb +20 -20
- data/lib/fluent_command_builder/command_builders/mstest_2008.rb +21 -21
- data/lib/fluent_command_builder/command_builders/mstest_2010.rb +24 -24
- data/lib/fluent_command_builder/command_builders/netsh_2008.rb +84 -84
- data/lib/fluent_command_builder/command_builders/nunit_console_25.rb +25 -25
- data/lib/fluent_command_builder/command_builders/rake_09.rb +27 -27
- data/lib/fluent_command_builder/command_builders/simian_23.rb +27 -27
- data/lib/fluent_command_builder/command_builders/tf_2010.rb +395 -395
- data/lib/fluent_command_builder/command_builders/tf_tee_2010.rb +1951 -0
- metadata +3 -2
@@ -5,113 +5,113 @@ module FluentCommandBuilder
|
|
5
5
|
module V2010
|
6
6
|
class MSTest
|
7
7
|
def initialize command=nil
|
8
|
-
@
|
9
|
-
@
|
8
|
+
@b = CommandBuilder.new command
|
9
|
+
@b.append 'MSTest'
|
10
10
|
self
|
11
11
|
end
|
12
12
|
|
13
13
|
def test_container file_name
|
14
|
-
@
|
14
|
+
@b.append "/testContainer:#{@b.format file_name}"
|
15
15
|
self
|
16
16
|
end
|
17
17
|
|
18
18
|
def test_metadata file_name
|
19
|
-
@
|
19
|
+
@b.append "/testMetadata:#{@b.format file_name}"
|
20
20
|
self
|
21
21
|
end
|
22
22
|
|
23
23
|
def test_list list_list_path
|
24
|
-
@
|
24
|
+
@b.append "/testList:#{@b.format list_list_path}"
|
25
25
|
self
|
26
26
|
end
|
27
27
|
|
28
28
|
def category test_category_filter
|
29
|
-
@
|
29
|
+
@b.append "/category:#{@b.format test_category_filter}"
|
30
30
|
self
|
31
31
|
end
|
32
32
|
|
33
33
|
def test test_name
|
34
|
-
@
|
34
|
+
@b.append "/test:#{@b.format test_name}"
|
35
35
|
self
|
36
36
|
end
|
37
37
|
|
38
38
|
def no_isolation
|
39
|
-
@
|
39
|
+
@b.append '/noIsolation'
|
40
40
|
self
|
41
41
|
end
|
42
42
|
|
43
43
|
def test_settings file_name
|
44
|
-
@
|
44
|
+
@b.append "/testSettings:#{@b.format file_name}"
|
45
45
|
self
|
46
46
|
end
|
47
47
|
|
48
48
|
def run_config file_name
|
49
|
-
@
|
49
|
+
@b.append "/runConfig:#{@b.format file_name}"
|
50
50
|
self
|
51
51
|
end
|
52
52
|
|
53
53
|
def results_file file_name
|
54
|
-
@
|
54
|
+
@b.append "/resultsFile:#{@b.format file_name}"
|
55
55
|
self
|
56
56
|
end
|
57
57
|
|
58
58
|
def unique
|
59
|
-
@
|
59
|
+
@b.append '/unique'
|
60
60
|
self
|
61
61
|
end
|
62
62
|
|
63
63
|
def detail property_id
|
64
|
-
@
|
64
|
+
@b.append "/detail:#{@b.format property_id}"
|
65
65
|
self
|
66
66
|
end
|
67
67
|
|
68
68
|
def help
|
69
|
-
@
|
69
|
+
@b.append '/help'
|
70
70
|
self
|
71
71
|
end
|
72
72
|
|
73
73
|
def no_logo
|
74
|
-
@
|
74
|
+
@b.append '/noLogo'
|
75
75
|
self
|
76
76
|
end
|
77
77
|
|
78
78
|
def use_std_err
|
79
|
-
@
|
79
|
+
@b.append '/useStdErr'
|
80
80
|
self
|
81
81
|
end
|
82
82
|
|
83
83
|
def publish server_name
|
84
|
-
@
|
84
|
+
@b.append "/publish:#{@b.format server_name}"
|
85
85
|
self
|
86
86
|
end
|
87
87
|
|
88
88
|
def publish_results_file file_name
|
89
|
-
@
|
89
|
+
@b.append "/publishResultsFile:#{@b.format file_name}"
|
90
90
|
self
|
91
91
|
end
|
92
92
|
|
93
93
|
def publish_build build_id
|
94
|
-
@
|
94
|
+
@b.append "/publishBuild:#{@b.format build_id}"
|
95
95
|
self
|
96
96
|
end
|
97
97
|
|
98
98
|
def team_project team_project_name
|
99
|
-
@
|
99
|
+
@b.append "/teamProject:#{@b.format team_project_name}"
|
100
100
|
self
|
101
101
|
end
|
102
102
|
|
103
103
|
def platform platform
|
104
|
-
@
|
104
|
+
@b.append "/platform:#{@b.format platform}"
|
105
105
|
self
|
106
106
|
end
|
107
107
|
|
108
108
|
def flavor flavor
|
109
|
-
@
|
109
|
+
@b.append "/flavor:#{@b.format flavor}"
|
110
110
|
self
|
111
111
|
end
|
112
112
|
|
113
113
|
def to_s
|
114
|
-
@
|
114
|
+
@b.to_s
|
115
115
|
end
|
116
116
|
|
117
117
|
end
|
@@ -124,7 +124,7 @@ module FluentCommandBuilder
|
|
124
124
|
|
125
125
|
end
|
126
126
|
|
127
|
-
def
|
127
|
+
def mstest_2010
|
128
128
|
MSTest::V2010::MSTest.new
|
129
129
|
end
|
130
130
|
|
@@ -5,8 +5,8 @@ module FluentCommandBuilder
|
|
5
5
|
module V2008
|
6
6
|
class Netsh
|
7
7
|
def initialize command=nil
|
8
|
-
@
|
9
|
-
@
|
8
|
+
@b = CommandBuilder.new command
|
9
|
+
@b.append 'netsh'
|
10
10
|
self
|
11
11
|
end
|
12
12
|
|
@@ -15,15 +15,15 @@ module FluentCommandBuilder
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def to_s
|
18
|
-
@
|
18
|
+
@b.to_s
|
19
19
|
end
|
20
20
|
|
21
21
|
end
|
22
22
|
|
23
23
|
class Advfirewall
|
24
24
|
def initialize command=nil
|
25
|
-
@
|
26
|
-
@
|
25
|
+
@b = CommandBuilder.new command
|
26
|
+
@b.append 'advfirewall'
|
27
27
|
self
|
28
28
|
end
|
29
29
|
|
@@ -44,181 +44,181 @@ module FluentCommandBuilder
|
|
44
44
|
end
|
45
45
|
|
46
46
|
def to_s
|
47
|
-
@
|
47
|
+
@b.to_s
|
48
48
|
end
|
49
49
|
|
50
50
|
end
|
51
51
|
|
52
52
|
class AddRule
|
53
53
|
def initialize command=nil
|
54
|
-
@
|
55
|
-
@
|
54
|
+
@b = CommandBuilder.new command
|
55
|
+
@b.append 'add rule'
|
56
56
|
self
|
57
57
|
end
|
58
58
|
|
59
59
|
def name rule_name
|
60
|
-
@
|
60
|
+
@b.append "name=#{@b.format rule_name}"
|
61
61
|
self
|
62
62
|
end
|
63
63
|
|
64
64
|
def dir direction
|
65
|
-
@
|
65
|
+
@b.append "dir=#{@b.format direction}"
|
66
66
|
self
|
67
67
|
end
|
68
68
|
|
69
69
|
def action action
|
70
|
-
@
|
70
|
+
@b.append "action=#{@b.format action}"
|
71
71
|
self
|
72
72
|
end
|
73
73
|
|
74
74
|
def program path
|
75
|
-
@
|
75
|
+
@b.append "program=#{@b.format path}"
|
76
76
|
self
|
77
77
|
end
|
78
78
|
|
79
79
|
def service service_short_name
|
80
|
-
@
|
80
|
+
@b.append "service=#{@b.format service_short_name}"
|
81
81
|
self
|
82
82
|
end
|
83
83
|
|
84
84
|
def description rule_description
|
85
|
-
@
|
85
|
+
@b.append "description=#{@b.format rule_description}"
|
86
86
|
self
|
87
87
|
end
|
88
88
|
|
89
89
|
def enable enable
|
90
|
-
@
|
90
|
+
@b.append "enable=#{@b.format enable}"
|
91
91
|
self
|
92
92
|
end
|
93
93
|
|
94
94
|
def profile profile
|
95
|
-
@
|
95
|
+
@b.append "profile=#{@b.format profile}"
|
96
96
|
self
|
97
97
|
end
|
98
98
|
|
99
99
|
def localip addresses
|
100
|
-
@
|
100
|
+
@b.append "localip=#{@b.format addresses}"
|
101
101
|
self
|
102
102
|
end
|
103
103
|
|
104
104
|
def remoteip addresses
|
105
|
-
@
|
105
|
+
@b.append "remoteip=#{@b.format addresses}"
|
106
106
|
self
|
107
107
|
end
|
108
108
|
|
109
109
|
def localport port
|
110
|
-
@
|
110
|
+
@b.append "localport=#{@b.format port}"
|
111
111
|
self
|
112
112
|
end
|
113
113
|
|
114
114
|
def remoteport port
|
115
|
-
@
|
115
|
+
@b.append "remoteport=#{@b.format port}"
|
116
116
|
self
|
117
117
|
end
|
118
118
|
|
119
119
|
def protocol protocol
|
120
|
-
@
|
120
|
+
@b.append "protocol=#{@b.format protocol}"
|
121
121
|
self
|
122
122
|
end
|
123
123
|
|
124
124
|
def interface_type type
|
125
|
-
@
|
125
|
+
@b.append "interfaceType=#{@b.format type}"
|
126
126
|
self
|
127
127
|
end
|
128
128
|
|
129
129
|
def rmtcomputergrp sddl_string
|
130
|
-
@
|
130
|
+
@b.append "rmtcomputergrp=#{@b.format sddl_string}"
|
131
131
|
self
|
132
132
|
end
|
133
133
|
|
134
134
|
def rmtusgrp sddl_string
|
135
|
-
@
|
135
|
+
@b.append "rmtusgrp=#{@b.format sddl_string}"
|
136
136
|
self
|
137
137
|
end
|
138
138
|
|
139
139
|
def edge edge
|
140
|
-
@
|
140
|
+
@b.append "edge=#{@b.format edge}"
|
141
141
|
self
|
142
142
|
end
|
143
143
|
|
144
144
|
def security security
|
145
|
-
@
|
145
|
+
@b.append "security=#{@b.format security}"
|
146
146
|
self
|
147
147
|
end
|
148
148
|
|
149
149
|
def to_s
|
150
|
-
@
|
150
|
+
@b.to_s
|
151
151
|
end
|
152
152
|
|
153
153
|
end
|
154
154
|
|
155
155
|
class DeleteRule
|
156
156
|
def initialize command=nil
|
157
|
-
@
|
158
|
-
@
|
157
|
+
@b = CommandBuilder.new command
|
158
|
+
@b.append 'delete rule'
|
159
159
|
self
|
160
160
|
end
|
161
161
|
|
162
162
|
def name rule_name
|
163
|
-
@
|
163
|
+
@b.append "name=#{@b.format rule_name}"
|
164
164
|
self
|
165
165
|
end
|
166
166
|
|
167
167
|
def dir direction
|
168
|
-
@
|
168
|
+
@b.append "dir=#{@b.format direction}"
|
169
169
|
self
|
170
170
|
end
|
171
171
|
|
172
172
|
def profile profile
|
173
|
-
@
|
173
|
+
@b.append "profile=#{@b.format profile}"
|
174
174
|
self
|
175
175
|
end
|
176
176
|
|
177
177
|
def program path
|
178
|
-
@
|
178
|
+
@b.append "program=#{@b.format path}"
|
179
179
|
self
|
180
180
|
end
|
181
181
|
|
182
182
|
def service service_short_name
|
183
|
-
@
|
183
|
+
@b.append "service=#{@b.format service_short_name}"
|
184
184
|
self
|
185
185
|
end
|
186
186
|
|
187
187
|
def localip addresses
|
188
|
-
@
|
188
|
+
@b.append "localip=#{@b.format addresses}"
|
189
189
|
self
|
190
190
|
end
|
191
191
|
|
192
192
|
def remoteip addresses
|
193
|
-
@
|
193
|
+
@b.append "remoteip=#{@b.format addresses}"
|
194
194
|
self
|
195
195
|
end
|
196
196
|
|
197
197
|
def localport port
|
198
|
-
@
|
198
|
+
@b.append "localport=#{@b.format port}"
|
199
199
|
self
|
200
200
|
end
|
201
201
|
|
202
202
|
def remoteport port
|
203
|
-
@
|
203
|
+
@b.append "remoteport=#{@b.format port}"
|
204
204
|
self
|
205
205
|
end
|
206
206
|
|
207
207
|
def protocol protocol
|
208
|
-
@
|
208
|
+
@b.append "protocol=#{@b.format protocol}"
|
209
209
|
self
|
210
210
|
end
|
211
211
|
|
212
212
|
def to_s
|
213
|
-
@
|
213
|
+
@b.to_s
|
214
214
|
end
|
215
215
|
|
216
216
|
end
|
217
217
|
|
218
218
|
class SetRule
|
219
219
|
def initialize command=nil
|
220
|
-
@
|
221
|
-
@
|
220
|
+
@b = CommandBuilder.new command
|
221
|
+
@b.append 'set rule'
|
222
222
|
self
|
223
223
|
end
|
224
224
|
|
@@ -227,168 +227,168 @@ module FluentCommandBuilder
|
|
227
227
|
end
|
228
228
|
|
229
229
|
def group group_name
|
230
|
-
@
|
230
|
+
@b.append "group=#{@b.format group_name}"
|
231
231
|
self
|
232
232
|
end
|
233
233
|
|
234
234
|
def dir direction
|
235
|
-
@
|
235
|
+
@b.append "dir=#{@b.format direction}"
|
236
236
|
self
|
237
237
|
end
|
238
238
|
|
239
239
|
def profile profile
|
240
|
-
@
|
240
|
+
@b.append "profile=#{@b.format profile}"
|
241
241
|
self
|
242
242
|
end
|
243
243
|
|
244
244
|
def program path
|
245
|
-
@
|
245
|
+
@b.append "program=#{@b.format path}"
|
246
246
|
self
|
247
247
|
end
|
248
248
|
|
249
249
|
def service service_short_name
|
250
|
-
@
|
250
|
+
@b.append "service=#{@b.format service_short_name}"
|
251
251
|
self
|
252
252
|
end
|
253
253
|
|
254
254
|
def localip addresses
|
255
|
-
@
|
255
|
+
@b.append "localip=#{@b.format addresses}"
|
256
256
|
self
|
257
257
|
end
|
258
258
|
|
259
259
|
def remoteip addresses
|
260
|
-
@
|
260
|
+
@b.append "remoteip=#{@b.format addresses}"
|
261
261
|
self
|
262
262
|
end
|
263
263
|
|
264
264
|
def localport port
|
265
|
-
@
|
265
|
+
@b.append "localport=#{@b.format port}"
|
266
266
|
self
|
267
267
|
end
|
268
268
|
|
269
269
|
def remoteport port
|
270
|
-
@
|
270
|
+
@b.append "remoteport=#{@b.format port}"
|
271
271
|
self
|
272
272
|
end
|
273
273
|
|
274
274
|
def protocol protocol
|
275
|
-
@
|
275
|
+
@b.append "protocol=#{@b.format protocol}"
|
276
276
|
self
|
277
277
|
end
|
278
278
|
|
279
279
|
def to_s
|
280
|
-
@
|
280
|
+
@b.to_s
|
281
281
|
end
|
282
282
|
|
283
283
|
end
|
284
284
|
|
285
285
|
class New
|
286
286
|
def initialize command=nil
|
287
|
-
@
|
288
|
-
@
|
287
|
+
@b = CommandBuilder.new command
|
288
|
+
@b.append 'new'
|
289
289
|
self
|
290
290
|
end
|
291
291
|
|
292
292
|
def name rule_name
|
293
|
-
@
|
293
|
+
@b.append "name=#{@b.format rule_name}"
|
294
294
|
self
|
295
295
|
end
|
296
296
|
|
297
297
|
def dir direction
|
298
|
-
@
|
298
|
+
@b.append "dir=#{@b.format direction}"
|
299
299
|
self
|
300
300
|
end
|
301
301
|
|
302
302
|
def program path
|
303
|
-
@
|
303
|
+
@b.append "program=#{@b.format path}"
|
304
304
|
self
|
305
305
|
end
|
306
306
|
|
307
307
|
def service service_short_name
|
308
|
-
@
|
308
|
+
@b.append "service=#{@b.format service_short_name}"
|
309
309
|
self
|
310
310
|
end
|
311
311
|
|
312
312
|
def action action
|
313
|
-
@
|
313
|
+
@b.append "action=#{@b.format action}"
|
314
314
|
self
|
315
315
|
end
|
316
316
|
|
317
317
|
def description rule_description
|
318
|
-
@
|
318
|
+
@b.append "description=#{@b.format rule_description}"
|
319
319
|
self
|
320
320
|
end
|
321
321
|
|
322
322
|
def enable enable
|
323
|
-
@
|
323
|
+
@b.append "enable=#{@b.format enable}"
|
324
324
|
self
|
325
325
|
end
|
326
326
|
|
327
327
|
def profile profile
|
328
|
-
@
|
328
|
+
@b.append "profile=#{@b.format profile}"
|
329
329
|
self
|
330
330
|
end
|
331
331
|
|
332
332
|
def localip addresses
|
333
|
-
@
|
333
|
+
@b.append "localip=#{@b.format addresses}"
|
334
334
|
self
|
335
335
|
end
|
336
336
|
|
337
337
|
def remoteip addresses
|
338
|
-
@
|
338
|
+
@b.append "remoteip=#{@b.format addresses}"
|
339
339
|
self
|
340
340
|
end
|
341
341
|
|
342
342
|
def localport port
|
343
|
-
@
|
343
|
+
@b.append "localport=#{@b.format port}"
|
344
344
|
self
|
345
345
|
end
|
346
346
|
|
347
347
|
def remoteport port
|
348
|
-
@
|
348
|
+
@b.append "remoteport=#{@b.format port}"
|
349
349
|
self
|
350
350
|
end
|
351
351
|
|
352
352
|
def protocol protocol
|
353
|
-
@
|
353
|
+
@b.append "protocol=#{@b.format protocol}"
|
354
354
|
self
|
355
355
|
end
|
356
356
|
|
357
357
|
def interface_type type
|
358
|
-
@
|
358
|
+
@b.append "interfaceType=#{@b.format type}"
|
359
359
|
self
|
360
360
|
end
|
361
361
|
|
362
362
|
def rmtcomputergrp sddl_string
|
363
|
-
@
|
363
|
+
@b.append "rmtcomputergrp=#{@b.format sddl_string}"
|
364
364
|
self
|
365
365
|
end
|
366
366
|
|
367
367
|
def rmtusgrp sddl_string
|
368
|
-
@
|
368
|
+
@b.append "rmtusgrp=#{@b.format sddl_string}"
|
369
369
|
self
|
370
370
|
end
|
371
371
|
|
372
372
|
def edge edge
|
373
|
-
@
|
373
|
+
@b.append "edge=#{@b.format edge}"
|
374
374
|
self
|
375
375
|
end
|
376
376
|
|
377
377
|
def security security
|
378
|
-
@
|
378
|
+
@b.append "security=#{@b.format security}"
|
379
379
|
self
|
380
380
|
end
|
381
381
|
|
382
382
|
def to_s
|
383
|
-
@
|
383
|
+
@b.to_s
|
384
384
|
end
|
385
385
|
|
386
386
|
end
|
387
387
|
|
388
388
|
class ShowRule
|
389
389
|
def initialize command=nil
|
390
|
-
@
|
391
|
-
@
|
390
|
+
@b = CommandBuilder.new command
|
391
|
+
@b.append 'show rule'
|
392
392
|
self
|
393
393
|
end
|
394
394
|
|
@@ -397,35 +397,35 @@ module FluentCommandBuilder
|
|
397
397
|
end
|
398
398
|
|
399
399
|
def name rule_name
|
400
|
-
@
|
400
|
+
@b.append "name=#{@b.format rule_name}"
|
401
401
|
self
|
402
402
|
end
|
403
403
|
|
404
404
|
def profile profile
|
405
|
-
@
|
405
|
+
@b.append "profile=#{@b.format profile}"
|
406
406
|
self
|
407
407
|
end
|
408
408
|
|
409
409
|
def type type
|
410
|
-
@
|
410
|
+
@b.append "type=#{@b.format type}"
|
411
411
|
self
|
412
412
|
end
|
413
413
|
|
414
414
|
def to_s
|
415
|
-
@
|
415
|
+
@b.to_s
|
416
416
|
end
|
417
417
|
|
418
418
|
end
|
419
419
|
|
420
420
|
class Verbose
|
421
421
|
def initialize command=nil
|
422
|
-
@
|
423
|
-
@
|
422
|
+
@b = CommandBuilder.new command
|
423
|
+
@b.append 'verbose'
|
424
424
|
self
|
425
425
|
end
|
426
426
|
|
427
427
|
def to_s
|
428
|
-
@
|
428
|
+
@b.to_s
|
429
429
|
end
|
430
430
|
|
431
431
|
end
|
@@ -438,7 +438,7 @@ module FluentCommandBuilder
|
|
438
438
|
|
439
439
|
end
|
440
440
|
|
441
|
-
def
|
441
|
+
def netsh_2008
|
442
442
|
Netsh::V2008::Netsh.new
|
443
443
|
end
|
444
444
|
|