fluent_command_builder 0.5.6 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. data/lib/command_version_detector.rb +1 -0
  2. data/lib/fluent_command_builder/command_base.rb +20 -11
  3. data/lib/fluent_command_builder/command_builders/appcfg_python.rb +17 -0
  4. data/lib/fluent_command_builder/command_builders/appcfg_python_16.rb +1059 -1059
  5. data/lib/fluent_command_builder/command_builders/appcfg_python_17.rb +1055 -1055
  6. data/lib/fluent_command_builder/command_builders/aspnet_compiler.rb +17 -0
  7. data/lib/fluent_command_builder/command_builders/aspnet_compiler_20.rb +46 -46
  8. data/lib/fluent_command_builder/command_builders/aspnet_compiler_40.rb +46 -46
  9. data/lib/fluent_command_builder/command_builders/bundle.rb +17 -0
  10. data/lib/fluent_command_builder/command_builders/bundle_11.rb +140 -140
  11. data/lib/fluent_command_builder/command_builders/cucumber.rb +17 -0
  12. data/lib/fluent_command_builder/command_builders/cucumber_11.rb +76 -76
  13. data/lib/fluent_command_builder/command_builders/cucumber_12.rb +78 -78
  14. data/lib/fluent_command_builder/command_builders/dev_appserver_python.rb +17 -0
  15. data/lib/fluent_command_builder/command_builders/dev_appserver_python_16.rb +91 -86
  16. data/lib/fluent_command_builder/command_builders/dev_appserver_python_17.rb +91 -86
  17. data/lib/fluent_command_builder/command_builders/dotcover.rb +17 -0
  18. data/lib/fluent_command_builder/command_builders/dotcover_10.rb +33 -33
  19. data/lib/fluent_command_builder/command_builders/dotcover_11.rb +133 -133
  20. data/lib/fluent_command_builder/command_builders/dotcover_12.rb +133 -133
  21. data/lib/fluent_command_builder/command_builders/dotcover_20.rb +137 -137
  22. data/lib/fluent_command_builder/command_builders/installutil.rb +17 -0
  23. data/lib/fluent_command_builder/command_builders/installutil_11.rb +31 -31
  24. data/lib/fluent_command_builder/command_builders/installutil_20.rb +33 -33
  25. data/lib/fluent_command_builder/command_builders/installutil_35.rb +33 -33
  26. data/lib/fluent_command_builder/command_builders/installutil_40.rb +36 -36
  27. data/lib/fluent_command_builder/command_builders/msbuild.rb +17 -0
  28. data/lib/fluent_command_builder/command_builders/msbuild_20.rb +43 -43
  29. data/lib/fluent_command_builder/command_builders/msbuild_30.rb +43 -43
  30. data/lib/fluent_command_builder/command_builders/msbuild_35.rb +59 -59
  31. data/lib/fluent_command_builder/command_builders/msbuild_40.rb +62 -62
  32. data/lib/fluent_command_builder/command_builders/msdeploy.rb +17 -0
  33. data/lib/fluent_command_builder/command_builders/msdeploy_71.rb +177 -0
  34. data/lib/fluent_command_builder/command_builders/mstest.rb +17 -0
  35. data/lib/fluent_command_builder/command_builders/mstest_100.rb +127 -0
  36. data/lib/fluent_command_builder/command_builders/mstest_80.rb +107 -0
  37. data/lib/fluent_command_builder/command_builders/mstest_90.rb +112 -0
  38. data/lib/fluent_command_builder/command_builders/netsh.rb +17 -0
  39. data/lib/fluent_command_builder/command_builders/netsh_61.rb +408 -0
  40. data/lib/fluent_command_builder/command_builders/nunit.rb +17 -0
  41. data/lib/fluent_command_builder/command_builders/nunit_25.rb +69 -64
  42. data/lib/fluent_command_builder/command_builders/nunit_26.rb +85 -80
  43. data/lib/fluent_command_builder/command_builders/rake.rb +17 -0
  44. data/lib/fluent_command_builder/command_builders/rake_09.rb +64 -64
  45. data/lib/fluent_command_builder/command_builders/security_osx.rb +17 -0
  46. data/lib/fluent_command_builder/command_builders/security_osx_107.rb +82 -82
  47. data/lib/fluent_command_builder/command_builders/sevenzip.rb +17 -0
  48. data/lib/fluent_command_builder/command_builders/sevenzip_92.rb +243 -243
  49. data/lib/fluent_command_builder/command_builders/simian.rb +17 -0
  50. data/lib/fluent_command_builder/command_builders/simian_23.rb +63 -63
  51. data/lib/fluent_command_builder/command_builders/team_foundation.rb +17 -0
  52. data/lib/fluent_command_builder/command_builders/team_foundation_100.rb +2155 -0
  53. data/lib/fluent_command_builder/command_builders/team_foundation_tee.rb +17 -0
  54. data/lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb +1978 -0
  55. data/lib/fluent_command_builder/command_builders/xcodebuild.rb +17 -0
  56. data/lib/fluent_command_builder/command_builders/xcodebuild_43.rb +112 -112
  57. data/lib/fluent_command_builder/command_builders/xcodebuild_44.rb +132 -132
  58. data/lib/fluent_command_builder/{command_builder.rb → underlying_builder.rb} +2 -2
  59. data/lib/fluent_command_builder/util.rb +18 -0
  60. data/lib/fluent_command_builder/version_detectors/appcfg_python.rb +9 -0
  61. data/lib/fluent_command_builder/version_detectors/aspnet_compiler.rb +9 -0
  62. data/lib/fluent_command_builder/version_detectors/bundle.rb +9 -0
  63. data/lib/fluent_command_builder/version_detectors/cucumber.rb +9 -0
  64. data/lib/fluent_command_builder/version_detectors/dev_appserver_python.rb +9 -0
  65. data/lib/fluent_command_builder/version_detectors/dotcover.rb +9 -0
  66. data/lib/fluent_command_builder/version_detectors/installutil.rb +9 -0
  67. data/lib/fluent_command_builder/version_detectors/lib/appengine_python_version_detector.rb +16 -0
  68. data/lib/fluent_command_builder/version_detectors/lib/path_finder.rb +43 -0
  69. data/lib/fluent_command_builder/version_detectors/lib/standard_version_detector.rb +14 -0
  70. data/lib/fluent_command_builder/version_detectors/msbuild.rb +9 -0
  71. data/lib/fluent_command_builder/version_detectors/msdeploy.rb +9 -0
  72. data/lib/fluent_command_builder/version_detectors/mstest.rb +9 -0
  73. data/lib/fluent_command_builder/version_detectors/nuget.rb +9 -0
  74. data/lib/fluent_command_builder/version_detectors/nunit.rb +9 -0
  75. data/lib/fluent_command_builder/version_detectors/rake.rb +9 -0
  76. data/lib/fluent_command_builder/version_detectors/security_osx.rb +9 -0
  77. data/lib/fluent_command_builder/version_detectors/sevenzip.rb +9 -0
  78. data/lib/fluent_command_builder/version_detectors/team_foundation.rb +9 -0
  79. data/lib/fluent_command_builder/version_detectors/xcodebuild.rb +9 -0
  80. data/lib/fluent_command_builder.rb +26 -7
  81. metadata +53 -12
  82. data/lib/fluent_command_builder/command_builders/msdeploy_40.rb +0 -177
  83. data/lib/fluent_command_builder/command_builders/mstest_2005.rb +0 -107
  84. data/lib/fluent_command_builder/command_builders/mstest_2008.rb +0 -112
  85. data/lib/fluent_command_builder/command_builders/mstest_2010.rb +0 -127
  86. data/lib/fluent_command_builder/command_builders/netsh_2008.rb +0 -408
  87. data/lib/fluent_command_builder/command_builders/tf_2010.rb +0 -2155
  88. data/lib/fluent_command_builder/command_builders/tf_tee_2010.rb +0 -1978
