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