fluent_command_builder 0.9.9 → 0.9.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. data/lib/fluent_command_builder/command_builders/appcfg_python.rb +14 -0
  2. data/lib/fluent_command_builder/command_builders/appcfg_python_16.rb +2612 -0
  3. data/lib/fluent_command_builder/command_builders/appcfg_python_17.rb +2602 -0
  4. data/lib/fluent_command_builder/command_builders/aspnet_compiler.rb +14 -0
  5. data/lib/fluent_command_builder/command_builders/aspnet_compiler_20.rb +102 -0
  6. data/lib/fluent_command_builder/command_builders/aspnet_compiler_40.rb +102 -0
  7. data/lib/fluent_command_builder/command_builders/bundle.rb +14 -0
  8. data/lib/fluent_command_builder/command_builders/bundle_11.rb +320 -0
  9. data/lib/fluent_command_builder/command_builders/bundle_12.rb +344 -0
  10. data/lib/fluent_command_builder/command_builders/cucumber.rb +14 -0
  11. data/lib/fluent_command_builder/command_builders/cucumber_11.rb +177 -0
  12. data/lib/fluent_command_builder/command_builders/cucumber_12.rb +182 -0
  13. data/lib/fluent_command_builder/command_builders/dev_appserver_python.rb +14 -0
  14. data/lib/fluent_command_builder/command_builders/dev_appserver_python_16.rb +207 -0
  15. data/lib/fluent_command_builder/command_builders/dev_appserver_python_17.rb +207 -0
  16. data/lib/fluent_command_builder/command_builders/dotcover.rb +14 -0
  17. data/lib/fluent_command_builder/command_builders/dotcover_10.rb +68 -0
  18. data/lib/fluent_command_builder/command_builders/dotcover_11.rb +298 -0
  19. data/lib/fluent_command_builder/command_builders/dotcover_12.rb +298 -0
  20. data/lib/fluent_command_builder/command_builders/dotcover_20.rb +308 -0
  21. data/lib/fluent_command_builder/command_builders/dotcover_21.rb +308 -0
  22. data/lib/fluent_command_builder/command_builders/dotcover_22.rb +308 -0
  23. data/lib/fluent_command_builder/command_builders/fastlinkchecker.rb +14 -0
  24. data/lib/fluent_command_builder/command_builders/fastlinkchecker_21.rb +262 -0
  25. data/lib/fluent_command_builder/command_builders/installutil.rb +14 -0
  26. data/lib/fluent_command_builder/command_builders/installutil_11.rb +63 -0
  27. data/lib/fluent_command_builder/command_builders/installutil_20.rb +68 -0
  28. data/lib/fluent_command_builder/command_builders/installutil_35.rb +68 -0
  29. data/lib/fluent_command_builder/command_builders/installutil_40.rb +74 -0
  30. data/lib/fluent_command_builder/command_builders/msbuild.rb +14 -0
  31. data/lib/fluent_command_builder/command_builders/msbuild_20.rb +93 -0
  32. data/lib/fluent_command_builder/command_builders/msbuild_30.rb +93 -0
  33. data/lib/fluent_command_builder/command_builders/msbuild_35.rb +133 -0
  34. data/lib/fluent_command_builder/command_builders/msbuild_40.rb +136 -0
  35. data/lib/fluent_command_builder/command_builders/msdeploy.rb +14 -0
  36. data/lib/fluent_command_builder/command_builders/msdeploy_71.rb +181 -0
  37. data/lib/fluent_command_builder/command_builders/mstest.rb +14 -0
  38. data/lib/fluent_command_builder/command_builders/mstest_100.rb +131 -0
  39. data/lib/fluent_command_builder/command_builders/mstest_80.rb +111 -0
  40. data/lib/fluent_command_builder/command_builders/mstest_90.rb +116 -0
  41. data/lib/fluent_command_builder/command_builders/netsh.rb +14 -0
  42. data/lib/fluent_command_builder/command_builders/netsh_61.rb +412 -0
  43. data/lib/fluent_command_builder/command_builders/nuget.rb +14 -0
  44. data/lib/fluent_command_builder/command_builders/nuget_20.rb +436 -0
  45. data/lib/fluent_command_builder/command_builders/nuget_21.rb +532 -0
  46. data/lib/fluent_command_builder/command_builders/nunit.rb +14 -0
  47. data/lib/fluent_command_builder/command_builders/nunit_25.rb +152 -0
  48. data/lib/fluent_command_builder/command_builders/nunit_26.rb +192 -0
  49. data/lib/fluent_command_builder/command_builders/rake.rb +14 -0
  50. data/lib/fluent_command_builder/command_builders/rake_09.rb +155 -0
  51. data/lib/fluent_command_builder/command_builders/rake_100.rb +193 -0
  52. data/lib/fluent_command_builder/command_builders/schtasks.rb +14 -0
  53. data/lib/fluent_command_builder/command_builders/schtasks_61.rb +352 -0
  54. data/lib/fluent_command_builder/command_builders/security_osx.rb +14 -0
  55. data/lib/fluent_command_builder/command_builders/security_osx_107.rb +187 -0
  56. data/lib/fluent_command_builder/command_builders/security_osx_108.rb +187 -0
  57. data/lib/fluent_command_builder/command_builders/sevenzip.rb +14 -0
  58. data/lib/fluent_command_builder/command_builders/sevenzip_920.rb +522 -0
  59. data/lib/fluent_command_builder/command_builders/simian.rb +14 -0
  60. data/lib/fluent_command_builder/command_builders/simian_23.rb +146 -0
  61. data/lib/fluent_command_builder/command_builders/team_foundation.rb +14 -0
  62. data/lib/fluent_command_builder/command_builders/team_foundation_100.rb +2159 -0
  63. data/lib/fluent_command_builder/command_builders/team_foundation_tee.rb +14 -0
  64. data/lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb +1884 -0
  65. data/lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb +2002 -0
  66. data/lib/fluent_command_builder/command_builders/xcodebuild.rb +14 -0
  67. data/lib/fluent_command_builder/command_builders/xcodebuild_43.rb +275 -0
  68. data/lib/fluent_command_builder/command_builders/xcodebuild_44.rb +325 -0
  69. data/lib/fluent_command_builder/command_builders/xcodebuild_45.rb +330 -0
  70. metadata +82 -13