@@ -0,0 +1,408 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/../command_base')
2
+ require File.expand_path(File.dirname(__FILE__) + '/../underlying_builder')
3
+
4
+ module FluentCommandBuilder
5
+ def netsh_61
6
+ FluentCommandBuilder::Netsh::V61.create { |b| yield b if block_given? }
7
+ end
8
+ module Netsh
9
+ module V61
10
+ def self.create
11
+ b = UnderlyingBuilder.new FluentCommandBuilder::Netsh::COMMAND_NAME
12
+ c = Netsh.new(b)
13
+ yield b if block_given?
14
+ c
15
+ end
16
+ def netsh
17
+ FluentCommandBuilder::Netsh::V61.create { |b| yield b if block_given? }
18
+ end
19
+ class Netsh < CommandBase
20
+ def initialize(underlying_builder)
21
+ super underlying_builder
22
+ end
23
+ def advfirewall
24
+ Advfirewall.new b
25
+ end
26
+ def http
27
+ Http.new b
28
+ end
29
+ end
30
+ class Advfirewall < CommandBase
31
+ def initialize(underlying_builder)
32
+ super underlying_builder
33
+ b.append ' advfirewall'
34
+ end
35
+ def firewall
36
+ Firewall.new b
37
+ end
38
+ end
39
+ class Firewall < CommandBase
40
+ def initialize(underlying_builder)
41
+ super underlying_builder
42
+ b.append ' firewall'
43
+ end
44
+ def add_rule(rule_name, direction, action)
45
+ AddRule.new b, rule_name, direction, action
46
+ end
47
+ def delete_rule(rule_name)
48
+ DeleteRule.new b, rule_name
49
+ end
50
+ def set_rule
51
+ SetRule.new b
52
+ end
53
+ def show_rule(rule_name)
54
+ ShowRule.new b, rule_name
55
+ end
56
+ end
57
+ class AddRule < CommandBase
58
+ def initialize(underlying_builder, rule_name, direction, action)
59
+ super underlying_builder
60
+ b.append " add rule name=#{b.format rule_name} dir=#{b.format direction} action=#{b.format action}"
61
+ end
62
+ def program(path)
63
+ b.append " program=#{b.format path}"
64
+ yield b if block_given?
65
+ self
66
+ end
67
+ def service(service_short_name)
68
+ b.append " service=#{b.format service_short_name}"
69
+ yield b if block_given?
70
+ self
71
+ end
72
+ def description(rule_description)
73
+ b.append " description=#{b.format rule_description}"
74
+ yield b if block_given?
75
+ self
76
+ end
77
+ def enable(enable)
78
+ b.append " enable=#{b.format enable}"
79
+ yield b if block_given?
80
+ self
81
+ end
82
+ def profile(profile)
83
+ b.append " profile=#{b.format profile}"
84
+ yield b if block_given?
85
+ self
86
+ end
87
+ def local_ip(address)
88
+ b.append " localIp=#{b.format address, ','}"
89
+ yield b if block_given?
90
+ self
91
+ end
92
+ def remote_ip(address)
93
+ b.append " remoteIp=#{b.format address, ','}"
94
+ yield b if block_given?
95
+ self
96
+ end
97
+ def local_port(port)
98
+ b.append " localPort=#{b.format port, ','}"
99
+ yield b if block_given?
100
+ self
101
+ end
102
+ def remote_port(port)
103
+ b.append " remotePort=#{b.format port, ','}"
104
+ yield b if block_given?
105
+ self
106
+ end
107
+ def protocol(protocol)
108
+ b.append " protocol=#{b.format protocol}"
109
+ yield b if block_given?
110
+ self
111
+ end
112
+ def interface_type(type)
113
+ b.append " interfaceType=#{b.format type}"
114
+ yield b if block_given?
115
+ self
116
+ end
117
+ def remote_computer_group(sddl_string)
118
+ b.append " rmtcomputergrp=#{b.format sddl_string}"
119
+ yield b if block_given?
120
+ self
121
+ end
122
+ def remote_user_group(sddl_string)
123
+ b.append " rmtusgrp=#{b.format sddl_string}"
124
+ yield b if block_given?
125
+ self
126
+ end
127
+ def edge(edge)
128
+ b.append " edge=#{b.format edge}"
129
+ yield b if block_given?
130
+ self
131
+ end
132
+ def security(security)
133
+ b.append " security=#{b.format security}"
134
+ yield b if block_given?
135
+ self
136
+ end
137
+ end
138
+ class DeleteRule < CommandBase
139
+ def initialize(underlying_builder, rule_name)
140
+ super underlying_builder
141
+ b.append " delete rule name=#{b.format rule_name}"
142
+ end
143
+ def dir(direction)
144
+ b.append " dir=#{b.format direction}"
145
+ yield b if block_given?
146
+ self
147
+ end
148
+ def profile(profile)
149
+ b.append " profile=#{b.format profile}"
150
+ yield b if block_given?
151
+ self
152
+ end
153
+ def program(path)
154
+ b.append " program=#{b.format path}"
155
+ yield b if block_given?
156
+ self
157
+ end
158
+ def service(service_short_name)
159
+ b.append " service=#{b.format service_short_name}"
160
+ yield b if block_given?
161
+ self
162
+ end
163
+ def local_ip(address)
164
+ b.append " localIp=#{b.format address, ','}"
165
+ yield b if block_given?
166
+ self
167
+ end
168
+ def remote_ip(address)
169
+ b.append " remoteIp=#{b.format address, ','}"
170
+ yield b if block_given?
171
+ self
172
+ end
173
+ def local_port(port)
174
+ b.append " localPort=#{b.format port, ','}"
175
+ yield b if block_given?
176
+ self
177
+ end
178
+ def remote_port(port)
179
+ b.append " remotePort=#{b.format port, ','}"
180
+ yield b if block_given?
181
+ self
182
+ end
183
+ def protocol(protocol)
184
+ b.append " protocol=#{b.format protocol}"
185
+ yield b if block_given?
186
+ self
187
+ end
188
+ end
189
+ class SetRule < CommandBase
190
+ def initialize(underlying_builder)
191
+ super underlying_builder
192
+ b.append ' set rule'
193
+ end
194
+ def group(group_name)
195
+ b.append " group=#{b.format group_name}"
196
+ yield b if block_given?
197
+ self
198
+ end
199
+ def dir(direction)
200
+ b.append " dir=#{b.format direction}"
201
+ yield b if block_given?
202
+ self
203
+ end
204
+ def profile(profile)
205
+ b.append " profile=#{b.format profile}"
206
+ yield b if block_given?
207
+ self
208
+ end
209
+ def program(path)
210
+ b.append " program=#{b.format path}"
211
+ yield b if block_given?
212
+ self
213
+ end
214
+ def service(service_short_name)
215
+ b.append " service=#{b.format service_short_name}"
216
+ yield b if block_given?
217
+ self
218
+ end
219
+ def local_ip(address)
220
+ b.append " localIp=#{b.format address, ','}"
221
+ yield b if block_given?
222
+ self
223
+ end
224
+ def remote_ip(address)
225
+ b.append " remoteIp=#{b.format address, ','}"
226
+ yield b if block_given?
227
+ self
228
+ end
229
+ def local_port(port)
230
+ b.append " localPort=#{b.format port, ','}"
231
+ yield b if block_given?
232
+ self
233
+ end
234
+ def remote_port(port)
235
+ b.append " remotePort=#{b.format port, ','}"
236
+ yield b if block_given?
237
+ self
238
+ end
239
+ def protocol(protocol)
240
+ b.append " protocol=#{b.format protocol}"
241
+ yield b if block_given?
242
+ self
243
+ end
244
+ def new
245
+ New.new b
246
+ end
247
+ end
248
+ class New < CommandBase
249
+ def initialize(underlying_builder)
250
+ super underlying_builder
251
+ b.append ' new'
252
+ end
253
+ def name(rule_name)
254
+ b.append " name=#{b.format rule_name}"
255
+ yield b if block_given?
256
+ self
257
+ end
258
+ def dir(direction)
259
+ b.append " dir=#{b.format direction}"
260
+ yield b if block_given?
261
+ self
262
+ end
263
+ def program(path)
264
+ b.append " program=#{b.format path}"
265
+ yield b if block_given?
266
+ self
267
+ end
268
+ def service(service_short_name)
269
+ b.append " service=#{b.format service_short_name}"
270
+ yield b if block_given?
271
+ self
272
+ end
273
+ def action(action)
274
+ b.append " action=#{b.format action}"
275
+ yield b if block_given?
276
+ self
277
+ end
278
+ def description(rule_description)
279
+ b.append " description=#{b.format rule_description}"
280
+ yield b if block_given?
281
+ self
282
+ end
283
+ def enable(enable)
284
+ b.append " enable=#{b.format enable}"
285
+ yield b if block_given?
286
+ self
287
+ end
288
+ def profile(profile)
289
+ b.append " profile=#{b.format profile}"
290
+ yield b if block_given?
291
+ self
292
+ end
293
+ def local_ip(address)
294
+ b.append " localIp=#{b.format address, ','}"
295
+ yield b if block_given?
296
+ self
297
+ end
298
+ def remote_ip(address)
299
+ b.append " remoteIp=#{b.format address, ','}"
300
+ yield b if block_given?
301
+ self
302
+ end
303
+ def local_port(port)
304
+ b.append " localPort=#{b.format port, ','}"
305
+ yield b if block_given?
306
+ self
307
+ end
308
+ def remote_port(port)
309
+ b.append " remotePort=#{b.format port, ','}"
310
+ yield b if block_given?
311
+ self
312
+ end
313
+ def protocol(protocol)
314
+ b.append " protocol=#{b.format protocol}"
315
+ yield b if block_given?
316
+ self
317
+ end
318
+ def interface_type(type)
319
+ b.append " interfaceType=#{b.format type}"
320
+ yield b if block_given?
321
+ self
322
+ end
323
+ def remote_computer_group(sddl_string)
324
+ b.append " rmtcomputergrp=#{b.format sddl_string}"
325
+ yield b if block_given?
326
+ self
327
+ end
328
+ def remote_user_group(sddl_string)
329
+ b.append " rmtusgrp=#{b.format sddl_string}"
330
+ yield b if block_given?
331
+ self
332
+ end
333
+ def edge(edge)
334
+ b.append " edge=#{b.format edge}"
335
+ yield b if block_given?
336
+ self
337
+ end
338
+ def security(security)
339
+ b.append " security=#{b.format security}"
340
+ yield b if block_given?
341
+ self
342
+ end
343
+ end
344
+ class ShowRule < CommandBase
345
+ def initialize(underlying_builder, rule_name)
346
+ super underlying_builder
347
+ b.append " show rule name=#{b.format rule_name}"
348
+ end
349
+ def profile(profile)
350
+ b.append " profile=#{b.format profile}"
351
+ yield b if block_given?
352
+ self
353
+ end
354
+ def type(type)
355
+ b.append " type=#{b.format type}"
356
+ yield b if block_given?
357
+ self
358
+ end
359
+ def verbose
360
+ b.append ' verbose'
361
+ yield b if block_given?
362
+ self
363
+ end
364
+ end
365
+ class Http < CommandBase
366
+ def initialize(underlying_builder)
367
+ super underlying_builder
368
+ b.append ' http'
369
+ end
370
+ def add_url_acl(url)
371
+ AddUrlAcl.new b, url
372
+ end
373
+ def delete_url_acl(url)
374
+ b.append " delete urlacl url=#{b.format url}"
375
+ yield b if block_given?
376
+ self
377
+ end
378
+ end
379
+ class AddUrlAcl < CommandBase
380
+ def initialize(underlying_builder, url)
381
+ super underlying_builder
382
+ b.append " add urlacl url=#{b.format url}"
383
+ end
384
+ def user(user)
385
+ b.append " user=#{b.format user}"
386
+ yield b if block_given?
387
+ self
388
+ end
389
+ def listen(listen)
390
+ b.append " listen=#{b.format listen}"
391
+ yield b if block_given?
392
+ self
393
+ end
394
+ def delegate(delegate)
395
+ b.append " delegate=#{b.format delegate}"
396
+ yield b if block_given?
397
+ self
398
+ end
399
+ def sddl(sddl)
400
+ b.append " sddl=#{b.format sddl}"
401
+ yield b if block_given?
402
+ self
403
+ end
404
+ end
405
+
406
+ end
407
+ end
408
+ end
@@ -0,0 +1,17 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/../underlying_builder')
2
+ require File.expand_path(File.dirname(__FILE__) + '/../util')
3
+
4
+ module FluentCommandBuilder
5
+ def nunit(&block)
6
+ NUnit.create &block
7
+ end
8
+ module NUnit
9
+ COMMAND_NAME = 'nunit-console'
10
+ def self.create
11
+ b = UnderlyingBuilder.new FluentCommandBuilder::NUnit::COMMAND_NAME
12
+ c = version_module(NUnit).create b
13
+ yield b if block_given?
14
+ c
15
+ end
16
+ end
17
+ end
@@ -1,143 +1,148 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + '/../command_base')
2
- require File.expand_path(File.dirname(__FILE__) + '/../command_builder')
2
+ require File.expand_path(File.dirname(__FILE__) + '/../underlying_builder')
3
3
 
