fluent_command_builder 0.6.0 → 0.7.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 (76) hide show
  1. data/lib/fluent_command_builder.rb +3 -0
  2. data/lib/fluent_command_builder/command_base.rb +21 -10
  3. data/lib/fluent_command_builder/command_builders/appcfg_python.rb +1 -1
  4. data/lib/fluent_command_builder/command_builders/appcfg_python_16.rb +995 -994
  5. data/lib/fluent_command_builder/command_builders/appcfg_python_17.rb +991 -990
  6. data/lib/fluent_command_builder/command_builders/aspnet_compiler.rb +1 -1
  7. data/lib/fluent_command_builder/command_builders/aspnet_compiler_20.rb +30 -29
  8. data/lib/fluent_command_builder/command_builders/aspnet_compiler_40.rb +30 -29
  9. data/lib/fluent_command_builder/command_builders/bundle.rb +1 -1
  10. data/lib/fluent_command_builder/command_builders/bundle_11.rb +102 -101
  11. data/lib/fluent_command_builder/command_builders/cucumber.rb +1 -1
  12. data/lib/fluent_command_builder/command_builders/cucumber_11.rb +60 -59
  13. data/lib/fluent_command_builder/command_builders/cucumber_12.rb +62 -61
  14. data/lib/fluent_command_builder/command_builders/dev_appserver_python.rb +1 -1
  15. data/lib/fluent_command_builder/command_builders/dev_appserver_python_16.rb +72 -71
  16. data/lib/fluent_command_builder/command_builders/dev_appserver_python_17.rb +72 -71
  17. data/lib/fluent_command_builder/command_builders/dotcover.rb +1 -1
  18. data/lib/fluent_command_builder/command_builders/dotcover_10.rb +17 -16
  19. data/lib/fluent_command_builder/command_builders/dotcover_11.rb +101 -100
  20. data/lib/fluent_command_builder/command_builders/dotcover_12.rb +101 -100
  21. data/lib/fluent_command_builder/command_builders/dotcover_20.rb +105 -104
  22. data/lib/fluent_command_builder/command_builders/installutil.rb +1 -1
  23. data/lib/fluent_command_builder/command_builders/installutil_11.rb +15 -14
  24. data/lib/fluent_command_builder/command_builders/installutil_20.rb +17 -16
  25. data/lib/fluent_command_builder/command_builders/installutil_35.rb +17 -16
  26. data/lib/fluent_command_builder/command_builders/installutil_40.rb +20 -19
  27. data/lib/fluent_command_builder/command_builders/msbuild.rb +1 -1
  28. data/lib/fluent_command_builder/command_builders/msbuild_20.rb +27 -26
  29. data/lib/fluent_command_builder/command_builders/msbuild_30.rb +27 -26
  30. data/lib/fluent_command_builder/command_builders/msbuild_35.rb +43 -42
  31. data/lib/fluent_command_builder/command_builders/msbuild_40.rb +46 -45
  32. data/lib/fluent_command_builder/command_builders/msdeploy.rb +1 -1
  33. data/lib/fluent_command_builder/command_builders/msdeploy_71.rb +61 -60
  34. data/lib/fluent_command_builder/command_builders/mstest.rb +1 -1
  35. data/lib/fluent_command_builder/command_builders/mstest_100.rb +41 -40
  36. data/lib/fluent_command_builder/command_builders/mstest_80.rb +33 -32
  37. data/lib/fluent_command_builder/command_builders/mstest_90.rb +35 -34
  38. data/lib/fluent_command_builder/command_builders/netsh.rb +1 -1
  39. data/lib/fluent_command_builder/command_builders/netsh_61.rb +139 -138
  40. data/lib/fluent_command_builder/command_builders/nuget.rb +17 -0
  41. data/lib/fluent_command_builder/command_builders/nuget_20.rb +433 -0
  42. data/lib/fluent_command_builder/command_builders/nunit.rb +1 -1
  43. data/lib/fluent_command_builder/command_builders/nunit_25.rb +50 -49
  44. data/lib/fluent_command_builder/command_builders/nunit_26.rb +66 -65
  45. data/lib/fluent_command_builder/command_builders/rake.rb +1 -1
  46. data/lib/fluent_command_builder/command_builders/rake_09.rb +48 -47
  47. data/lib/fluent_command_builder/command_builders/security_osx.rb +1 -1
  48. data/lib/fluent_command_builder/command_builders/security_osx_107.rb +55 -54
  49. data/lib/fluent_command_builder/command_builders/sevenzip.rb +1 -1
  50. data/lib/fluent_command_builder/command_builders/sevenzip_92.rb +211 -210
  51. data/lib/fluent_command_builder/command_builders/simian.rb +1 -1
  52. data/lib/fluent_command_builder/command_builders/simian_23.rb +47 -46
  53. data/lib/fluent_command_builder/command_builders/team_foundation.rb +1 -1
  54. data/lib/fluent_command_builder/command_builders/team_foundation_100.rb +822 -821
  55. data/lib/fluent_command_builder/command_builders/team_foundation_tee.rb +1 -1
  56. data/lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb +744 -743
  57. data/lib/fluent_command_builder/command_builders/xcodebuild.rb +1 -1
  58. data/lib/fluent_command_builder/command_builders/xcodebuild_43.rb +103 -87
  59. data/lib/fluent_command_builder/command_builders/xcodebuild_44.rb +123 -107
  60. data/lib/fluent_command_builder/executor.rb +44 -0
  61. data/lib/fluent_command_builder/executors/backticks_executor.rb +7 -0
  62. data/lib/fluent_command_builder/executors/dry_run_executor.rb +7 -0
  63. data/lib/fluent_command_builder/executors/rake_sh_executor.rb +10 -0
  64. data/lib/fluent_command_builder/executors/system_executor.rb +7 -0
  65. data/lib/fluent_command_builder/path_finder.rb +20 -0
  66. data/lib/fluent_command_builder/path_finders/unix_path_finder.rb +13 -0
  67. data/lib/fluent_command_builder/path_finders/windows_path_finder.rb +14 -0
  68. data/lib/fluent_command_builder/underlying_builder.rb +75 -59
  69. data/lib/fluent_command_builder/version.rb +40 -0
  70. data/lib/fluent_command_builder/version_detectors/lib/appengine_python_version_detector.rb +1 -2
  71. data/lib/fluent_command_builder/version_detectors/lib/standard_version_detector.rb +13 -13
  72. data/lib/fluent_command_builder/version_validator.rb +37 -0
  73. metadata +16 -7
  74. data/lib/command_version_detector.rb +0 -1
  75. data/lib/fluent_command_builder/util.rb +0 -18
  76. data/lib/fluent_command_builder/version_detectors/lib/path_finder.rb +0 -43
