fluent_command_builder 0.2.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/fluent_command_builder.rb +1 -1
- data/lib/fluent_command_builder/command_builders/appcfg_python_16.rb +571 -0
- data/lib/fluent_command_builder/command_builders/dotcover_10.rb +12 -18
- data/lib/fluent_command_builder/command_builders/mstest_2010.rb +2 -2
- data/lib/fluent_command_builder/command_builders/rake_09.rb +1 -1
- data/lib/fluent_command_builder/command_builders/tf_tee_2010.rb +1 -1
- metadata +5 -5
- data/lib/fluent_command_builder/command_builders/aspnet_compiler_35.rb +0 -98
@@ -1,5 +1,5 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/appcfg_python_16.rb')
|
1
2
|
require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/aspnet_compiler_20.rb')
|
2
|
-
require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/aspnet_compiler_35.rb')
|
3
3
|
require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/aspnet_compiler_40.rb')
|
4
4
|
require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/bundle_11.rb')
|
5
5
|
require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/cucumber_11.rb')
|
@@ -0,0 +1,571 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/../command_base')
|
2
|
+
require File.expand_path(File.dirname(__FILE__) + '/../command_builder')
|
3
|
+
|
4
|
+
module FluentCommandBuilder
|
5
|
+
module AppCfgPython
|
6
|
+
module V16
|
7
|
+
COMMAND_NAME = 'appcfg.py'
|
8
|
+
class AppCfgPython < CommandBase
|
9
|
+
def initialize(builder)
|
10
|
+
super builder
|
11
|
+
end
|
12
|
+
def help
|
13
|
+
@builder.append ' --help'
|
14
|
+
yield @builder if block_given?
|
15
|
+
self
|
16
|
+
end
|
17
|
+
def quiet
|
18
|
+
@builder.append ' --quiet'
|
19
|
+
yield @builder if block_given?
|
20
|
+
self
|
21
|
+
end
|
22
|
+
def verbose
|
23
|
+
@builder.append ' --verbose'
|
24
|
+
yield @builder if block_given?
|
25
|
+
self
|
26
|
+
end
|
27
|
+
def noisy
|
28
|
+
@builder.append ' --noisy'
|
29
|
+
yield @builder if block_given?
|
30
|
+
self
|
31
|
+
end
|
32
|
+
def server(server)
|
33
|
+
@builder.append " --server=#{@builder.format server}"
|
34
|
+
yield @builder if block_given?
|
35
|
+
self
|
36
|
+
end
|
37
|
+
def insecure
|
38
|
+
@builder.append ' --insecure'
|
39
|
+
yield @builder if block_given?
|
40
|
+
self
|
41
|
+
end
|
42
|
+
def email(email)
|
43
|
+
@builder.append " --email=#{@builder.format email}"
|
44
|
+
yield @builder if block_given?
|
45
|
+
self
|
46
|
+
end
|
47
|
+
def host(host)
|
48
|
+
@builder.append " --host=#{@builder.format host}"
|
49
|
+
yield @builder if block_given?
|
50
|
+
self
|
51
|
+
end
|
52
|
+
def no_cookies
|
53
|
+
@builder.append ' --no_cookies'
|
54
|
+
yield @builder if block_given?
|
55
|
+
self
|
56
|
+
end
|
57
|
+
def skip_sdk_update_check
|
58
|
+
@builder.append ' --skip_sdk_update_check'
|
59
|
+
yield @builder if block_given?
|
60
|
+
self
|
61
|
+
end
|
62
|
+
def passin
|
63
|
+
@builder.append ' --passin'
|
64
|
+
yield @builder if block_given?
|
65
|
+
self
|
66
|
+
end
|
67
|
+
def application(app_id)
|
68
|
+
@builder.append " --application=#{@builder.format app_id}"
|
69
|
+
yield @builder if block_given?
|
70
|
+
self
|
71
|
+
end
|
72
|
+
def version(version)
|
73
|
+
@builder.append " --version=#{@builder.format version}"
|
74
|
+
yield @builder if block_given?
|
75
|
+
self
|
76
|
+
end
|
77
|
+
def runtime(runtime)
|
78
|
+
@builder.append " --runtime=#{@builder.format runtime}"
|
79
|
+
yield @builder if block_given?
|
80
|
+
self
|
81
|
+
end
|
82
|
+
def allow_any_runtime
|
83
|
+
@builder.append ' --allow_any_runtime'
|
84
|
+
yield @builder if block_given?
|
85
|
+
self
|
86
|
+
end
|
87
|
+
def oauth2
|
88
|
+
@builder.append ' --oauth2'
|
89
|
+
yield @builder if block_given?
|
90
|
+
self
|
91
|
+
end
|
92
|
+
def oauth2_refresh_token(oauth2_refresh_token)
|
93
|
+
@builder.append " --oauth2_refresh_token=#{@builder.format oauth2_refresh_token}"
|
94
|
+
yield @builder if block_given?
|
95
|
+
self
|
96
|
+
end
|
97
|
+
def noauth_local_webserver
|
98
|
+
@builder.append ' --noauth_local_webserver'
|
99
|
+
yield @builder if block_given?
|
100
|
+
self
|
101
|
+
end
|
102
|
+
def action
|
103
|
+
Action.new @builder
|
104
|
+
end
|
105
|
+
end
|
106
|
+
class Action < CommandBase
|
107
|
+
def initialize(builder)
|
108
|
+
super builder
|
109
|
+
end
|
110
|
+
def backends(directory)
|
111
|
+
Backends.new @builder, directory
|
112
|
+
end
|
113
|
+
def create_bulkload_config(directory)
|
114
|
+
CreateBulkloadConfig.new @builder, directory
|
115
|
+
end
|
116
|
+
def cron_info(directory)
|
117
|
+
CronInfo.new @builder, directory
|
118
|
+
end
|
119
|
+
def download_app
|
120
|
+
@builder.append ' download_app'
|
121
|
+
yield @builder if block_given?
|
122
|
+
self
|
123
|
+
end
|
124
|
+
def download_data(directory)
|
125
|
+
DownloadData.new @builder, directory
|
126
|
+
end
|
127
|
+
def help(action)
|
128
|
+
@builder.append " help #{@builder.format action}"
|
129
|
+
yield @builder if block_given?
|
130
|
+
self
|
131
|
+
end
|
132
|
+
def request_logs(directory, output_file)
|
133
|
+
RequestLogs.new @builder, directory, output_file
|
134
|
+
end
|
135
|
+
def resource_limits_info(directory)
|
136
|
+
@builder.append " resource_limits_info #{@builder.format directory}"
|
137
|
+
yield @builder if block_given?
|
138
|
+
self
|
139
|
+
end
|
140
|
+
def set_default_version(directory)
|
141
|
+
@builder.append " set_default_version #{@builder.format directory}"
|
142
|
+
yield @builder if block_given?
|
143
|
+
self
|
144
|
+
end
|
145
|
+
def update(directory)
|
146
|
+
Update.new @builder, directory
|
147
|
+
end
|
148
|
+
def update_cron(directory)
|
149
|
+
@builder.append " update_cron #{@builder.format directory}"
|
150
|
+
yield @builder if block_given?
|
151
|
+
self
|
152
|
+
end
|
153
|
+
def update_dos(directory)
|
154
|
+
@builder.append " update_dos #{@builder.format directory}"
|
155
|
+
yield @builder if block_given?
|
156
|
+
self
|
157
|
+
end
|
158
|
+
def update_indexes(directory)
|
159
|
+
@builder.append " update_indexes #{@builder.format directory}"
|
160
|
+
yield @builder if block_given?
|
161
|
+
self
|
162
|
+
end
|
163
|
+
def update_queues(directory)
|
164
|
+
@builder.append " update_queues #{@builder.format directory}"
|
165
|
+
yield @builder if block_given?
|
166
|
+
self
|
167
|
+
end
|
168
|
+
def upload_data(directory)
|
169
|
+
UploadData.new @builder, directory
|
170
|
+
end
|
171
|
+
def vacuum_indexes(directory)
|
172
|
+
VacuumIndexes.new @builder, directory
|
173
|
+
end
|
174
|
+
end
|
175
|
+
class Backends < CommandBase
|
176
|
+
def initialize(builder, directory)
|
177
|
+
super builder
|
178
|
+
@builder.append " backends #{@builder.format directory}"
|
179
|
+
end
|
180
|
+
def configure(backend)
|
181
|
+
@builder.append " configure #{@builder.format backend}"
|
182
|
+
yield @builder if block_given?
|
183
|
+
self
|
184
|
+
end
|
185
|
+
def delete(backend)
|
186
|
+
@builder.append " delete #{@builder.format backend}"
|
187
|
+
yield @builder if block_given?
|
188
|
+
self
|
189
|
+
end
|
190
|
+
def list
|
191
|
+
@builder.append ' list'
|
192
|
+
yield @builder if block_given?
|
193
|
+
self
|
194
|
+
end
|
195
|
+
def rollback(backend)
|
196
|
+
@builder.append " rollback #{@builder.format backend}"
|
197
|
+
yield @builder if block_given?
|
198
|
+
self
|
199
|
+
end
|
200
|
+
def start(backend)
|
201
|
+
@builder.append " start #{@builder.format backend}"
|
202
|
+
yield @builder if block_given?
|
203
|
+
self
|
204
|
+
end
|
205
|
+
def stop(backend)
|
206
|
+
@builder.append " stop #{@builder.format backend}"
|
207
|
+
yield @builder if block_given?
|
208
|
+
self
|
209
|
+
end
|
210
|
+
def update(backend)
|
211
|
+
Update.new @builder, backend
|
212
|
+
end
|
213
|
+
end
|
214
|
+
class Update < CommandBase
|
215
|
+
def initialize(builder, backend)
|
216
|
+
super builder
|
217
|
+
@builder.append " update #{@builder.format backend}"
|
218
|
+
end
|
219
|
+
def max_size_s_i_z_e
|
220
|
+
@builder.append ' --max_size=SIZE'
|
221
|
+
yield @builder if block_given?
|
222
|
+
self
|
223
|
+
end
|
224
|
+
def no_precompilation
|
225
|
+
@builder.append ' --no_precompilation'
|
226
|
+
yield @builder if block_given?
|
227
|
+
self
|
228
|
+
end
|
229
|
+
def backends
|
230
|
+
@builder.append ' --backends'
|
231
|
+
yield @builder if block_given?
|
232
|
+
self
|
233
|
+
end
|
234
|
+
end
|
235
|
+
class CreateBulkloadConfig < CommandBase
|
236
|
+
def initialize(builder, directory)
|
237
|
+
super builder
|
238
|
+
@builder.append " create_bulkload_config #{@builder.format directory}"
|
239
|
+
end
|
240
|
+
def url(url)
|
241
|
+
@builder.append " --url=#{@builder.format url}"
|
242
|
+
yield @builder if block_given?
|
243
|
+
self
|
244
|
+
end
|
245
|
+
def batch_size(batch_size)
|
246
|
+
@builder.append " --batch_size=#{@builder.format batch_size}"
|
247
|
+
yield @builder if block_given?
|
248
|
+
self
|
249
|
+
end
|
250
|
+
def bandwidth_limit(bandwidth_limit)
|
251
|
+
@builder.append " --bandwidth_limit=#{@builder.format bandwidth_limit}"
|
252
|
+
yield @builder if block_given?
|
253
|
+
self
|
254
|
+
end
|
255
|
+
def rps_limit(rps_limit)
|
256
|
+
@builder.append " --rps_limit=#{@builder.format rps_limit}"
|
257
|
+
yield @builder if block_given?
|
258
|
+
self
|
259
|
+
end
|
260
|
+
def http_limit(http_limit)
|
261
|
+
@builder.append " --http_limit=#{@builder.format http_limit}"
|
262
|
+
yield @builder if block_given?
|
263
|
+
self
|
264
|
+
end
|
265
|
+
def db_filename(db_filename)
|
266
|
+
@builder.append " --db_filename=#{@builder.format db_filename}"
|
267
|
+
yield @builder if block_given?
|
268
|
+
self
|
269
|
+
end
|
270
|
+
def auth_domain(auth_domain)
|
271
|
+
@builder.append " --auth_domain=#{@builder.format auth_domain}"
|
272
|
+
yield @builder if block_given?
|
273
|
+
self
|
274
|
+
end
|
275
|
+
def log_file(log_file)
|
276
|
+
@builder.append " --log_file=#{@builder.format log_file}"
|
277
|
+
yield @builder if block_given?
|
278
|
+
self
|
279
|
+
end
|
280
|
+
def dry_run
|
281
|
+
@builder.append ' --dry_run'
|
282
|
+
yield @builder if block_given?
|
283
|
+
self
|
284
|
+
end
|
285
|
+
def namespace(namespace)
|
286
|
+
@builder.append " --namespace=#{@builder.format namespace}"
|
287
|
+
yield @builder if block_given?
|
288
|
+
self
|
289
|
+
end
|
290
|
+
def num_threads(num_threads)
|
291
|
+
@builder.append " --num_threads=#{@builder.format num_threads}"
|
292
|
+
yield @builder if block_given?
|
293
|
+
self
|
294
|
+
end
|
295
|
+
def filename(filename)
|
296
|
+
@builder.append " --filename=#{@builder.format filename}"
|
297
|
+
yield @builder if block_given?
|
298
|
+
self
|
299
|
+
end
|
300
|
+
end
|
301
|
+
class CronInfo < CommandBase
|
302
|
+
def initialize(builder, directory)
|
303
|
+
super builder
|
304
|
+
@builder.append " cron_info #{@builder.format directory}"
|
305
|
+
end
|
306
|
+
def num_runs(num_runs)
|
307
|
+
@builder.append " --num_runs=#{@builder.format num_runs}"
|
308
|
+
yield @builder if block_given?
|
309
|
+
self
|
310
|
+
end
|
311
|
+
end
|
312
|
+
class DownloadData < CommandBase
|
313
|
+
def initialize(builder, directory)
|
314
|
+
super builder
|
315
|
+
@builder.append " download_data #{@builder.format directory}"
|
316
|
+
end
|
317
|
+
def url(url)
|
318
|
+
@builder.append " --url=#{@builder.format url}"
|
319
|
+
yield @builder if block_given?
|
320
|
+
self
|
321
|
+
end
|
322
|
+
def batch_size(batch_size)
|
323
|
+
@builder.append " --batch_size=#{@builder.format batch_size}"
|
324
|
+
yield @builder if block_given?
|
325
|
+
self
|
326
|
+
end
|
327
|
+
def bandwidth_limit(bandwidth_limit)
|
328
|
+
@builder.append " --bandwidth_limit=#{@builder.format bandwidth_limit}"
|
329
|
+
yield @builder if block_given?
|
330
|
+
self
|
331
|
+
end
|
332
|
+
def rps_limit(rps_limit)
|
333
|
+
@builder.append " --rps_limit=#{@builder.format rps_limit}"
|
334
|
+
yield @builder if block_given?
|
335
|
+
self
|
336
|
+
end
|
337
|
+
def http_limit(http_limit)
|
338
|
+
@builder.append " --http_limit=#{@builder.format http_limit}"
|
339
|
+
yield @builder if block_given?
|
340
|
+
self
|
341
|
+
end
|
342
|
+
def db_filename(db_filename)
|
343
|
+
@builder.append " --db_filename=#{@builder.format db_filename}"
|
344
|
+
yield @builder if block_given?
|
345
|
+
self
|
346
|
+
end
|
347
|
+
def auth_domain(auth_domain)
|
348
|
+
@builder.append " --auth_domain=#{@builder.format auth_domain}"
|
349
|
+
yield @builder if block_given?
|
350
|
+
self
|
351
|
+
end
|
352
|
+
def log_file(log_file)
|
353
|
+
@builder.append " --log_file=#{@builder.format log_file}"
|
354
|
+
yield @builder if block_given?
|
355
|
+
self
|
356
|
+
end
|
357
|
+
def dry_run
|
358
|
+
@builder.append ' --dry_run'
|
359
|
+
yield @builder if block_given?
|
360
|
+
self
|
361
|
+
end
|
362
|
+
def namespace(namespace)
|
363
|
+
@builder.append " --namespace=#{@builder.format namespace}"
|
364
|
+
yield @builder if block_given?
|
365
|
+
self
|
366
|
+
end
|
367
|
+
def num_threads(num_threads)
|
368
|
+
@builder.append " --num_threads=#{@builder.format num_threads}"
|
369
|
+
yield @builder if block_given?
|
370
|
+
self
|
371
|
+
end
|
372
|
+
def filename(filename)
|
373
|
+
@builder.append " --filename=#{@builder.format filename}"
|
374
|
+
yield @builder if block_given?
|
375
|
+
self
|
376
|
+
end
|
377
|
+
def kind(kind)
|
378
|
+
@builder.append " --kind=#{@builder.format kind}"
|
379
|
+
yield @builder if block_given?
|
380
|
+
self
|
381
|
+
end
|
382
|
+
def exporter_opts(exporter_opts)
|
383
|
+
@builder.append " --exporter_opts=#{@builder.format exporter_opts}"
|
384
|
+
yield @builder if block_given?
|
385
|
+
self
|
386
|
+
end
|
387
|
+
def result_db_filename(result_db_filename)
|
388
|
+
@builder.append " --result_db_filename=#{@builder.format result_db_filename}"
|
389
|
+
yield @builder if block_given?
|
390
|
+
self
|
391
|
+
end
|
392
|
+
def config_file(config_file)
|
393
|
+
@builder.append " --config_file=#{@builder.format config_file}"
|
394
|
+
yield @builder if block_given?
|
395
|
+
self
|
396
|
+
end
|
397
|
+
end
|
398
|
+
class RequestLogs < CommandBase
|
399
|
+
def initialize(builder, directory, output_file)
|
400
|
+
super builder
|
401
|
+
@builder.append " request_logs #{@builder.format directory} #{@builder.format output_file}"
|
402
|
+
end
|
403
|
+
def num_days(num_days)
|
404
|
+
@builder.append " --num_days=#{@builder.format num_days}"
|
405
|
+
yield @builder if block_given?
|
406
|
+
self
|
407
|
+
end
|
408
|
+
def append
|
409
|
+
@builder.append ' --append'
|
410
|
+
yield @builder if block_given?
|
411
|
+
self
|
412
|
+
end
|
413
|
+
def severity(severity)
|
414
|
+
@builder.append " --severity=#{@builder.format severity}"
|
415
|
+
yield @builder if block_given?
|
416
|
+
self
|
417
|
+
end
|
418
|
+
def vhost(vhost)
|
419
|
+
@builder.append " --vhost=#{@builder.format vhost}"
|
420
|
+
yield @builder if block_given?
|
421
|
+
self
|
422
|
+
end
|
423
|
+
def include_vhost
|
424
|
+
@builder.append ' --include_vhost'
|
425
|
+
yield @builder if block_given?
|
426
|
+
self
|
427
|
+
end
|
428
|
+
def include_all
|
429
|
+
@builder.append ' --include_all'
|
430
|
+
yield @builder if block_given?
|
431
|
+
self
|
432
|
+
end
|
433
|
+
def end_date(end_date)
|
434
|
+
@builder.append " --end_date=#{@builder.format end_date}"
|
435
|
+
yield @builder if block_given?
|
436
|
+
self
|
437
|
+
end
|
438
|
+
end
|
439
|
+
class Update < CommandBase
|
440
|
+
def initialize(builder, directory)
|
441
|
+
super builder
|
442
|
+
@builder.append " update #{@builder.format directory}"
|
443
|
+
end
|
444
|
+
def max_size(size)
|
445
|
+
@builder.append " --max_size=#{@builder.format size}"
|
446
|
+
yield @builder if block_given?
|
447
|
+
self
|
448
|
+
end
|
449
|
+
def no_precompilation
|
450
|
+
@builder.append ' --no_precompilation'
|
451
|
+
yield @builder if block_given?
|
452
|
+
self
|
453
|
+
end
|
454
|
+
def backends
|
455
|
+
@builder.append ' --backends'
|
456
|
+
yield @builder if block_given?
|
457
|
+
self
|
458
|
+
end
|
459
|
+
end
|
460
|
+
class UploadData < CommandBase
|
461
|
+
def initialize(builder, directory)
|
462
|
+
super builder
|
463
|
+
@builder.append " upload_data #{@builder.format directory}"
|
464
|
+
end
|
465
|
+
def url(url)
|
466
|
+
@builder.append " --url=#{@builder.format url}"
|
467
|
+
yield @builder if block_given?
|
468
|
+
self
|
469
|
+
end
|
470
|
+
def batch_size(batch_size)
|
471
|
+
@builder.append " --batch_size=#{@builder.format batch_size}"
|
472
|
+
yield @builder if block_given?
|
473
|
+
self
|
474
|
+
end
|
475
|
+
def bandwidth_limit(bandwidth_limit)
|
476
|
+
@builder.append " --bandwidth_limit=#{@builder.format bandwidth_limit}"
|
477
|
+
yield @builder if block_given?
|
478
|
+
self
|
479
|
+
end
|
480
|
+
def rps_limit(rps_limit)
|
481
|
+
@builder.append " --rps_limit=#{@builder.format rps_limit}"
|
482
|
+
yield @builder if block_given?
|
483
|
+
self
|
484
|
+
end
|
485
|
+
def http_limit(http_limit)
|
486
|
+
@builder.append " --http_limit=#{@builder.format http_limit}"
|
487
|
+
yield @builder if block_given?
|
488
|
+
self
|
489
|
+
end
|
490
|
+
def db_filename(db_filename)
|
491
|
+
@builder.append " --db_filename=#{@builder.format db_filename}"
|
492
|
+
yield @builder if block_given?
|
493
|
+
self
|
494
|
+
end
|
495
|
+
def auth_domain(auth_domain)
|
496
|
+
@builder.append " --auth_domain=#{@builder.format auth_domain}"
|
497
|
+
yield @builder if block_given?
|
498
|
+
self
|
499
|
+
end
|
500
|
+
def log_file(log_file)
|
501
|
+
@builder.append " --log_file=#{@builder.format log_file}"
|
502
|
+
yield @builder if block_given?
|
503
|
+
self
|
504
|
+
end
|
505
|
+
def dry_run
|
506
|
+
@builder.append ' --dry_run'
|
507
|
+
yield @builder if block_given?
|
508
|
+
self
|
509
|
+
end
|
510
|
+
def namespace(namespace)
|
511
|
+
@builder.append " --namespace=#{@builder.format namespace}"
|
512
|
+
yield @builder if block_given?
|
513
|
+
self
|
514
|
+
end
|
515
|
+
def num_threads(num_threads)
|
516
|
+
@builder.append " --num_threads=#{@builder.format num_threads}"
|
517
|
+
yield @builder if block_given?
|
518
|
+
self
|
519
|
+
end
|
520
|
+
def filename(filename)
|
521
|
+
@builder.append " --filename=#{@builder.format filename}"
|
522
|
+
yield @builder if block_given?
|
523
|
+
self
|
524
|
+
end
|
525
|
+
def kind(kind)
|
526
|
+
@builder.append " --kind=#{@builder.format kind}"
|
527
|
+
yield @builder if block_given?
|
528
|
+
self
|
529
|
+
end
|
530
|
+
def has_header
|
531
|
+
@builder.append ' --has_header'
|
532
|
+
yield @builder if block_given?
|
533
|
+
self
|
534
|
+
end
|
535
|
+
def loader_opts(loader_opts)
|
536
|
+
@builder.append " --loader_opts=#{@builder.format loader_opts}"
|
537
|
+
yield @builder if block_given?
|
538
|
+
self
|
539
|
+
end
|
540
|
+
def config_file(config_file)
|
541
|
+
@builder.append " --config_file=#{@builder.format config_file}"
|
542
|
+
yield @builder if block_given?
|
543
|
+
self
|
544
|
+
end
|
545
|
+
end
|
546
|
+
class VacuumIndexes < CommandBase
|
547
|
+
def initialize(builder, directory)
|
548
|
+
super builder
|
549
|
+
@builder.append " vacuum_indexes #{@builder.format directory}"
|
550
|
+
end
|
551
|
+
def force
|
552
|
+
@builder.append ' --force'
|
553
|
+
yield @builder if block_given?
|
554
|
+
self
|
555
|
+
end
|
556
|
+
end
|
557
|
+
def appcfg_python
|
558
|
+
builder = CommandBuilder.new COMMAND_NAME
|
559
|
+
command = AppCfgPython.new builder
|
560
|
+
yield builder if block_given?
|
561
|
+
command
|
562
|
+
end
|
563
|
+
end
|
564
|
+
end
|
565
|
+
def appcfg_python_16
|
566
|
+
builder = CommandBuilder.new AppCfgPython::V16::COMMAND_NAME
|
567
|
+
command = AppCfgPython::V16::AppCfgPython.new builder
|
568
|
+
yield builder if block_given?
|
569
|
+
command
|
570
|
+
end
|
571
|
+
end
|
@@ -9,21 +9,18 @@ module FluentCommandBuilder
|
|
9
9
|
def initialize(builder)
|
10
10
|
super builder
|
11
11
|
end
|
12
|
-
def analyse(configuration_file
|
13
|
-
@builder.append
|
14
|
-
@builder.append " #{@builder.format configuration_file}" unless configuration_file.nil?
|
12
|
+
def analyse(configuration_file)
|
13
|
+
@builder.append " analyse #{@builder.format configuration_file}"
|
15
14
|
yield @builder if block_given?
|
16
15
|
self
|
17
16
|
end
|
18
|
-
def cover(configuration_file
|
19
|
-
@builder.append
|
20
|
-
@builder.append " #{@builder.format configuration_file}" unless configuration_file.nil?
|
17
|
+
def cover(configuration_file)
|
18
|
+
@builder.append " cover #{@builder.format configuration_file}"
|
21
19
|
yield @builder if block_given?
|
22
20
|
self
|
23
21
|
end
|
24
|
-
def delete(configuration_file
|
25
|
-
@builder.append
|
26
|
-
@builder.append " #{@builder.format configuration_file}" unless configuration_file.nil?
|
22
|
+
def delete(configuration_file)
|
23
|
+
@builder.append " delete #{@builder.format configuration_file}"
|
27
24
|
yield @builder if block_given?
|
28
25
|
self
|
29
26
|
end
|
@@ -34,21 +31,18 @@ module FluentCommandBuilder
|
|
34
31
|
yield @builder if block_given?
|
35
32
|
self
|
36
33
|
end
|
37
|
-
def list(configuration_file
|
38
|
-
@builder.append
|
39
|
-
@builder.append " #{@builder.format configuration_file}" unless configuration_file.nil?
|
34
|
+
def list(configuration_file)
|
35
|
+
@builder.append " list #{@builder.format configuration_file}"
|
40
36
|
yield @builder if block_given?
|
41
37
|
self
|
42
38
|
end
|
43
|
-
def merge(configuration_file
|
44
|
-
@builder.append
|
45
|
-
@builder.append " #{@builder.format configuration_file}" unless configuration_file.nil?
|
39
|
+
def merge(configuration_file)
|
40
|
+
@builder.append " merge #{@builder.format configuration_file}"
|
46
41
|
yield @builder if block_given?
|
47
42
|
self
|
48
43
|
end
|
49
|
-
def report(configuration_file
|
50
|
-
@builder.append
|
51
|
-
@builder.append " #{@builder.format configuration_file}" unless configuration_file.nil?
|
44
|
+
def report(configuration_file)
|
45
|
+
@builder.append " report #{@builder.format configuration_file}"
|
52
46
|
yield @builder if block_given?
|
53
47
|
self
|
54
48
|
end
|
@@ -19,8 +19,8 @@ module FluentCommandBuilder
|
|
19
19
|
yield @builder if block_given?
|
20
20
|
self
|
21
21
|
end
|
22
|
-
def test_list(
|
23
|
-
@builder.append " /testList:#{@builder.format
|
22
|
+
def test_list(test_list_path)
|
23
|
+
@builder.append " /testList:#{@builder.format test_list_path}"
|
24
24
|
yield @builder if block_given?
|
25
25
|
self
|
26
26
|
end
|
@@ -8,7 +8,7 @@ module FluentCommandBuilder
|
|
8
8
|
class Rake < CommandBase
|
9
9
|
def initialize(builder, task=nil)
|
10
10
|
super builder
|
11
|
-
@builder.append " #{@builder.format task}" unless task.nil?
|
11
|
+
@builder.append " #{@builder.format task, ' '}" unless task.nil?
|
12
12
|
end
|
13
13
|
def classic_namespace
|
14
14
|
@builder.append ' --classic-namespace'
|
@@ -1902,7 +1902,7 @@ module FluentCommandBuilder
|
|
1902
1902
|
self
|
1903
1903
|
end
|
1904
1904
|
def new_owner(owner_name)
|
1905
|
-
@builder.append "
|
1905
|
+
@builder.append " -newOwner:#{@builder.format owner_name}"
|
1906
1906
|
yield @builder if block_given?
|
1907
1907
|
self
|
1908
1908
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent_command_builder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-06-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
16
|
-
requirement: &
|
16
|
+
requirement: &70160388640980 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70160388640980
|
25
25
|
description: A command line builder with a fluent interface written in Ruby.
|
26
26
|
email: matthew-github@matthewriley.name
|
27
27
|
executables: []
|
@@ -30,8 +30,8 @@ extra_rdoc_files: []
|
|
30
30
|
files:
|
31
31
|
- lib/fluent_command_builder/command_base.rb
|
32
32
|
- lib/fluent_command_builder/command_builder.rb
|
33
|
+
- lib/fluent_command_builder/command_builders/appcfg_python_16.rb
|
33
34
|
- lib/fluent_command_builder/command_builders/aspnet_compiler_20.rb
|
34
|
-
- lib/fluent_command_builder/command_builders/aspnet_compiler_35.rb
|
35
35
|
- lib/fluent_command_builder/command_builders/aspnet_compiler_40.rb
|
36
36
|
- lib/fluent_command_builder/command_builders/bundle_11.rb
|
37
37
|
- lib/fluent_command_builder/command_builders/cucumber_11.rb
|
@@ -1,98 +0,0 @@
|
|
1
|
-
require File.expand_path(File.dirname(__FILE__) + '/../command_base')
|
2
|
-
require File.expand_path(File.dirname(__FILE__) + '/../command_builder')
|
3
|
-
|
4
|
-
module FluentCommandBuilder
|
5
|
-
module AspnetCompiler
|
6
|
-
module V35
|
7
|
-
COMMAND_NAME = 'aspnet_compiler'
|
8
|
-
class AspnetCompiler < CommandBase
|
9
|
-
def initialize(builder, target_dir=nil)
|
10
|
-
super builder
|
11
|
-
@builder.append " #{@builder.format target_dir}" unless target_dir.nil?
|
12
|
-
end
|
13
|
-
def metabase_path(metabase_path)
|
14
|
-
@builder.append " -m #{@builder.format metabase_path}"
|
15
|
-
yield @builder if block_given?
|
16
|
-
self
|
17
|
-
end
|
18
|
-
def virtual_path(virtual_path)
|
19
|
-
@builder.append " -v #{@builder.format virtual_path}"
|
20
|
-
yield @builder if block_given?
|
21
|
-
self
|
22
|
-
end
|
23
|
-
def physical_path(physical_path)
|
24
|
-
@builder.append " -p #{@builder.format physical_path}"
|
25
|
-
yield @builder if block_given?
|
26
|
-
self
|
27
|
-
end
|
28
|
-
def allow_subsequent_updates
|
29
|
-
@builder.append ' -u'
|
30
|
-
yield @builder if block_given?
|
31
|
-
self
|
32
|
-
end
|
33
|
-
def force_overwrite_files
|
34
|
-
@builder.append ' -f'
|
35
|
-
yield @builder if block_given?
|
36
|
-
self
|
37
|
-
end
|
38
|
-
def force_debug_output
|
39
|
-
@builder.append ' -d'
|
40
|
-
yield @builder if block_given?
|
41
|
-
self
|
42
|
-
end
|
43
|
-
def fixed_names
|
44
|
-
@builder.append ' -fixedNames'
|
45
|
-
yield @builder if block_given?
|
46
|
-
self
|
47
|
-
end
|
48
|
-
def full_rebuild
|
49
|
-
@builder.append ' -c'
|
50
|
-
yield @builder if block_given?
|
51
|
-
self
|
52
|
-
end
|
53
|
-
def error_stack
|
54
|
-
@builder.append ' -errorStack'
|
55
|
-
yield @builder if block_given?
|
56
|
-
self
|
57
|
-
end
|
58
|
-
def no_logo
|
59
|
-
@builder.append ' -noLogo'
|
60
|
-
yield @builder if block_given?
|
61
|
-
self
|
62
|
-
end
|
63
|
-
def key_file(file)
|
64
|
-
@builder.append " -keyFile #{@builder.format file}"
|
65
|
-
yield @builder if block_given?
|
66
|
-
self
|
67
|
-
end
|
68
|
-
def key_container(container)
|
69
|
-
@builder.append " -keyContainer #{@builder.format container}"
|
70
|
-
yield @builder if block_given?
|
71
|
-
self
|
72
|
-
end
|
73
|
-
def aptca
|
74
|
-
@builder.append ' -aptca'
|
75
|
-
yield @builder if block_given?
|
76
|
-
self
|
77
|
-
end
|
78
|
-
def delay_sign
|
79
|
-
@builder.append ' -delaySign'
|
80
|
-
yield @builder if block_given?
|
81
|
-
self
|
82
|
-
end
|
83
|
-
end
|
84
|
-
def aspnet_compiler(target_dir=nil)
|
85
|
-
builder = CommandBuilder.new COMMAND_NAME
|
86
|
-
command = AspnetCompiler.new builder, target_dir
|
87
|
-
yield builder if block_given?
|
88
|
-
command
|
89
|
-
end
|
90
|
-
end
|
91
|
-
end
|
92
|
-
def aspnet_compiler_35(target_dir=nil)
|
93
|
-
builder = CommandBuilder.new AspnetCompiler::V35::COMMAND_NAME
|
94
|
-
command = AspnetCompiler::V35::AspnetCompiler.new builder, target_dir
|
95
|
-
yield builder if block_given?
|
96
|
-
command
|
97
|
-
end
|
98
|
-
end
|