4
4
  module FluentCommandBuilder
5
+ def nunit_25(input_files=nil)
6
+ FluentCommandBuilder::NUnit::V25.create(input_files) { |b| yield b if block_given? }
7
+ end
5
8
  module NUnit
6
9
  module V25
7
- COMMAND_NAME = 'nunit-console'
10
+ def self.create(input_files=nil)
11
+ b = UnderlyingBuilder.new FluentCommandBuilder::NUnit::COMMAND_NAME
12
+ c = NUnit.new(b, input_files)
13
+ yield b if block_given?
14
+ c
15
+ end
16
+ def nunit(input_files=nil)
17
+ FluentCommandBuilder::NUnit::V25.create(input_files) { |b| yield b if block_given? }
18
+ end
8
19
  class NUnit < CommandBase
9
- def initialize(builder, input_files)
10
- super builder
11
- @builder.append " #{@builder.format input_files}"
20
+ def initialize(underlying_builder, input_files=nil)
21
+ super underlying_builder
22
+ b.append " #{b.format input_files}" unless input_files.nil?
23
+ end
24
+ def input_files(input_files)
25
+ b.append " #{b.format input_files}"
26
+ yield b if block_given?
27
+ self
12
28
  end
13
29
  def fixture(fixture)
14
- @builder.append " /fixture:#{@builder.format fixture}"
15
- yield @builder if block_given?
30
+ b.append " /fixture:#{b.format fixture}"
31
+ yield b if block_given?
16
32
  self