@@ -0,0 +1,14 @@
1
+ # Generated code. Do not modify.
2
+
3
+ require 'getversion'
4
+ require_relative '../internal/underlying_builder'
5
+
6
+ module FluentCommandBuilder
7
+ module NuGet
8
+ COMMAND_NAME = 'NuGet'
9
+ def self.version(path=nil)
10
+ executable = path ? File.join(path, COMMAND_NAME) : COMMAND_NAME
11
+ GetVersion[executable]
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,436 @@
1
+ # Generated code. Do not modify.
2
+
3
+ require_relative '../internal/command_base'
4
+ require_relative '../internal/command_builder_config'
5
+ require_relative '../internal/underlying_builder'
6
+
7
+ module FluentCommandBuilder
8
+ module NuGet
9
+ module V20
10
+ VERSION = '2.0'
11
+ @@config = CommandBuilderConfig.new FluentCommandBuilder::NuGet::COMMAND_NAME, VERSION
12
+ def configure_nuget
13
+ yield @@config
14
+ @@config.validate_path
15
+ @@config.validate_version
16
+ end
17
+ def nuget
18
+ b = UnderlyingBuilder.new @@config
19
+ c = NuGet.new(b)
20
+ yield b if block_given?
21
+ c
22
+ end
23
+ class NuGet < CommandBase
24
+ def initialize(underlying_builder)
25
+ super underlying_builder
26
+ end
27
+ def config
28
+ Config.new @b
29
+ end
30
+ def delete(package_id, package_version)
31
+ Delete.new @b, package_id, package_version
32
+ end
33
+ def help(command=nil)
34
+ Help.new @b, command
35
+ end
36
+ def install(package_id_or_path_to_packages_config)
37
+ Install.new @b, package_id_or_path_to_packages_config
38
+ end
39
+ def list(search_terms=nil)
40
+ List.new @b, search_terms
41
+ end
42
+ def pack(nuspec_or_project)
43
+ Pack.new @b, nuspec_or_project
44
+ end
45
+ def publish(package_id, package_version, api_key)
46
+ Publish.new @b, package_id, package_version, api_key
47
+ end
48
+ def push(package_path)
49
+ Push.new @b, package_path
50
+ end
51
+ def set_api_key(api_key)
52
+ SetApiKey.new @b, api_key
53
+ end
54
+ def sources(action)
55
+ Sources.new @b, action
56
+ end
57
+ def spec(package_id)
58
+ Spec.new @b, package_id
59
+ end
60
+ def update(packages_config_or_solution)
61
+ Update.new @b, packages_config_or_solution
62
+ end
63
+ end
64
+ class Config < CommandBase
65
+ def initialize(underlying_builder)
66
+ super underlying_builder
67
+ @b.append ' config'
68
+ end
69
+ def set(name, value)
70
+ @b.append " -Set #{@b.format name}=#{@b.format value}"
71
+ yield @b if block_given?
72
+ self
73
+ end
74
+ def help
75
+ @b.append ' -Help'
76
+ yield @b if block_given?
77
+ self
78
+ end
79
+ end
80
+ class Delete < CommandBase
81
+ def initialize(underlying_builder, package_id, package_version)
82
+ super underlying_builder
83
+ @b.append " delete #{@b.format package_id} #{@b.format package_version}"
84
+ end
85
+ def source(source)
86
+ @b.append " -Source #{@b.format source}"
87
+ yield @b if block_given?
88
+ self
89
+ end
90
+ def no_prompt
91
+ @b.append ' -NoPrompt'
92
+ yield @b if block_given?
93
+ self
94
+ end
95
+ def api_key(api_key)
96
+ @b.append " -ApiKey #{@b.format api_key}"
97
+ yield @b if block_given?
98
+ self
99
+ end
100
+ def help
101
+ @b.append ' -Help'
102
+ yield @b if block_given?
103
+ self
104
+ end
105
+ end
106
+ class Help < CommandBase
107
+ def initialize(underlying_builder, command=nil)
108
+ super underlying_builder
109
+ @b.append ' help'
110
+ @b.append " #{@b.format command}" unless command.nil?
111
+ end
112
+ def all
113
+ @b.append ' -All'
114
+ yield @b if block_given?
115
+ self
116
+ end
117
+ def markdown
118
+ @b.append ' -Markdown'
119
+ yield @b if block_given?
120
+ self
121
+ end
122
+ def help
123
+ @b.append ' -Help'
124
+ yield @b if block_given?
125
+ self
126
+ end
127
+ end
128
+ class Install < CommandBase
129
+ def initialize(underlying_builder, package_id_or_path_to_packages_config)
130
+ super underlying_builder
131
+ @b.append " install #{@b.format package_id_or_path_to_packages_config}"
132
+ end
133
+ def source(source)
134
+ @b.append " -Source #{@b.format source}"
135
+ yield @b if block_given?
136
+ self
137
+ end
138
+ def output_directory(output_directory)
139
+ @b.append " -OutputDirectory #{@b.format output_directory}"
140
+ yield @b if block_given?
141
+ self
142
+ end
143
+ def version(version)
144
+ @b.append " -Version #{@b.format version}"
145
+ yield @b if block_given?
146
+ self
147
+ end
148
+ def exclude_version
149
+ @b.append ' -ExcludeVersion'
150
+ yield @b if block_given?
151
+ self
152
+ end
153
+ def prerelease
154
+ @b.append ' -Prerelease'
155
+ yield @b if block_given?
156
+ self
157
+ end
158
+ def no_cache
159
+ @b.append ' -NoCache'
160
+ yield @b if block_given?
161
+ self
162
+ end
163
+ def help
164
+ @b.append ' -Help'
165
+ yield @b if block_given?
166
+ self
167
+ end
168
+ end
169
+ class List < CommandBase
170
+ def initialize(underlying_builder, search_terms=nil)
171
+ super underlying_builder
172
+ @b.append ' list'
173
+ @b.append " #{@b.format search_terms}" unless search_terms.nil?
174
+ end
175
+ def source(source)
176
+ @b.append " -Source #{@b.format source}"
177
+ yield @b if block_given?
178
+ self
179
+ end
180
+ def verbose
181
+ @b.append ' -Verbose'
182
+ yield @b if block_given?
183
+ self
184
+ end
185
+ def all_versions
186
+ @b.append ' -AllVersions'
187
+ yield @b if block_given?
188
+ self
189
+ end
190
+ def prerelease
191
+ @b.append ' -Prerelease'
192
+ yield @b if block_given?
193
+ self
194
+ end
195
+ def help
196
+ @b.append ' -Help'
197
+ yield @b if block_given?
198
+ self
199
+ end
200
+ end
201
+ class Pack < CommandBase
202
+ def initialize(underlying_builder, nuspec_or_project)
203
+ super underlying_builder
204
+ @b.append " pack #{@b.format nuspec_or_project}"
205
+ end
206
+ def output_directory(output_directory)
207
+ @b.append " -OutputDirectory #{@b.format output_directory}"
208
+ yield @b if block_given?
209
+ self
210
+ end
211
+ def base_path(base_path)
212
+ @b.append " -BasePath #{@b.format base_path}"
213
+ yield @b if block_given?
214
+ self
215
+ end
216
+ def verbose
217
+ @b.append ' -Verbose'
218
+ yield @b if block_given?
219
+ self
220
+ end
221
+ def version(version)
222
+ @b.append " -Version #{@b.format version}"
223
+ yield @b if block_given?
224
+ self
225
+ end
226
+ def exclude(pattern)
227
+ @b.append " -Exclude #{@b.format pattern}"
228
+ yield @b if block_given?
229
+ self
230
+ end
231
+ def symbols
232
+ @b.append ' -Symbols'
233
+ yield @b if block_given?
234
+ self
235
+ end
236
+ def tool
237
+ @b.append ' -Tool'
238
+ yield @b if block_given?
239
+ self
240
+ end
241
+ def build
242
+ @b.append ' -Build'
243
+ yield @b if block_given?
244
+ self
245
+ end
246
+ def no_default_excludes
247
+ @b.append ' -NoDefaultExcludes'
248
+ yield @b if block_given?
249
+ self
250
+ end
251
+ def no_package_analysis
252
+ @b.append ' -NoPackageAnalysis'
253
+ yield @b if block_given?
254
+ self
255
+ end
256
+ def exclude_empty_directories
257
+ @b.append ' -ExcludeEmptyDirectories'
258
+ yield @b if block_given?
259
+ self
260
+ end
261
+ def properties(properties)
262
+ @b.append " -Properties #{@b.format properties, ';'}"
263
+ yield @b if block_given?
264
+ self
265
+ end
266
+ def help
267
+ @b.append ' -Help'
268
+ yield @b if block_given?
269
+ self
270
+ end
271
+ end
272
+ class Publish < CommandBase
273
+ def initialize(underlying_builder, package_id, package_version, api_key)
274
+ super underlying_builder
275
+ @b.append " publish #{@b.format package_id} #{@b.format package_version} #{@b.format api_key}"
276
+ end
277
+ def source(source)
278
+ @b.append " -Source #{@b.format source}"
279
+ yield @b if block_given?
280
+ self
281
+ end
282
+ def help
283
+ @b.append ' -Help'
284
+ yield @b if block_given?
285
+ self
286
+ end
287
+ end
288
+ class Push < CommandBase
289
+ def initialize(underlying_builder, package_path)
290
+ super underlying_builder
291
+ @b.append " push #{@b.format package_path}"
292
+ end
293
+ def create_only
294
+ @b.append ' -CreateOnly'
295
+ yield @b if block_given?
296
+ self
297
+ end
298
+ def source(source)
299
+ @b.append " -Source #{@b.format source}"
300
+ yield @b if block_given?
301
+ self
302
+ end
303
+ def api_key(api_key)
304
+ @b.append " -ApiKey #{@b.format api_key}"
305
+ yield @b if block_given?
306
+ self
307
+ end
308
+ def timeout(seconds)
309
+ @b.append " -Timeout #{@b.format seconds}"
310
+ yield @b if block_given?
311
+ self
312
+ end
313
+ def help
314
+ @b.append ' -Help'
315
+ yield @b if block_given?
316
+ self
317
+ end
318
+ end
319
+ class SetApiKey < CommandBase
320
+ def initialize(underlying_builder, api_key)
321
+ super underlying_builder
322
+ @b.append " setApiKey #{@b.format api_key}"
323
+ end
324
+ def source(source)
325
+ @b.append " -Source #{@b.format source}"
326
+ yield @b if block_given?
327
+ self
328
+ end
329
+ def help
330
+ @b.append ' -Help'
331
+ yield @b if block_given?
332
+ self
333
+ end
334
+ end
335
+ class Sources < CommandBase
336
+ def initialize(underlying_builder, action)
337
+ super underlying_builder
338
+ @b.append " sources #{@b.format action}"
339
+ end
340
+ def name(name)
341
+ @b.append " -Name #{@b.format name}"
342
+ yield @b if block_given?
343
+ self
344
+ end
345
+ def source(source)
346
+ @b.append " -Source #{@b.format source}"
347
+ yield @b if block_given?
348
+ self
349
+ end
350
+ def user_name(user_name)
351
+ @b.append " -UserName #{@b.format user_name}"
352
+ yield @b if block_given?
353
+ self
354
+ end
355
+ def password(password)
356
+ @b.append " -Password #{@b.format_password password}"
357
+ yield @b if block_given?
358
+ self
359
+ end
360
+ def help
361
+ @b.append ' -Help'
362
+ yield @b if block_given?
363
+ self
364
+ end
365
+ end
366
+ class Spec < CommandBase
367
+ def initialize(underlying_builder, package_id)
368
+ super underlying_builder
369
+ @b.append " spec #{@b.format package_id}"
370
+ end
371
+ def assembly_path(assembly_path)
372
+ @b.append " -AssemblyPath #{@b.format assembly_path}"
373
+ yield @b if block_given?
374
+ self
375
+ end
376
+ def force
377
+ @b.append ' -Force'
378
+ yield @b if block_given?
379
+ self
380
+ end
381
+ def help
382
+ @b.append ' -Help'
383
+ yield @b if block_given?
384
+ self
385
+ end
386
+ end
387
+ class Update < CommandBase
388
+ def initialize(underlying_builder, packages_config_or_solution)
389
+ super underlying_builder
390
+ @b.append " update #{@b.format packages_config_or_solution}"
391
+ end
392
+ def source(source)
393
+ @b.append " -Source #{@b.format source}"
394
+ yield @b if block_given?
395
+ self
396
+ end
397
+ def id(package_id)
398
+ @b.append " -Id #{@b.format package_id}"
399
+ yield @b if block_given?
400
+ self
401
+ end
402
+ def repository_path(repository_path)
403
+ @b.append " -RepositoryPath #{@b.format repository_path}"
404
+ yield @b if block_given?
405
+ self
406
+ end
407
+ def safe
408
+ @b.append ' -Safe'
409
+ yield @b if block_given?
410
+ self
411
+ end
412
+ def self
413
+ @b.append ' -Self'
414
+ yield @b if block_given?
415
+ self
416
+ end
417
+ def verbose
418
+ @b.append ' -Verbose'
419
+ yield @b if block_given?
420
+ self
421
+ end
422
+ def prerelease
423
+ @b.append ' -Prerelease'
424
+ yield @b if block_given?
425
+ self
426
+ end
427
+ def help
428
+ @b.append ' -Help'
429
+ yield @b if block_given?
430
+ self
431
+ end
432
+ end
433
+
434
+ end
435
+ end
436
+ end
@@ -0,0 +1,532 @@
1
+ # Generated code. Do not modify.
2
+
3
+ require_relative '../internal/command_base'
4
+ require_relative '../internal/command_builder_config'
5
+ require_relative '../internal/underlying_builder'
6
+
7
+ module FluentCommandBuilder
8
+ module NuGet
9
+ module V21
10
+ VERSION = '2.1'
11
+ @@config = CommandBuilderConfig.new FluentCommandBuilder::NuGet::COMMAND_NAME, VERSION
12
+ def configure_nuget
13
+ yield @@config
14
+ @@config.validate_path
15
+ @@config.validate_version
16
+ end
17
+ def nuget
18
+ b = UnderlyingBuilder.new @@config
19
+ c = NuGet.new(b)
20
+ yield b if block_given?
21
+ c
22
+ end
23
+ class NuGet < CommandBase
24
+ def initialize(underlying_builder)
25
+ super underlying_builder
26
+ end
27
+ def config
28
+ Config.new @b
29
+ end
30
+ def delete(package_id, package_version)
31
+ Delete.new @b, package_id, package_version
32
+ end
33
+ def help(command=nil)
34
+ Help.new @b, command
35
+ end
36
+ def install(package_id_or_path_to_packages_config)
37
+ Install.new @b, package_id_or_path_to_packages_config
38
+ end
39
+ def list(search_terms=nil)
40
+ List.new @b, search_terms
41
+ end
42
+ def pack(nuspec_or_project)
43
+ Pack.new @b, nuspec_or_project
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
+ def verbosity(verbosity)
77
+ @b.append " -Verbosity #{@b.format verbosity}"
78
+ yield @b if block_given?
79
+ self
80
+ end
81
+ def non_interactive
82
+ @b.append ' -NonInteractive'
83
+ yield @b if block_given?
84
+ self
85
+ end
86
+ end
87
+ class Delete < CommandBase
88
+ def initialize(underlying_builder, package_id, package_version)
89
+ super underlying_builder
90
+ @b.append " delete #{@b.format package_id} #{@b.format package_version}"
91
+ end
92
+ def source(source)
93
+ @b.append " -Source #{@b.format source}"
94
+ yield @b if block_given?
95
+ self
96
+ end
97
+ def no_prompt
98
+ @b.append ' -NoPrompt'
99
+ yield @b if block_given?
100
+ self
101
+ end
102
+ def api_key(api_key)
103
+ @b.append " -ApiKey #{@b.format api_key}"
104
+ yield @b if block_given?
105
+ self
106
+ end
107
+ def help
108
+ @b.append ' -Help'
109
+ yield @b if block_given?
110
+ self
111
+ end
112
+ def verbosity(verbosity)
113
+ @b.append " -Verbosity #{@b.format verbosity}"
114
+ yield @b if block_given?
115
+ self
116
+ end
117
+ def non_interactive
118
+ @b.append ' -NonInteractive'
119
+ yield @b if block_given?
120
+ self
121
+ end
122
+ end
123
+ class Help < CommandBase
124
+ def initialize(underlying_builder, command=nil)
125
+ super underlying_builder
126
+ @b.append ' help'
127
+ @b.append " #{@b.format command}" unless command.nil?
128
+ end
129
+ def all
130
+ @b.append ' -All'
131
+ yield @b if block_given?
132
+ self
133
+ end
134
+ def markdown
135
+ @b.append ' -Markdown'
136
+ yield @b if block_given?
137
+ self
138
+ end
139
+ def help
140
+ @b.append ' -Help'
141
+ yield @b if block_given?
142
+ self
143
+ end
144
+ def verbosity(verbosity)
145
+ @b.append " -Verbosity #{@b.format verbosity}"
146
+ yield @b if block_given?
147
+ self
148
+ end
149
+ def non_interactive
150
+ @b.append ' -NonInteractive'
151
+ yield @b if block_given?
152
+ self
153
+ end
154
+ end
155
+ class Install < CommandBase
156
+ def initialize(underlying_builder, package_id_or_path_to_packages_config)
157
+ super underlying_builder
158
+ @b.append " install #{@b.format package_id_or_path_to_packages_config}"
159
+ end
160
+ def source(source)
161
+ @b.append " -Source #{@b.format source}"
162
+ yield @b if block_given?
163
+ self
164
+ end
165
+ def output_directory(output_directory)
166
+ @b.append " -OutputDirectory #{@b.format output_directory}"
167
+ yield @b if block_given?
168
+ self
169
+ end
170
+ def version(version)
171
+ @b.append " -Version #{@b.format version}"
172
+ yield @b if block_given?
173
+ self
174
+ end
175
+ def exclude_version
176
+ @b.append ' -ExcludeVersion'
177
+ yield @b if block_given?
178
+ self
179
+ end
180
+ def prerelease
181
+ @b.append ' -Prerelease'
182
+ yield @b if block_given?
183
+ self
184
+ end
185
+ def no_cache
186
+ @b.append ' -NoCache'
187
+ yield @b if block_given?
188
+ self
189
+ end
190
+ def require_consent
191
+ @b.append ' -RequireConsent'
192
+ yield @b if block_given?
193
+ self
194
+ end
195
+ def solution_directory(solution_directory)
196
+ @b.append " -SolutionDirectory #{@b.format solution_directory}"
197
+ yield @b if block_given?
198
+ self
199
+ end
200
+ def help
201
+ @b.append ' -Help'
202
+ yield @b if block_given?
203
+ self
204
+ end
205
+ def verbosity(verbosity)
206
+ @b.append " -Verbosity #{@b.format verbosity}"
207
+ yield @b if block_given?
208
+ self
209
+ end
210
+ def non_interactive
211
+ @b.append ' -NonInteractive'
212
+ yield @b if block_given?
213
+ self
214
+ end
215
+ end
216
+ class List < CommandBase
217
+ def initialize(underlying_builder, search_terms=nil)
218
+ super underlying_builder
219
+ @b.append ' list'
220
+ @b.append " #{@b.format search_terms}" unless search_terms.nil?
221
+ end
222
+ def source(source)
223
+ @b.append " -Source #{@b.format source}"
224
+ yield @b if block_given?
225
+ self
226
+ end
227
+ def verbose
228
+ @b.append ' -Verbose'
229
+ yield @b if block_given?
230
+ self
231
+ end
232
+ def all_versions
233
+ @b.append ' -AllVersions'
234
+ yield @b if block_given?
235
+ self
236
+ end
237
+ def prerelease
238
+ @b.append ' -Prerelease'
239
+ yield @b if block_given?
240
+ self
241
+ end
242
+ def help
243
+ @b.append ' -Help'
244
+ yield @b if block_given?
245
+ self
246
+ end
247
+ def verbosity(verbosity)
248
+ @b.append " -Verbosity #{@b.format verbosity}"
249
+ yield @b if block_given?
250
+ self
251
+ end
252
+ def non_interactive
253
+ @b.append ' -NonInteractive'
254
+ yield @b if block_given?
255
+ self
256
+ end
257
+ end
258
+ class Pack < CommandBase
259
+ def initialize(underlying_builder, nuspec_or_project)
260
+ super underlying_builder
261
+ @b.append " pack #{@b.format nuspec_or_project}"
262
+ end
263
+ def output_directory(output_directory)
264
+ @b.append " -OutputDirectory #{@b.format output_directory}"
265
+ yield @b if block_given?
266
+ self
267
+ end
268
+ def base_path(base_path)
269
+ @b.append " -BasePath #{@b.format base_path}"
270
+ yield @b if block_given?
271
+ self
272
+ end
273
+ def verbose
274
+ @b.append ' -Verbose'
275
+ yield @b if block_given?
276
+ self
277
+ end
278
+ def version(version)
279
+ @b.append " -Version #{@b.format version}"
280
+ yield @b if block_given?
281
+ self
282
+ end
283
+ def exclude(pattern)
284
+ @b.append " -Exclude #{@b.format pattern}"
285
+ yield @b if block_given?
286
+ self
287
+ end
288
+ def symbols
289
+ @b.append ' -Symbols'
290
+ yield @b if block_given?
291
+ self
292
+ end
293
+ def tool
294
+ @b.append ' -Tool'
295
+ yield @b if block_given?
296
+ self
297
+ end
298
+ def build
299
+ @b.append ' -Build'
300
+ yield @b if block_given?
301
+ self
302
+ end
303
+ def no_default_excludes
304
+ @b.append ' -NoDefaultExcludes'
305
+ yield @b if block_given?
306
+ self
307
+ end
308
+ def no_package_analysis
309
+ @b.append ' -NoPackageAnalysis'
310
+ yield @b if block_given?
311
+ self
312
+ end
313
+ def exclude_empty_directories
314
+ @b.append ' -ExcludeEmptyDirectories'
315
+ yield @b if block_given?
316
+ self
317
+ end
318
+ def properties(properties)
319
+ @b.append " -Properties #{@b.format properties, ';'}"
320
+ yield @b if block_given?
321
+ self
322
+ end
323
+ def help
324
+ @b.append ' -Help'
325
+ yield @b if block_given?
326
+ self
327
+ end
328
+ def verbosity(verbosity)
329
+ @b.append " -Verbosity #{@b.format verbosity}"
330
+ yield @b if block_given?
331
+ self
332
+ end
333
+ def non_interactive
334
+ @b.append ' -NonInteractive'
335
+ yield @b if block_given?
336
+ self
337
+ end
338
+ end
339
+ class Push < CommandBase
340
+ def initialize(underlying_builder, package_path)
341
+ super underlying_builder
342
+ @b.append " push #{@b.format package_path}"
343
+ end
344
+ def source(source)
345
+ @b.append " -Source #{@b.format source}"
346
+ yield @b if block_given?
347
+ self
348
+ end
349
+ def api_key(api_key)
350
+ @b.append " -ApiKey #{@b.format api_key}"
351
+ yield @b if block_given?
352
+ self
353
+ end
354
+ def timeout(seconds)
355
+ @b.append " -Timeout #{@b.format seconds}"
356
+ yield @b if block_given?
357
+ self
358
+ end
359
+ def help
360
+ @b.append ' -Help'
361
+ yield @b if block_given?
362
+ self
363
+ end
364
+ def verbosity(verbosity)
365
+ @b.append " -Verbosity #{@b.format verbosity}"
366
+ yield @b if block_given?
367
+ self
368
+ end
369
+ def non_interactive
370
+ @b.append ' -NonInteractive'
371
+ yield @b if block_given?
372
+ self
373
+ end
374
+ end
375
+ class SetApiKey < CommandBase
376
+ def initialize(underlying_builder, api_key)
377
+ super underlying_builder
378
+ @b.append " setApiKey #{@b.format api_key}"
379
+ end
380
+ def source(source)
381
+ @b.append " -Source #{@b.format source}"
382
+ yield @b if block_given?
383
+ self
384
+ end
385
+ def help
386
+ @b.append ' -Help'
387
+ yield @b if block_given?
388
+ self
389
+ end
390
+ def verbosity(verbosity)
391
+ @b.append " -Verbosity #{@b.format verbosity}"
392
+ yield @b if block_given?
393
+ self
394
+ end
395
+ def non_interactive
396
+ @b.append ' -NonInteractive'
397
+ yield @b if block_given?
398
+ self
399
+ end
400
+ end
401
+ class Sources < CommandBase
402
+ def initialize(underlying_builder, action)
403
+ super underlying_builder
404
+ @b.append " sources #{@b.format action}"
405
+ end
406
+ def name(name)
407
+ @b.append " -Name #{@b.format name}"
408
+ yield @b if block_given?
409
+ self
410
+ end
411
+ def source(source)
412
+ @b.append " -Source #{@b.format source}"
413
+ yield @b if block_given?
414
+ self
415
+ end
416
+ def user_name(user_name)
417
+ @b.append " -UserName #{@b.format user_name}"
418
+ yield @b if block_given?
419
+ self
420
+ end
421
+ def password(password)
422
+ @b.append " -Password #{@b.format_password password}"
423
+ yield @b if block_given?
424
+ self
425
+ end
426
+ def help
427
+ @b.append ' -Help'
428
+ yield @b if block_given?
429
+ self
430
+ end
431
+ def verbosity(verbosity)
432
+ @b.append " -Verbosity #{@b.format verbosity}"
433
+ yield @b if block_given?
434
+ self
435
+ end
436
+ def non_interactive
437
+ @b.append ' -NonInteractive'
438
+ yield @b if block_given?
439
+ self
440
+ end
441
+ end
442
+ class Spec < CommandBase
443
+ def initialize(underlying_builder, package_id)
444
+ super underlying_builder
445
+ @b.append " spec #{@b.format package_id}"
446
+ end
447
+ def assembly_path(assembly_path)
448
+ @b.append " -AssemblyPath #{@b.format assembly_path}"
449
+ yield @b if block_given?
450
+ self
451
+ end
452
+ def force
453
+ @b.append ' -Force'
454
+ yield @b if block_given?
455
+ self
456
+ end
457
+ def help
458
+ @b.append ' -Help'
459
+ yield @b if block_given?
460
+ self
461
+ end
462
+ def verbosity(verbosity)
463
+ @b.append " -Verbosity #{@b.format verbosity}"
464
+ yield @b if block_given?
465
+ self
466
+ end
467
+ def non_interactive
468
+ @b.append ' -NonInteractive'
469
+ yield @b if block_given?
470
+ self
471
+ end
472
+ end
473
+ class Update < CommandBase
474
+ def initialize(underlying_builder, packages_config_or_solution)
475
+ super underlying_builder
476
+ @b.append " update #{@b.format packages_config_or_solution}"
477
+ end
478
+ def source(source)
479
+ @b.append " -Source #{@b.format source}"
480
+ yield @b if block_given?
481
+ self
482
+ end
483
+ def id(package_id)
484
+ @b.append " -Id #{@b.format package_id}"
485
+ yield @b if block_given?
486
+ self
487
+ end
488
+ def repository_path(repository_path)
489
+ @b.append " -RepositoryPath #{@b.format repository_path}"
490
+ yield @b if block_given?
491
+ self
492
+ end
493
+ def safe
494
+ @b.append ' -Safe'
495
+ yield @b if block_given?
496
+ self
497
+ end
498
+ def self
499
+ @b.append ' -Self'
500
+ yield @b if block_given?
501
+ self
502
+ end
503
+ def verbose
504
+ @b.append ' -Verbose'
505
+ yield @b if block_given?
506
+ self
507
+ end
508
+ def prerelease
509
+ @b.append ' -Prerelease'
510
+ yield @b if block_given?
511
+ self
512
+ end
513
+ def help
514
+ @b.append ' -Help'
515
+ yield @b if block_given?
516
+ self
517
+ end
518
+ def verbosity(verbosity)
519
+ @b.append " -Verbosity #{@b.format verbosity}"
520
+ yield @b if block_given?
521
+ self
522
+ end
523
+ def non_interactive
524
+ @b.append ' -NonInteractive'
525
+ yield @b if block_given?
526
+ self
527
+ end
528
+ end
529
+
530
+ end
531
+ end
532
+ end