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