17
33
  end
18
34
  def load(fixture)
19
- @builder.append " /load:#{@builder.format fixture}"
20
- yield @builder if block_given?
35
+ b.append " /load:#{b.format fixture}"
36
+ yield b if block_given?
21
37
  self
22
38
  end
23
39
  def run(test)
24
- @builder.append " /run:#{@builder.format test}"
25
- yield @builder if block_given?
40
+ b.append " /run:#{b.format test}"
41
+ yield b if block_given?
26
42
  self
27
43
  end
28
44
  def config(config)
29
- @builder.append " /config:#{@builder.format config}"
30
- yield @builder if block_given?
45
+ b.append " /config:#{b.format config}"
46
+ yield b if block_given?
31
47
  self
32
48
  end
33
49
  def xml(file)
34
- @builder.append " /xml:#{@builder.format file}"
35
- yield @builder if block_given?
50
+ b.append " /xml:#{b.format file}"
51
+ yield b if block_given?
36
52
  self
37
53
  end
38
54
  def xml_console
39
- @builder.append ' /xmlConsole'
40
- yield @builder if block_given?
55
+ b.append ' /xmlConsole'
56
+ yield b if block_given?
41
57
  self
42
58
  end
43
59
  def output(file)
44
- @builder.append " /output:#{@builder.format file}"
45
- yield @builder if block_given?
60
+ b.append " /output:#{b.format file}"
61
+ yield b if block_given?
46
62
  self