@@ -0,0 +1,17 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/../underlying_builder')
2
+ require File.expand_path(File.dirname(__FILE__) + '/../version')
3
+
4
+ module FluentCommandBuilder
5
+ def nuget(&block)
6
+ NuGet.create &block
7
+ end
8
+ module NuGet
9
+ COMMAND_NAME = 'NuGet'
10
+ def self.create
11
+ b = UnderlyingBuilder.new FluentCommandBuilder::NuGet::COMMAND_NAME
12
+ c = version_module(NuGet).create b
13
+ yield b if block_given?
14
+ c
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,433 @@
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 nuget_20
6
+ FluentCommandBuilder::NuGet::V20.create { |b| yield b if block_given? }
7
+ end
8
+ module NuGet
9
+ module V20
10
+ VERSION = '2.0'
11
+ def self.create
12
+ b = UnderlyingBuilder.new FluentCommandBuilder::NuGet::COMMAND_NAME
13
+ c = NuGet.new(b)
14
+ yield b if block_given?
15
+ c
16
+ end
17
+ def nuget
18
+ FluentCommandBuilder::NuGet::V20.create { |b| yield b if block_given? }
19
+ end
20
+ class NuGet < CommandBase
21
+ def initialize(underlying_builder)
22
+ super underlying_builder
23
+ end
24
+ def config
25
+ Config.new @b
26
+ end
27
+ def delete(package_id, package_version)
28
+ Delete.new @b, package_id, package_version
29
+ end
30
+ def help(command=nil)
31
+ Help.new @b, command
32
+ end
33
+ def install(package_id_or_path_to_packages_config)
34
+ Install.new @b, package_id_or_path_to_packages_config
35
+ end
36
+ def list(search_terms=nil)
37
+ List.new @b, search_terms
38
+ end
39
+ def pack(nuspec_or_project)
40
+ Pack.new @b, nuspec_or_project
41
+ end
42
+ def publish(package_id, package_version, api_key)
43
+ Publish.new @b, package_id, package_version, api_key
44
+ end
45
+ def push(package_path)
46
+ Push.new @b, package_path
47
+ end
48
+ def set_api_key(api_key)
49
+ SetApiKey.new @b, api_key
50
+ end
51
+ def sources(action)
52
+ Sources.new @b, action
53
+ end
54
+ def spec(package_id)
55
+ Spec.new @b, package_id
56
+ end
57
+ def update(packages_config_or_solution)
58
+ Update.new @b, packages_config_or_solution
59
+ end
60
+ end
61
+ class Config < CommandBase
62
+ def initialize(underlying_builder)
63
+ super underlying_builder
64
+ @b.append ' config'
65
+ end
66
+ def set(name, value)
67
+ @b.append " -Set #{@b.format name}=#{@b.format value}"
68
+ yield @b if block_given?
69
+ self
70
+ end
71
+ def help
72
+ @b.append ' -Help'
73
+ yield @b if block_given?
74
+ self
75
+ end
76
+ end
77
+ class Delete < CommandBase
78
+ def initialize(underlying_builder, package_id, package_version)
79
+ super underlying_builder
80
+ @b.append " delete #{@b.format package_id} #{@b.format package_version}"
81
+ end
82
+ def source(source)
83
+ @b.append " -Source #{@b.format source}"
84
+ yield @b if block_given?
85
+ self
86
+ end
87
+ def no_prompt
88
+ @b.append ' -NoPrompt'
89
+ yield @b if block_given?
90
+ self
91
+ end
92
+ def api_key(api_key)
93
+ @b.append " -ApiKey #{@b.format api_key}"
94
+ yield @b if block_given?
95
+ self
96
+ end
97
+ def help
98
+ @b.append ' -Help'
99
+ yield @b if block_given?
100
+ self
101
+ end
102
+ end
103
+ class Help < CommandBase
104
+ def initialize(underlying_builder, command=nil)
105
+ super underlying_builder
106
+ @b.append ' help'
107
+ @b.append " #{@b.format command}" unless command.nil?
108
+ end
109
+ def all
110
+ @b.append ' -All'
111
+ yield @b if block_given?
112
+ self
113
+ end
114
+ def markdown
115
+ @b.append ' -Markdown'
116
+ yield @b if block_given?
117
+ self
118
+ end
119
+ def help
120
+ @b.append ' -Help'
121
+ yield @b if block_given?
122
+ self
123
+ end
124
+ end
125
+ class Install < CommandBase
126
+ def initialize(underlying_builder, package_id_or_path_to_packages_config)
127
+ super underlying_builder
128
+ @b.append " install #{@b.format package_id_or_path_to_packages_config}"
129
+ end
130
+ def source(source)
131
+ @b.append " -Source #{@b.format source}"
132
+ yield @b if block_given?
133
+ self
134
+ end
135
+ def output_directory(output_directory)
136
+ @b.append " -OutputDirectory #{@b.format output_directory}"
137
+ yield @b if block_given?
138
+ self
139
+ end
140
+ def version(version)
141
+ @b.append " -Version #{@b.format version}"
142
+ yield @b if block_given?
143
+ self
144
+ end
145
+ def exclude_version
146
+ @b.append ' -ExcludeVersion'
147
+ yield @b if block_given?
148
+ self
149
+ end
150
+ def prerelease
151
+ @b.append ' -Prerelease'
152
+ yield @b if block_given?
153
+ self
154
+ end
155
+ def no_cache
156
+ @b.append ' -NoCache'
157
+ yield @b if block_given?
158
+ self
159
+ end
160
+ def help
161
+ @b.append ' -Help'
162
+ yield @b if block_given?
163
+ self
164
+ end
165
+ end
166
+ class List < CommandBase
167
+ def initialize(underlying_builder, search_terms=nil)
168
+ super underlying_builder
169
+ @b.append ' list'
170
+ @b.append " #{@b.format search_terms}" unless search_terms.nil?
171
+ end
172
+ def source(source)
173
+ @b.append " -Source #{@b.format source}"
174
+ yield @b if block_given?
175
+ self
176
+ end
177
+ def verbose
178
+ @b.append ' -Verbose'
179
+ yield @b if block_given?
180
+ self
181
+ end
182
+ def all_versions
183
+ @b.append ' -AllVersions'
184
+ yield @b if block_given?
185
+ self
186
+ end
187
+ def prerelease
188
+ @b.append ' -Prerelease'
189
+ yield @b if block_given?
190
+ self
191
+ end
192
+ def help
193
+ @b.append ' -Help'
194
+ yield @b if block_given?
195
+ self
196
+ end
197
+ end
198
+ class Pack < CommandBase
199
+ def initialize(underlying_builder, nuspec_or_project)
200
+ super underlying_builder
201
+ @b.append " pack #{@b.format nuspec_or_project}"
202
+ end
203
+ def output_directory(output_directory)
204
+ @b.append " -OutputDirectory #{@b.format output_directory}"
205
+ yield @b if block_given?
206
+ self
207
+ end
208
+ def base_path(base_path)
209
+ @b.append " -BasePath #{@b.format base_path}"
210
+ yield @b if block_given?
211
+ self
212
+ end
213
+ def verbose
214
+ @b.append ' -Verbose'
215
+ yield @b if block_given?
216
+ self
217
+ end
218
+ def version(version)
219
+ @b.append " -Version #{@b.format version}"
220
+ yield @b if block_given?
221
+ self
222
+ end
223
+ def exclude(pattern)
224
+ @b.append " -Exclude #{@b.format pattern}"
225
+ yield @b if block_given?
226
+ self
227
+ end
228
+ def symbols
229
+ @b.append ' -Symbols'
230
+ yield @b if block_given?
231
+ self
232
+ end
233
+ def tool
234
+ @b.append ' -Tool'
235
+ yield @b if block_given?
236
+ self
237
+ end
238
+ def build
239
+ @b.append ' -Build'
240
+ yield @b if block_given?
241
+ self
242
+ end
243
+ def no_default_excludes
244
+ @b.append ' -NoDefaultExcludes'
245
+ yield @b if block_given?
246
+ self
247
+ end
248
+ def no_package_analysis
249
+ @b.append ' -NoPackageAnalysis'
250
+ yield @b if block_given?
251
+ self
252
+ end
253
+ def exclude_empty_directories
254
+ @b.append ' -ExcludeEmptyDirectories'
255
+ yield @b if block_given?
256
+ self
257
+ end
258
+ def properties(properties)
259
+ @b.append " -Properties #{@b.format properties, ';'}"
260
+ yield @b if block_given?
261
+ self
262
+ end
263
+ def help
264
+ @b.append ' -Help'
265
+ yield @b if block_given?
266
+ self
267
+ end
268
+ end
269
+ class Publish < CommandBase
270
+ def initialize(underlying_builder, package_id, package_version, api_key)
271
+ super underlying_builder
272
+ @b.append " publish #{@b.format package_id} #{@b.format package_version} #{@b.format api_key}"
273
+ end
274
+ def source(source)
275
+ @b.append " -Source #{@b.format source}"
276
+ yield @b if block_given?
277
+ self
278
+ end
279
+ def help
280
+ @b.append ' -Help'
281
+ yield @b if block_given?
282
+ self
283
+ end
284
+ end
285
+ class Push < CommandBase
286
+ def initialize(underlying_builder, package_path)
287
+ super underlying_builder
288
+ @b.append " push #{@b.format package_path}"
289
+ end
290
+ def create_only
291
+ @b.append ' -CreateOnly'
292
+ yield @b if block_given?
293
+ self
294
+ end
295
+ def source(source)
296
+ @b.append " -Source #{@b.format source}"
297
+ yield @b if block_given?
298
+ self
299
+ end
300
+ def api_key(api_key)
301
+ @b.append " -ApiKey #{@b.format api_key}"
302
+ yield @b if block_given?
303
+ self
304
+ end
305
+ def timeout(seconds)
306
+ @b.append " -Timeout #{@b.format seconds}"
307
+ yield @b if block_given?
308
+ self
309
+ end
310
+ def help
311
+ @b.append ' -Help'
312
+ yield @b if block_given?
313
+ self
314
+ end
315
+ end
316
+ class SetApiKey < CommandBase
317
+ def initialize(underlying_builder, api_key)
318
+ super underlying_builder
319
+ @b.append " setApiKey #{@b.format api_key}"
320
+ end
321
+ def source(source)
322
+ @b.append " -Source #{@b.format source}"
323
+ yield @b if block_given?
324
+ self
325
+ end
326
+ def help
327
+ @b.append ' -Help'
328
+ yield @b if block_given?
329
+ self
330
+ end
331
+ end
332
+ class Sources < CommandBase
333
+ def initialize(underlying_builder, action)
334
+ super underlying_builder
335
+ @b.append " sources #{@b.format action}"
336
+ end
337
+ def name(name)
338
+ @b.append " -Name #{@b.format name}"
339
+ yield @b if block_given?
340
+ self
341
+ end
342
+ def source(source)
343
+ @b.append " -Source #{@b.format source}"
344
+ yield @b if block_given?
345
+ self
346
+ end
347
+ def user_name(user_name)
348
+ @b.append " -UserName #{@b.format user_name}"
349
+ yield @b if block_given?
350
+ self
351
+ end
352
+ def password(password)
353
+ @b.append " -Password #{@b.format password}"
354
+ yield @b if block_given?
355
+ self
356
+ end
357
+ def help
358
+ @b.append ' -Help'
359
+ yield @b if block_given?
360
+ self
361
+ end
362
+ end
363
+ class Spec < CommandBase
364
+ def initialize(underlying_builder, package_id)
365
+ super underlying_builder
366
+ @b.append " spec #{@b.format package_id}"
367
+ end
368
+ def assembly_path(assembly_path)
369
+ @b.append " -AssemblyPath #{@b.format assembly_path}"
370
+ yield @b if block_given?
371
+ self
372
+ end
373
+ def force
374
+ @b.append ' -Force'
375
+ yield @b if block_given?
376
+ self
377
+ end
378
+ def help
379
+ @b.append ' -Help'
380
+ yield @b if block_given?
381
+ self
382
+ end
383
+ end
384
+ class Update < CommandBase
385
+ def initialize(underlying_builder, packages_config_or_solution)
386
+ super underlying_builder
387
+ @b.append " update #{@b.format packages_config_or_solution}"
388
+ end
389
+ def source(source)
390
+ @b.append " -Source #{@b.format source}"
391
+ yield @b if block_given?
392
+ self
393
+ end
394
+ def id(package_id)
395
+ @b.append " -Id #{@b.format package_id}"
396
+ yield @b if block_given?
397
+ self
398
+ end
399
+ def repository_path(repository_path)
400
+ @b.append " -RepositoryPath #{@b.format repository_path}"
401
+ yield @b if block_given?
402
+ self
403
+ end
404
+ def safe
405
+ @b.append ' -Safe'
406
+ yield @b if block_given?
407
+ self
408
+ end
409
+ def self
410
+ @b.append ' -Self'
411
+ yield @b if block_given?
412
+ self
413
+ end
414
+ def verbose
415
+ @b.append ' -Verbose'
416
+ yield @b if block_given?
417
+ self
418
+ end
419
+ def prerelease
420
+ @b.append ' -Prerelease'
421
+ yield @b if block_given?
422
+ self
423
+ end
424
+ def help
425
+ @b.append ' -Help'
426
+ yield @b if block_given?
427
+ self
428
+ end
429
+ end
430
+
431
+ end
432
+ end
433
+ end
@@ -1,5 +1,5 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + '/../underlying_builder')
2
- require File.expand_path(File.dirname(__FILE__) + '/../util')
2
+ require File.expand_path(File.dirname(__FILE__) + '/../version')
3
3
 
4
4
  module FluentCommandBuilder
5
5
  def nunit(&block)