47
63
  end
48
64
  def out(file)
49
- @builder.append " /out:#{@builder.format file}"
50
- yield @builder if block_given?
65
+ b.append " /out:#{b.format file}"
66
+ yield b if block_given?
51
67
  self
52
68
  end
53
69
  def err(file)
54
- @builder.append " /err:#{@builder.format file}"
55
- yield @builder if block_given?
70
+ b.append " /err:#{b.format file}"
71
+ yield b if block_given?
56
72
  self
57
73
  end
58
74
  def labels
59
- @builder.append ' /labels'
60
- yield @builder if block_given?
75
+ b.append ' /labels'
76
+ yield b if block_given?
61
77
  self
62
78
  end
63
79
  def trace(level)
64
- @builder.append " /trace:#{@builder.format level}"
65
- yield @builder if block_given?
80
+ b.append " /trace:#{b.format level}"
81
+ yield b if block_given?
66
82
  self
67
83
  end
68
84
  def include(category)
69
- @builder.append " /include:#{@builder.format category}"
70
- yield @builder if block_given?
85
+ b.append " /include:#{b.format category}"
86
+ yield b if block_given?
71
87
  self
72
88
  end
73
89
  def exclude(category)
74
- @builder.append " /exclude:#{@builder.format category}"
75
- yield @builder if block_given?
90
+ b.append " /exclude:#{b.format category}"
91
+ yield b if block_given?
76
92
  self
77
93
  end
78
94
  def process(process)
79
- @builder.append " /process:#{@builder.format process}"
80
- yield @builder if block_given?
95
+ b.append " /process:#{b.format process}"
96
+ yield b if block_given?
81
97
  self
82
98
  end
83
99
  def domain(domain)
84
- @builder.append " /domain:#{@builder.format domain}"
85
- yield @builder if block_given?
100
+ b.append " /domain:#{b.format domain}"
101
+ yield b if block_given?
86
102
  self
87
103
  end
88
104
  def framework(framework)
89
- @builder.append " /framework:#{@builder.format framework}"
90
- yield @builder if block_given?
105
+ b.append " /framework:#{b.format framework}"
106
+ yield b if block_given?
91
107
  self
92
108
  end
93
109
  def no_shadow
94
- @builder.append ' /noShadow'
95
- yield @builder if block_given?
110
+ b.append ' /noShadow'
111
+ yield b if block_given?
96
112
  self
97
113
  end
98
114
  def no_thread
99
- @builder.append ' /noThread'
100
- yield @builder if block_given?
115
+ b.append ' /noThread'
116
+ yield b if block_given?
101
117
  self
102
118
  end
103
119
  def timeout(timeout)
104
- @builder.append " /timeout:#{@builder.format timeout}"
105
- yield @builder if block_given?
120
+ b.append " /timeout:#{b.format timeout}"
121
+ yield b if block_given?
106
122
  self
107
123
  end
108
124
  def wait
109
- @builder.append ' /wait'
110
- yield @builder if block_given?
125
+ b.append ' /wait'
126
+ yield b if block_given?
111
127
  self
112
128
  end
113
129
  def no_logo
114
- @builder.append ' /noLogo'
115
- yield @builder if block_given?
130
+ b.append ' /noLogo'
131
+ yield b if block_given?
116
132
  self
117
133
  end
118
134
  def no_dots
119
- @builder.append ' /noDots'
120
- yield @builder if block_given?
135
+ b.append ' /noDots'
136
+ yield b if block_given?
121
137
  self
122
138
  end
123
139
  def help
124
- @builder.append ' /help'
125
- yield @builder if block_given?
140
+ b.append ' /help'
141
+ yield b if block_given?
126
142
  self
127
143
  end
128
144
  end
129
- def nunit(input_files)
130
- builder = CommandBuilder.new COMMAND_NAME
131
- command = NUnit.new builder, input_files
132
- yield builder if block_given?
133
- command
134
- end
145
+
135
146
  end
136
147
  end
137
- def nunit_25(input_files)
138
- builder = CommandBuilder.new NUnit::V25::COMMAND_NAME
139
- command = NUnit::V25::NUnit.new builder, input_files
140
- yield builder if block_given?
141
- command
142
- end
143
- end
148
+ end