fluent_command_builder 0.9.9 → 0.9.10
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.
- data/lib/fluent_command_builder/command_builders/appcfg_python.rb +14 -0
- data/lib/fluent_command_builder/command_builders/appcfg_python_16.rb +2612 -0
- data/lib/fluent_command_builder/command_builders/appcfg_python_17.rb +2602 -0
- data/lib/fluent_command_builder/command_builders/aspnet_compiler.rb +14 -0
- data/lib/fluent_command_builder/command_builders/aspnet_compiler_20.rb +102 -0
- data/lib/fluent_command_builder/command_builders/aspnet_compiler_40.rb +102 -0
- data/lib/fluent_command_builder/command_builders/bundle.rb +14 -0
- data/lib/fluent_command_builder/command_builders/bundle_11.rb +320 -0
- data/lib/fluent_command_builder/command_builders/bundle_12.rb +344 -0
- data/lib/fluent_command_builder/command_builders/cucumber.rb +14 -0
- data/lib/fluent_command_builder/command_builders/cucumber_11.rb +177 -0
- data/lib/fluent_command_builder/command_builders/cucumber_12.rb +182 -0
- data/lib/fluent_command_builder/command_builders/dev_appserver_python.rb +14 -0
- data/lib/fluent_command_builder/command_builders/dev_appserver_python_16.rb +207 -0
- data/lib/fluent_command_builder/command_builders/dev_appserver_python_17.rb +207 -0
- data/lib/fluent_command_builder/command_builders/dotcover.rb +14 -0
- data/lib/fluent_command_builder/command_builders/dotcover_10.rb +68 -0
- data/lib/fluent_command_builder/command_builders/dotcover_11.rb +298 -0
- data/lib/fluent_command_builder/command_builders/dotcover_12.rb +298 -0
- data/lib/fluent_command_builder/command_builders/dotcover_20.rb +308 -0
- data/lib/fluent_command_builder/command_builders/dotcover_21.rb +308 -0
- data/lib/fluent_command_builder/command_builders/dotcover_22.rb +308 -0
- data/lib/fluent_command_builder/command_builders/fastlinkchecker.rb +14 -0
- data/lib/fluent_command_builder/command_builders/fastlinkchecker_21.rb +262 -0
- data/lib/fluent_command_builder/command_builders/installutil.rb +14 -0
- data/lib/fluent_command_builder/command_builders/installutil_11.rb +63 -0
- data/lib/fluent_command_builder/command_builders/installutil_20.rb +68 -0
- data/lib/fluent_command_builder/command_builders/installutil_35.rb +68 -0
- data/lib/fluent_command_builder/command_builders/installutil_40.rb +74 -0
- data/lib/fluent_command_builder/command_builders/msbuild.rb +14 -0
- data/lib/fluent_command_builder/command_builders/msbuild_20.rb +93 -0
- data/lib/fluent_command_builder/command_builders/msbuild_30.rb +93 -0
- data/lib/fluent_command_builder/command_builders/msbuild_35.rb +133 -0
- data/lib/fluent_command_builder/command_builders/msbuild_40.rb +136 -0
- data/lib/fluent_command_builder/command_builders/msdeploy.rb +14 -0
- data/lib/fluent_command_builder/command_builders/msdeploy_71.rb +181 -0
- data/lib/fluent_command_builder/command_builders/mstest.rb +14 -0
- data/lib/fluent_command_builder/command_builders/mstest_100.rb +131 -0
- data/lib/fluent_command_builder/command_builders/mstest_80.rb +111 -0
- data/lib/fluent_command_builder/command_builders/mstest_90.rb +116 -0
- data/lib/fluent_command_builder/command_builders/netsh.rb +14 -0
- data/lib/fluent_command_builder/command_builders/netsh_61.rb +412 -0
- data/lib/fluent_command_builder/command_builders/nuget.rb +14 -0
- data/lib/fluent_command_builder/command_builders/nuget_20.rb +436 -0
- data/lib/fluent_command_builder/command_builders/nuget_21.rb +532 -0
- data/lib/fluent_command_builder/command_builders/nunit.rb +14 -0
- data/lib/fluent_command_builder/command_builders/nunit_25.rb +152 -0
- data/lib/fluent_command_builder/command_builders/nunit_26.rb +192 -0
- data/lib/fluent_command_builder/command_builders/rake.rb +14 -0
- data/lib/fluent_command_builder/command_builders/rake_09.rb +155 -0
- data/lib/fluent_command_builder/command_builders/rake_100.rb +193 -0
- data/lib/fluent_command_builder/command_builders/schtasks.rb +14 -0
- data/lib/fluent_command_builder/command_builders/schtasks_61.rb +352 -0
- data/lib/fluent_command_builder/command_builders/security_osx.rb +14 -0
- data/lib/fluent_command_builder/command_builders/security_osx_107.rb +187 -0
- data/lib/fluent_command_builder/command_builders/security_osx_108.rb +187 -0
- data/lib/fluent_command_builder/command_builders/sevenzip.rb +14 -0
- data/lib/fluent_command_builder/command_builders/sevenzip_920.rb +522 -0
- data/lib/fluent_command_builder/command_builders/simian.rb +14 -0
- data/lib/fluent_command_builder/command_builders/simian_23.rb +146 -0
- data/lib/fluent_command_builder/command_builders/team_foundation.rb +14 -0
- data/lib/fluent_command_builder/command_builders/team_foundation_100.rb +2159 -0
- data/lib/fluent_command_builder/command_builders/team_foundation_tee.rb +14 -0
- data/lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb +1884 -0
- data/lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb +2002 -0
- data/lib/fluent_command_builder/command_builders/xcodebuild.rb +14 -0
- data/lib/fluent_command_builder/command_builders/xcodebuild_43.rb +275 -0
- data/lib/fluent_command_builder/command_builders/xcodebuild_44.rb +325 -0
- data/lib/fluent_command_builder/command_builders/xcodebuild_45.rb +330 -0
- metadata +82 -13
@@ -0,0 +1,2002 @@
|
|
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 TeamFoundationTEE
|
9
|
+
module V101
|
10
|
+
VERSION = '10.1'
|
11
|
+
@@config = CommandBuilderConfig.new FluentCommandBuilder::TeamFoundationTEE::COMMAND_NAME, VERSION
|
12
|
+
def configure_team_foundation_tee
|
13
|
+
yield @@config
|
14
|
+
@@config.validate_path
|
15
|
+
@@config.validate_version
|
16
|
+
end
|
17
|
+
def team_foundation_tee
|
18
|
+
b = UnderlyingBuilder.new @@config
|
19
|
+
c = TeamFoundationTEE.new(b)
|
20
|
+
yield b if block_given?
|
21
|
+
c
|
22
|
+
end
|
23
|
+
class TeamFoundationTEE < CommandBase
|
24
|
+
def initialize(underlying_builder)
|
25
|
+
super underlying_builder
|
26
|
+
end
|
27
|
+
def add(item_spec)
|
28
|
+
Add.new @b, item_spec
|
29
|
+
end
|
30
|
+
def branch(old_item, new_item)
|
31
|
+
Branch.new @b, old_item, new_item
|
32
|
+
end
|
33
|
+
def branches(item_spec)
|
34
|
+
Branches.new @b, item_spec
|
35
|
+
end
|
36
|
+
def changeset(changeset_number=nil)
|
37
|
+
Changeset.new @b, changeset_number
|
38
|
+
end
|
39
|
+
def checkin(item_spec=nil)
|
40
|
+
Checkin.new @b, item_spec
|
41
|
+
end
|
42
|
+
def checkin_shelveset(shelveset_name, shelveset_owner=nil)
|
43
|
+
CheckinShelveset.new @b, shelveset_name, shelveset_owner
|
44
|
+
end
|
45
|
+
def checkout(item_spec=nil)
|
46
|
+
Checkout.new @b, item_spec
|
47
|
+
end
|
48
|
+
def delete(item_spec)
|
49
|
+
Delete.new @b, item_spec
|
50
|
+
end
|
51
|
+
def destroy(item_spec)
|
52
|
+
Destroy.new @b, item_spec
|
53
|
+
end
|
54
|
+
def compare_with_current_workspace_version(item_spec)
|
55
|
+
CompareWithCurrentWorkspaceVersion.new @b, item_spec
|
56
|
+
end
|
57
|
+
def compare(item_spec, item_spec2)
|
58
|
+
Compare.new @b, item_spec, item_spec2
|
59
|
+
end
|
60
|
+
def compare_with_shelveset_version(shelveset_item_spec)
|
61
|
+
CompareWithShelvesetVersion.new @b, shelveset_item_spec
|
62
|
+
end
|
63
|
+
def configure_compare_tool
|
64
|
+
@b.append ' difference -configure'
|
65
|
+
yield @b if block_given?
|
66
|
+
self
|
67
|
+
end
|
68
|
+
def dir(item_spec)
|
69
|
+
Dir.new @b, item_spec
|
70
|
+
end
|
71
|
+
def eula
|
72
|
+
Eula.new @b
|
73
|
+
end
|
74
|
+
def get(item_spec=nil)
|
75
|
+
Get.new @b, item_spec
|
76
|
+
end
|
77
|
+
def getcs
|
78
|
+
Getcs.new @b
|
79
|
+
end
|
80
|
+
def help(command=nil)
|
81
|
+
Help.new @b, command
|
82
|
+
end
|
83
|
+
def history(item_spec)
|
84
|
+
History.new @b, item_spec
|
85
|
+
end
|
86
|
+
def label(label_name, item_spec, scope=nil)
|
87
|
+
Label.new @b, label_name, item_spec, scope
|
88
|
+
end
|
89
|
+
def delete_label(label_name, item_spec, scope=nil)
|
90
|
+
DeleteLabel.new @b, label_name, item_spec, scope
|
91
|
+
end
|
92
|
+
def labels(label_name=nil)
|
93
|
+
Labels.new @b, label_name
|
94
|
+
end
|
95
|
+
def lock(item_spec)
|
96
|
+
Lock.new @b, item_spec
|
97
|
+
end
|
98
|
+
def merge(source, destination)
|
99
|
+
Merge.new @b, source, destination
|
100
|
+
end
|
101
|
+
def merges(destination, source=nil)
|
102
|
+
Merges.new @b, destination, source
|
103
|
+
end
|
104
|
+
def print(item_spec)
|
105
|
+
Print.new @b, item_spec
|
106
|
+
end
|
107
|
+
def product_key
|
108
|
+
ProductKey.new @b
|
109
|
+
end
|
110
|
+
def copy_profile(existing_profile_name, new_profile_name)
|
111
|
+
@b.append " profile -copy #{@b.format existing_profile_name} #{@b.format new_profile_name}"
|
112
|
+
yield @b if block_given?
|
113
|
+
self
|
114
|
+
end
|
115
|
+
def delete_profile(profile_name)
|
116
|
+
@b.append " profile -delete #{@b.format profile_name}"
|
117
|
+
yield @b if block_given?
|
118
|
+
self
|
119
|
+
end
|
120
|
+
def edit_profile(existing_profile_name)
|
121
|
+
EditProfile.new @b, existing_profile_name
|
122
|
+
end
|
123
|
+
def new_profile(new_profile_name)
|
124
|
+
NewProfile.new @b, new_profile_name
|
125
|
+
end
|
126
|
+
def profiles
|
127
|
+
Profiles.new @b
|
128
|
+
end
|
129
|
+
def properties(item_spec)
|
130
|
+
Properties.new @b, item_spec
|
131
|
+
end
|
132
|
+
def reconcile
|
133
|
+
Reconcile.new @b
|
134
|
+
end
|
135
|
+
def reconcile_build(build_name, item_spec=nil)
|
136
|
+
ReconcileBuild.new @b, build_name, item_spec
|
137
|
+
end
|
138
|
+
def reconcile_changeset(changeset_name, item_spec=nil)
|
139
|
+
ReconcileChangeset.new @b, changeset_name, item_spec
|
140
|
+
end
|
141
|
+
def reconcile_forget_build(build_name, item_spec=nil)
|
142
|
+
ReconcileForgetBuild.new @b, build_name, item_spec
|
143
|
+
end
|
144
|
+
def rename(old_item, new_item)
|
145
|
+
Rename.new @b, old_item, new_item
|
146
|
+
end
|
147
|
+
def resolve(item_spec=nil)
|
148
|
+
Resolve.new @b, item_spec
|
149
|
+
end
|
150
|
+
def replace_shelveset(shelveset_name)
|
151
|
+
ReplaceShelveset.new @b, shelveset_name
|
152
|
+
end
|
153
|
+
def shelve(shelveset_name, item_spec)
|
154
|
+
Shelve.new @b, shelveset_name, item_spec
|
155
|
+
end
|
156
|
+
def delete_shelveset(shelveset_name, shelveset_owner=nil)
|
157
|
+
DeleteShelveset.new @b, shelveset_name, shelveset_owner
|
158
|
+
end
|
159
|
+
def shelvesets(shelveset_name=nil)
|
160
|
+
Shelvesets.new @b, shelveset_name
|
161
|
+
end
|
162
|
+
def status(item_spec)
|
163
|
+
Status.new @b, item_spec
|
164
|
+
end
|
165
|
+
def undelete(item_spec, deletion_id=nil)
|
166
|
+
Undelete.new @b, item_spec, deletion_id
|
167
|
+
end
|
168
|
+
def undo(item_spec)
|
169
|
+
Undo.new @b, item_spec
|
170
|
+
end
|
171
|
+
def unlabel(label_name, item_spec)
|
172
|
+
Unlabel.new @b, label_name, item_spec
|
173
|
+
end
|
174
|
+
def unshelve(shelveset_name=nil, username=nil, item_spec=nil)
|
175
|
+
Unshelve.new @b, shelveset_name, username, item_spec
|
176
|
+
end
|
177
|
+
def show_local_folder_mapping(local_folder)
|
178
|
+
ShowLocalFolderMapping.new @b, local_folder
|
179
|
+
end
|
180
|
+
def show_workspace_mappings(workspace_name)
|
181
|
+
ShowWorkspaceMappings.new @b, workspace_name
|
182
|
+
end
|
183
|
+
def show_server_folder_mappings(server_folder)
|
184
|
+
ShowServerFolderMappings.new @b, server_folder
|
185
|
+
end
|
186
|
+
def map_folder(server_folder, local_folder)
|
187
|
+
MapFolder.new @b, server_folder, local_folder
|
188
|
+
end
|
189
|
+
def unmap_folder
|
190
|
+
UnmapFolder.new @b
|
191
|
+
end
|
192
|
+
def cloak_folder(server_folder)
|
193
|
+
CloakFolder.new @b, server_folder
|
194
|
+
end
|
195
|
+
def decloak_folder(server_folder)
|
196
|
+
DecloakFolder.new @b, server_folder
|
197
|
+
end
|
198
|
+
def create_workspace(workspace_name, workspace_owner=nil)
|
199
|
+
CreateWorkspace.new @b, workspace_name, workspace_owner
|
200
|
+
end
|
201
|
+
def delete_workspace(workspace_name, workspace_owner=nil)
|
202
|
+
DeleteWorkspace.new @b, workspace_name, workspace_owner
|
203
|
+
end
|
204
|
+
def modify_workspace(workspace_name=nil, workspace_owner=nil)
|
205
|
+
ModifyWorkspace.new @b, workspace_name, workspace_owner
|
206
|
+
end
|
207
|
+
def workspaces(workspace_name=nil)
|
208
|
+
Workspaces.new @b, workspace_name
|
209
|
+
end
|
210
|
+
def remove_workspace(workspace_name)
|
211
|
+
RemoveWorkspace.new @b, workspace_name
|
212
|
+
end
|
213
|
+
end
|
214
|
+
class Add < CommandBase
|
215
|
+
def initialize(underlying_builder, item_spec)
|
216
|
+
super underlying_builder
|
217
|
+
@b.append " add #{@b.format item_spec}"
|
218
|
+
end
|
219
|
+
def lock(lock_type)
|
220
|
+
@b.append " -lock:#{@b.format lock_type}"
|
221
|
+
yield @b if block_given?
|
222
|
+
self
|
223
|
+
end
|
224
|
+
def type(file_type)
|
225
|
+
@b.append " -type:#{@b.format file_type}"
|
226
|
+
yield @b if block_given?
|
227
|
+
self
|
228
|
+
end
|
229
|
+
def no_prompt
|
230
|
+
@b.append ' -noPrompt'
|
231
|
+
yield @b if block_given?
|
232
|
+
self
|
233
|
+
end
|
234
|
+
def recursive
|
235
|
+
@b.append ' -recursive'
|
236
|
+
yield @b if block_given?
|
237
|
+
self
|
238
|
+
end
|
239
|
+
def login(username, password=nil)
|
240
|
+
@b.append " -login:#{@b.format username}"
|
241
|
+
@b.append ",#{@b.format_password password}" unless password.nil?
|
242
|
+
yield @b if block_given?
|
243
|
+
self
|
244
|
+
end
|
245
|
+
end
|
246
|
+
class Branch < CommandBase
|
247
|
+
def initialize(underlying_builder, old_item, new_item)
|
248
|
+
super underlying_builder
|
249
|
+
@b.append " branch #{@b.format old_item} #{@b.format new_item}"
|
250
|
+
end
|
251
|
+
def version(version_spec)
|
252
|
+
@b.append " -version:#{@b.format version_spec}"
|
253
|
+
yield @b if block_given?
|
254
|
+
self
|
255
|
+
end
|
256
|
+
def no_get
|
257
|
+
@b.append ' -noGet'
|
258
|
+
yield @b if block_given?
|
259
|
+
self
|
260
|
+
end
|
261
|
+
def lock(lock_type)
|
262
|
+
@b.append " -lock:#{@b.format lock_type}"
|
263
|
+
yield @b if block_given?
|
264
|
+
self
|
265
|
+
end
|
266
|
+
def no_prompt
|
267
|
+
@b.append ' -noPrompt'
|
268
|
+
yield @b if block_given?
|
269
|
+
self
|
270
|
+
end
|
271
|
+
def silent
|
272
|
+
@b.append ' -silent'
|
273
|
+
yield @b if block_given?
|
274
|
+
self
|
275
|
+
end
|
276
|
+
def checkin
|
277
|
+
@b.append ' -checkin'
|
278
|
+
yield @b if block_given?
|
279
|
+
self
|
280
|
+
end
|
281
|
+
def comment(comment)
|
282
|
+
@b.append " -comment:#{@b.format comment}"
|
283
|
+
yield @b if block_given?
|
284
|
+
self
|
285
|
+
end
|
286
|
+
def author(author_name)
|
287
|
+
@b.append " -author:#{@b.format author_name}"
|
288
|
+
yield @b if block_given?
|
289
|
+
self
|
290
|
+
end
|
291
|
+
def login(username, password=nil)
|
292
|
+
@b.append " -login:#{@b.format username}"
|
293
|
+
@b.append ",#{@b.format_password password}" unless password.nil?
|
294
|
+
yield @b if block_given?
|
295
|
+
self
|
296
|
+
end
|
297
|
+
end
|
298
|
+
class Branches < CommandBase
|
299
|
+
def initialize(underlying_builder, item_spec)
|
300
|
+
super underlying_builder
|
301
|
+
@b.append " branches #{@b.format item_spec}"
|
302
|
+
end
|
303
|
+
def version(version_spec)
|
304
|
+
@b.append " -version:#{@b.format version_spec}"
|
305
|
+
yield @b if block_given?
|
306
|
+
self
|
307
|
+
end
|
308
|
+
def collection(team_project_collection_url)
|
309
|
+
@b.append " -collection:#{@b.format team_project_collection_url}"
|
310
|
+
yield @b if block_given?
|
311
|
+
self
|
312
|
+
end
|
313
|
+
def login(username, password=nil)
|
314
|
+
@b.append " -login:#{@b.format username}"
|
315
|
+
@b.append ",#{@b.format_password password}" unless password.nil?
|
316
|
+
yield @b if block_given?
|
317
|
+
self
|
318
|
+
end
|
319
|
+
end
|
320
|
+
class Changeset < CommandBase
|
321
|
+
def initialize(underlying_builder, changeset_number=nil)
|
322
|
+
super underlying_builder
|
323
|
+
@b.append ' changeset'
|
324
|
+
@b.append " #{@b.format changeset_number}" unless changeset_number.nil?
|
325
|
+
end
|
326
|
+
def comment(comment)
|
327
|
+
@b.append " -comment:#{@b.format comment}"
|
328
|
+
yield @b if block_given?
|
329
|
+
self
|
330
|
+
end
|
331
|
+
def notes(notes)
|
332
|
+
@b.append " -notes:#{@b.format notes, ';', '='}"
|
333
|
+
yield @b if block_given?
|
334
|
+
self
|
335
|
+
end
|
336
|
+
def no_prompt
|
337
|
+
@b.append ' -noPrompt'
|
338
|
+
yield @b if block_given?
|
339
|
+
self
|
340
|
+
end
|
341
|
+
def collection(team_project_collection_url)
|
342
|
+
@b.append " -collection:#{@b.format team_project_collection_url}"
|
343
|
+
yield @b if block_given?
|
344
|
+
self
|
345
|
+
end
|
346
|
+
def latest
|
347
|
+
@b.append ' -latest'
|
348
|
+
yield @b if block_given?
|
349
|
+
self
|
350
|
+
end
|
351
|
+
def login(username, password=nil)
|
352
|
+
@b.append " -login:#{@b.format username}"
|
353
|
+
@b.append ",#{@b.format_password password}" unless password.nil?
|
354
|
+
yield @b if block_given?
|
355
|
+
self
|
356
|
+
end
|
357
|
+
end
|
358
|
+
class Checkin < CommandBase
|
359
|
+
def initialize(underlying_builder, item_spec=nil)
|
360
|
+
super underlying_builder
|
361
|
+
@b.append ' checkin'
|
362
|
+
@b.append " #{@b.format item_spec}" unless item_spec.nil?
|
363
|
+
end
|
364
|
+
def author(author_name)
|
365
|
+
@b.append " -author:#{@b.format author_name}"
|
366
|
+
yield @b if block_given?
|
367
|
+
self
|
368
|
+
end
|
369
|
+
def comment(comment)
|
370
|
+
@b.append " -comment:#{@b.format comment}"
|
371
|
+
yield @b if block_given?
|
372
|
+
self
|
373
|
+
end
|
374
|
+
def no_prompt
|
375
|
+
@b.append ' -noPrompt'
|
376
|
+
yield @b if block_given?
|
377
|
+
self
|
378
|
+
end
|
379
|
+
def notes(notes)
|
380
|
+
@b.append " -notes:#{@b.format notes, ';', '='}"
|
381
|
+
yield @b if block_given?
|
382
|
+
self
|
383
|
+
end
|
384
|
+
def override(reason)
|
385
|
+
@b.append " -override:#{@b.format reason}"
|
386
|
+
yield @b if block_given?
|
387
|
+
self
|
388
|
+
end
|
389
|
+
def recursive
|
390
|
+
@b.append ' -recursive'
|
391
|
+
yield @b if block_given?
|
392
|
+
self
|
393
|
+
end
|
394
|
+
def saved
|
395
|
+
@b.append ' -saved'
|
396
|
+
yield @b if block_given?
|
397
|
+
self
|
398
|
+
end
|
399
|
+
def validate
|
400
|
+
@b.append ' -validate'
|
401
|
+
yield @b if block_given?
|
402
|
+
self
|
403
|
+
end
|
404
|
+
def bypass
|
405
|
+
@b.append ' -bypass'
|
406
|
+
yield @b if block_given?
|
407
|
+
self
|
408
|
+
end
|
409
|
+
def login(username, password=nil)
|
410
|
+
@b.append " -login:#{@b.format username}"
|
411
|
+
@b.append ",#{@b.format_password password}" unless password.nil?
|
412
|
+
yield @b if block_given?
|
413
|
+
self
|
414
|
+
end
|
415
|
+
def force
|
416
|
+
@b.append ' -force'
|
417
|
+
yield @b if block_given?
|
418
|
+
self
|
419
|
+
end
|
420
|
+
end
|
421
|
+
class CheckinShelveset < CommandBase
|
422
|
+
def initialize(underlying_builder, shelveset_name, shelveset_owner=nil)
|
423
|
+
super underlying_builder
|
424
|
+
@b.append " checkin -shelveset:#{@b.format shelveset_name}"
|
425
|
+
@b.append ";#{@b.format shelveset_owner}" unless shelveset_owner.nil?
|
426
|
+
end
|
427
|
+
def bypass
|
428
|
+
@b.append ' -bypass'
|
429
|
+
yield @b if block_given?
|
430
|
+
self
|
431
|
+
end
|
432
|
+
def no_prompt
|
433
|
+
@b.append ' -noPrompt'
|
434
|
+
yield @b if block_given?
|
435
|
+
self
|
436
|
+
end
|
437
|
+
def login(username, password=nil)
|
438
|
+
@b.append " -login:#{@b.format username}"
|
439
|
+
@b.append ",#{@b.format_password password}" unless password.nil?
|
440
|
+
yield @b if block_given?
|
441
|
+
self
|
442
|
+
end
|
443
|
+
def collection(team_project_collection_url)
|
444
|
+
@b.append " -collection:#{@b.format team_project_collection_url}"
|
445
|
+
yield @b if block_given?
|
446
|
+
self
|
447
|
+
end
|
448
|
+
def author(author_name)
|
449
|
+
@b.append " -author:#{@b.format author_name}"
|
450
|
+
yield @b if block_given?
|
451
|
+
self
|
452
|
+
end
|
453
|
+
def force
|
454
|
+
@b.append ' -force'
|
455
|
+
yield @b if block_given?
|
456
|
+
self
|
457
|
+
end
|
458
|
+
end
|
459
|
+
class Checkout < CommandBase
|
460
|
+
def initialize(underlying_builder, item_spec=nil)
|
461
|
+
super underlying_builder
|
462
|
+
@b.append ' checkout'
|
463
|
+
@b.append " #{@b.format item_spec}" unless item_spec.nil?
|
464
|
+
end
|
465
|
+
def lock(lock_type)
|
466
|
+
@b.append " -lock:#{@b.format lock_type}"
|
467
|
+
yield @b if block_given?
|
468
|
+
self
|
469
|
+
end
|
470
|
+
def recursive
|
471
|
+
@b.append ' -recursive'
|
472
|
+
yield @b if block_given?
|
473
|
+
self
|
474
|
+
end
|
475
|
+
def type(encoding)
|
476
|
+
@b.append " -type:#{@b.format encoding}"
|
477
|
+
yield @b if block_given?
|
478
|
+
self
|
479
|
+
end
|
480
|
+
def login(username, password=nil)
|
481
|
+
@b.append " -login:#{@b.format username}"
|
482
|
+
@b.append ",#{@b.format_password password}" unless password.nil?
|
483
|
+
yield @b if block_given?
|
484
|
+
self
|
485
|
+
end
|
486
|
+
end
|
487
|
+
class Delete < CommandBase
|
488
|
+
def initialize(underlying_builder, item_spec)
|
489
|
+
super underlying_builder
|
490
|
+
@b.append " delete #{@b.format item_spec}"
|
491
|
+
end
|
492
|
+
def lock(lock_type)
|
493
|
+
@b.append " -lock:#{@b.format lock_type}"
|
494
|
+
yield @b if block_given?
|
495
|
+
self
|
496
|
+
end
|
497
|
+
def recursive
|
498
|
+
@b.append ' -recursive'
|
499
|
+
yield @b if block_given?
|
500
|
+
self
|
501
|
+
end
|
502
|
+
def login(username, password=nil)
|
503
|
+
@b.append " -login:#{@b.format username}"
|
504
|
+
@b.append ",#{@b.format_password password}" unless password.nil?
|
505
|
+
yield @b if block_given?
|
506
|
+
self
|
507
|
+
end
|
508
|
+
end
|
509
|
+
class Destroy < CommandBase
|
510
|
+
def initialize(underlying_builder, item_spec)
|
511
|
+
super underlying_builder
|
512
|
+
@b.append " destroy #{@b.format item_spec}"
|
513
|
+
end
|
514
|
+
def keep_history
|
515
|
+
@b.append ' -keepHistory'
|
516
|
+
yield @b if block_given?
|
517
|
+
self
|
518
|
+
end
|
519
|
+
def stop_at(version_spec)
|
520
|
+
@b.append " -stopAt:#{@b.format version_spec}"
|
521
|
+
yield @b if block_given?
|
522
|
+
self
|
523
|
+
end
|
524
|
+
def preview
|
525
|
+
@b.append ' -preview'
|
526
|
+
yield @b if block_given?
|
527
|
+
self
|
528
|
+
end
|
529
|
+
def start_cleanup
|
530
|
+
@b.append ' -startCleanup'
|
531
|
+
yield @b if block_given?
|
532
|
+
self
|
533
|
+
end
|
534
|
+
def no_prompt
|
535
|
+
@b.append ' -noPrompt'
|
536
|
+
yield @b if block_given?
|
537
|
+
self
|
538
|
+
end
|
539
|
+
def force
|
540
|
+
@b.append ' -force'
|
541
|
+
yield @b if block_given?
|
542
|
+
self
|
543
|
+
end
|
544
|
+
def silent
|
545
|
+
@b.append ' -silent'
|
546
|
+
yield @b if block_given?
|
547
|
+
self
|
548
|
+
end
|
549
|
+
def login(username, password=nil)
|
550
|
+
@b.append " -login:#{@b.format username}"
|
551
|
+
@b.append ",#{@b.format_password password}" unless password.nil?
|
552
|
+
yield @b if block_given?
|
553
|
+
self
|
554
|
+
end
|
555
|
+
def collection(team_project_collection_url)
|
556
|
+
@b.append " -collection:#{@b.format team_project_collection_url}"
|
557
|
+
yield @b if block_given?
|
558
|
+
self
|
559
|
+
end
|
560
|
+
end
|
561
|
+
class CompareWithCurrentWorkspaceVersion < CommandBase
|
562
|
+
def initialize(underlying_builder, item_spec)
|
563
|
+
super underlying_builder
|
564
|
+
@b.append " difference #{@b.format item_spec}"
|
565
|
+
end
|
566
|
+
def version(version_spec)
|
567
|
+
@b.append " -version:#{@b.format version_spec}"
|
568
|
+
yield @b if block_given?
|
569
|
+
self
|
570
|
+
end
|
571
|
+
def type(file_type)
|
572
|
+
@b.append " -type:#{@b.format file_type}"
|
573
|
+
yield @b if block_given?
|
574
|
+
self
|
575
|
+
end
|
576
|
+
def format(format)
|
577
|
+
@b.append " -format:#{@b.format format}"
|
578
|
+
yield @b if block_given?
|
579
|
+
self
|
580
|
+
end
|
581
|
+
def ignore_space
|
582
|
+
@b.append ' -ignoreSpace'
|
583
|
+
yield @b if block_given?
|
584
|
+
self
|
585
|
+
end
|
586
|
+
def ignore_eol
|
587
|
+
@b.append ' -ignoreEol'
|
588
|
+
yield @b if block_given?
|
589
|
+
self
|
590
|
+
end
|
591
|
+
def ignore_case
|
592
|
+
@b.append ' -ignoreCase'
|
593
|
+
yield @b if block_given?
|
594
|
+
self
|
595
|
+
end
|
596
|
+
def recursive
|
597
|
+
@b.append ' -recursive'
|
598
|
+
yield @b if block_given?
|
599
|
+
self
|
600
|
+
end
|
601
|
+
def options
|
602
|
+
@b.append ' -options'
|
603
|
+
yield @b if block_given?
|
604
|
+
self
|
605
|
+
end
|
606
|
+
def no_prompt
|
607
|
+
@b.append ' -noPrompt'
|
608
|
+
yield @b if block_given?
|
609
|
+
self
|
610
|
+
end
|
611
|
+
def login(username, password=nil)
|
612
|
+
@b.append " -login:#{@b.format username}"
|
613
|
+
@b.append ",#{@b.format_password password}" unless password.nil?
|
614
|
+
yield @b if block_given?
|
615
|
+
self
|
616
|
+
end
|
617
|
+
end
|
618
|
+
class Compare < CommandBase
|
619
|
+
def initialize(underlying_builder, item_spec, item_spec2)
|
620
|
+
super underlying_builder
|
621
|
+
@b.append " difference #{@b.format item_spec} #{@b.format item_spec2}"
|
622
|
+
end
|
623
|
+
def type(file_type)
|
624
|
+
@b.append " -type:#{@b.format file_type}"
|
625
|
+
yield @b if block_given?
|
626
|
+
self
|
627
|
+
end
|
628
|
+
def format(format)
|
629
|
+
@b.append " -format:#{@b.format format}"
|
630
|
+
yield @b if block_given?
|
631
|
+
self
|
632
|
+
end
|
633
|
+
def ignore_space
|
634
|
+
@b.append ' -ignoreSpace'
|
635
|
+
yield @b if block_given?
|
636
|
+
self
|
637
|
+
end
|
638
|
+
def ignore_eol
|
639
|
+
@b.append ' -ignoreEol'
|
640
|
+
yield @b if block_given?
|
641
|
+
self
|
642
|
+
end
|
643
|
+
def ignore_case
|
644
|
+
@b.append ' -ignoreCase'
|
645
|
+
yield @b if block_given?
|
646
|
+
self
|
647
|
+
end
|
648
|
+
def recursive
|
649
|
+
@b.append ' -recursive'
|
650
|
+
yield @b if block_given?
|
651
|
+
self
|
652
|
+
end
|
653
|
+
def options
|
654
|
+
@b.append ' -options'
|
655
|
+
yield @b if block_given?
|
656
|
+
self
|
657
|
+
end
|
658
|
+
def no_prompt
|
659
|
+
@b.append ' -noPrompt'
|
660
|
+
yield @b if block_given?
|
661
|
+
self
|
662
|
+
end
|
663
|
+
def login(username, password=nil)
|
664
|
+
@b.append " -login:#{@b.format username}"
|
665
|
+
@b.append ",#{@b.format_password password}" unless password.nil?
|
666
|
+
yield @b if block_given?
|
667
|
+
self
|
668
|
+
end
|
669
|
+
end
|
670
|
+
class CompareWithShelvesetVersion < CommandBase
|
671
|
+
def initialize(underlying_builder, shelveset_item_spec)
|
672
|
+
super underlying_builder
|
673
|
+
@b.append " difference #{@b.format shelveset_item_spec}"
|
674
|
+
end
|
675
|
+
def shelveset(shelveset_name, shelveset_owner=nil)
|
676
|
+
@b.append " -shelveset:#{@b.format shelveset_name}"
|
677
|
+
@b.append ";#{@b.format shelveset_owner}" unless shelveset_owner.nil?
|
678
|
+
yield @b if block_given?
|
679
|
+
self
|
680
|
+
end
|
681
|
+
def type(file_type)
|
682
|
+
@b.append " -type:#{@b.format file_type}"
|
683
|
+
yield @b if block_given?
|
684
|
+
self
|
685
|
+
end
|
686
|
+
def format(format)
|
687
|
+
@b.append " -format:#{@b.format format}"
|
688
|
+
yield @b if block_given?
|
689
|
+
self
|
690
|
+
end
|
691
|
+
def ignore_space
|
692
|
+
@b.append ' -ignoreSpace'
|
693
|
+
yield @b if block_given?
|
694
|
+
self
|
695
|
+
end
|
696
|
+
def ignore_eol
|
697
|
+
@b.append ' -ignoreEol'
|
698
|
+
yield @b if block_given?
|
699
|
+
self
|
700
|
+
end
|
701
|
+
def ignore_case
|
702
|
+
@b.append ' -ignoreCase'
|
703
|
+
yield @b if block_given?
|
704
|
+
self
|
705
|
+
end
|
706
|
+
def recursive
|
707
|
+
@b.append ' -recursive'
|
708
|
+
yield @b if block_given?
|
709
|
+
self
|
710
|
+
end
|
711
|
+
def options
|
712
|
+
@b.append ' -options'
|
713
|
+
yield @b if block_given?
|
714
|
+
self
|
715
|
+
end
|
716
|
+
def no_prompt
|
717
|
+
@b.append ' -noPrompt'
|
718
|
+
yield @b if block_given?
|
719
|
+
self
|
720
|
+
end
|
721
|
+
def login(username, password=nil)
|
722
|
+
@b.append " -login:#{@b.format username}"
|
723
|
+
@b.append ",#{@b.format_password password}" unless password.nil?
|
724
|
+
yield @b if block_given?
|
725
|
+
self
|
726
|
+
end
|
727
|
+
end
|
728
|
+
class Dir < CommandBase
|
729
|
+
def initialize(underlying_builder, item_spec)
|
730
|
+
super underlying_builder
|
731
|
+
@b.append " dir #{@b.format item_spec}"
|
732
|
+
end
|
733
|
+
def version(version_spec)
|
734
|
+
@b.append " -version:#{@b.format version_spec}"
|
735
|
+
yield @b if block_given?
|
736
|
+
self
|
737
|
+
end
|
738
|
+
def recursive
|
739
|
+
@b.append ' -recursive'
|
740
|
+
yield @b if block_given?
|
741
|
+
self
|
742
|
+
end
|
743
|
+
def folders
|
744
|
+
@b.append ' -folders'
|
745
|
+
yield @b if block_given?
|
746
|
+
self
|
747
|
+
end
|
748
|
+
def deleted
|
749
|
+
@b.append ' -deleted'
|
750
|
+
yield @b if block_given?
|
751
|
+
self
|
752
|
+
end
|
753
|
+
def login(username, password=nil)
|
754
|
+
@b.append " -login:#{@b.format username}"
|
755
|
+
@b.append ",#{@b.format_password password}" unless password.nil?
|
756
|
+
yield @b if block_given?
|
757
|
+
self
|
758
|
+
end
|
759
|
+
def collection(team_project_collection_url)
|
760
|
+
@b.append " -collection:#{@b.format team_project_collection_url}"
|
761
|
+
yield @b if block_given?
|
762
|
+
self
|
763
|
+
end
|
764
|
+
end
|
765
|
+
class Eula < CommandBase
|
766
|
+
def initialize(underlying_builder)
|
767
|
+
super underlying_builder
|
768
|
+
@b.append ' eula'
|
769
|
+
end
|
770
|
+
def accept
|
771
|
+
@b.append ' -accept'
|
772
|
+
yield @b if block_given?
|
773
|
+
self
|
774
|
+
end
|
775
|
+
end
|
776
|
+
class Get < CommandBase
|
777
|
+
def initialize(underlying_builder, item_spec=nil)
|
778
|
+
super underlying_builder
|
779
|
+
@b.append ' get'
|
780
|
+
@b.append " #{@b.format item_spec}" unless item_spec.nil?
|
781
|
+
end
|
782
|
+
def version(version_spec)
|
783
|
+
@b.append " -version:#{@b.format version_spec}"
|
784
|
+
yield @b if block_given?
|
785
|
+
self
|
786
|
+
end
|
787
|
+
def all
|
788
|
+
@b.append ' -all'
|
789
|
+
yield @b if block_given?
|
790
|
+
self
|
791
|
+
end
|
792
|
+
def overwrite
|
793
|
+
@b.append ' -overwrite'
|
794
|
+
yield @b if block_given?
|
795
|
+
self
|
796
|
+
end
|
797
|
+
def force
|
798
|
+
@b.append ' -force'
|
799
|
+
yield @b if block_given?
|
800
|
+
self
|
801
|
+
end
|
802
|
+
def preview
|
803
|
+
@b.append ' -preview'
|
804
|
+
yield @b if block_given?
|
805
|
+
self
|
806
|
+
end
|
807
|
+
def recursive
|
808
|
+
@b.append ' -recursive'
|
809
|
+
yield @b if block_given?
|
810
|
+
self
|
811
|
+
end
|
812
|
+
def remap
|
813
|
+
@b.append ' -remap'
|
814
|
+
yield @b if block_given?
|
815
|
+
self
|
816
|
+
end
|
817
|
+
def no_prompt
|
818
|
+
@b.append ' -noPrompt'
|
819
|
+
yield @b if block_given?
|
820
|
+
self
|
821
|
+
end
|
822
|
+
def login(username, password=nil)
|
823
|
+
@b.append " -login:#{@b.format username}"
|
824
|
+
@b.append ",#{@b.format_password password}" unless password.nil?
|
825
|
+
yield @b if block_given?
|
826
|
+
self
|
827
|
+
end
|
828
|
+
end
|
829
|
+
class Getcs < CommandBase
|
830
|
+
def initialize(underlying_builder)
|
831
|
+
super underlying_builder
|
832
|
+
@b.append ' getcs'
|
833
|
+
end
|
834
|
+
def changeset(changeset_number)
|
835
|
+
@b.append " -changeset:#{@b.format changeset_number}"
|
836
|
+
yield @b if block_given?
|
837
|
+
self
|
838
|
+
end
|
839
|
+
def latest
|
840
|
+
@b.append ' -latest'
|
841
|
+
yield @b if block_given?
|
842
|
+
self
|
843
|
+
end
|
844
|
+
end
|
845
|
+
class Help < CommandBase
|
846
|
+
def initialize(underlying_builder, command=nil)
|
847
|
+
super underlying_builder
|
848
|
+
@b.append ' help'
|
849
|
+
@b.append " #{@b.format command}" unless command.nil?
|
850
|
+
end
|
851
|
+
def listexitcodes
|
852
|
+
@b.append ' -listexitcodes]'
|
853
|
+
yield @b if block_given?
|
854
|
+
self
|
855
|
+
end
|
856
|
+
end
|
857
|
+
class History < CommandBase
|
858
|
+
def initialize(underlying_builder, item_spec)
|
859
|
+
super underlying_builder
|
860
|
+
@b.append " history #{@b.format item_spec}"
|
861
|
+
end
|
862
|
+
def version(version_spec)
|
863
|
+
@b.append " -version:#{@b.format version_spec}"
|
864
|
+
yield @b if block_given?
|
865
|
+
self
|
866
|
+
end
|
867
|
+
def stop_after(number)
|
868
|
+
@b.append " -stopAfter:#{@b.format number}"
|
869
|
+
yield @b if block_given?
|
870
|
+
self
|
871
|
+
end
|
872
|
+
def recursive
|
873
|
+
@b.append ' -recursive'
|
874
|
+
yield @b if block_given?
|
875
|
+
self
|
876
|
+
end
|
877
|
+
def user(user_name)
|
878
|
+
@b.append " -user:#{@b.format user_name}"
|
879
|
+
yield @b if block_given?
|
880
|
+
self
|
881
|
+
end
|
882
|
+
def format(format)
|
883
|
+
@b.append " -format:#{@b.format format}"
|
884
|
+
yield @b if block_given?
|
885
|
+
self
|
886
|
+
end
|
887
|
+
def slot_mode
|
888
|
+
@b.append ' -slotMode'
|
889
|
+
yield @b if block_given?
|
890
|
+
self
|
891
|
+
end
|
892
|
+
def item_mode
|
893
|
+
@b.append ' -itemMode'
|
894
|
+
yield @b if block_given?
|
895
|
+
self
|
896
|
+
end
|
897
|
+
def no_prompt
|
898
|
+
@b.append ' -noPrompt'
|
899
|
+
yield @b if block_given?
|
900
|
+
self
|
901
|
+
end
|
902
|
+
def login(username, password=nil)
|
903
|
+
@b.append " -login:#{@b.format username}"
|
904
|
+
@b.append ",#{@b.format_password password}" unless password.nil?
|
905
|
+
yield @b if block_given?
|
906
|
+
self
|
907
|
+
end
|
908
|
+
def sort(sort)
|
909
|
+
@b.append " -sort:#{@b.format sort}"
|
910
|
+
yield @b if block_given?
|
911
|
+
self
|
912
|
+
end
|
913
|
+
def collection(team_project_collection_url)
|
914
|
+
@b.append " -collection:#{@b.format team_project_collection_url}"
|
915
|
+
yield @b if block_given?
|
916
|
+
self
|
917
|
+
end
|
918
|
+
end
|
919
|
+
class Label < CommandBase
|
920
|
+
def initialize(underlying_builder, label_name, item_spec, scope=nil)
|
921
|
+
super underlying_builder
|
922
|
+
@b.append " label #{@b.format label_name}"
|
923
|
+
@b.append "@#{@b.format scope}" unless scope.nil?
|
924
|
+
@b.append " #{@b.format item_spec}"
|
925
|
+
end
|
926
|
+
def owner(owner_name)
|
927
|
+
@b.append " -owner:#{@b.format owner_name}"
|
928
|
+
yield @b if block_given?
|
929
|
+
self
|
930
|
+
end
|
931
|
+
def version(version_spec)
|
932
|
+
@b.append " -version:#{@b.format version_spec}"
|
933
|
+
yield @b if block_given?
|
934
|
+
self
|
935
|
+
end
|
936
|
+
def comment(comment)
|
937
|
+
@b.append " -comment:#{@b.format comment}"
|
938
|
+
yield @b if block_given?
|
939
|
+
self
|
940
|
+
end
|
941
|
+
def child(lock_type)
|
942
|
+
@b.append " -child:#{@b.format lock_type}"
|
943
|
+
yield @b if block_given?
|
944
|
+
self
|
945
|
+
end
|
946
|
+
def recursive
|
947
|
+
@b.append ' -recursive'
|
948
|
+
yield @b if block_given?
|
949
|
+
self
|
950
|
+
end
|
951
|
+
def login(username, password=nil)
|
952
|
+
@b.append " -login:#{@b.format username}"
|
953
|
+
@b.append ",#{@b.format_password password}" unless password.nil?
|
954
|
+
yield @b if block_given?
|
955
|
+
self
|
956
|
+
end
|
957
|
+
def collection(team_project_collection_url)
|
958
|
+
@b.append " -collection:#{@b.format team_project_collection_url}"
|
959
|
+
yield @b if block_given?
|
960
|
+
self
|
961
|
+
end
|
962
|
+
end
|
963
|
+
class DeleteLabel < CommandBase
|
964
|
+
def initialize(underlying_builder, label_name, item_spec, scope=nil)
|
965
|
+
super underlying_builder
|
966
|
+
@b.append " label -delete #{@b.format label_name}"
|
967
|
+
@b.append "@#{@b.format scope}" unless scope.nil?
|
968
|
+
@b.append " #{@b.format item_spec}"
|
969
|
+
end
|
970
|
+
def login(username, password=nil)
|
971
|
+
@b.append " -login:#{@b.format username}"
|
972
|
+
@b.append ",#{@b.format_password password}" unless password.nil?
|
973
|
+
yield @b if block_given?
|
974
|
+
self
|
975
|
+
end
|
976
|
+
def collection(team_project_collection_url)
|
977
|
+
@b.append " -collection:#{@b.format team_project_collection_url}"
|
978
|
+
yield @b if block_given?
|
979
|
+
self
|
980
|
+
end
|
981
|
+
end
|
982
|
+
class Labels < CommandBase
|
983
|
+
def initialize(underlying_builder, label_name=nil)
|
984
|
+
super underlying_builder
|
985
|
+
@b.append ' labels'
|
986
|
+
@b.append " #{@b.format label_name}" unless label_name.nil?
|
987
|
+
end
|
988
|
+
def owner(owner_name)
|
989
|
+
@b.append " -owner:#{@b.format owner_name}"
|
990
|
+
yield @b if block_given?
|
991
|
+
self
|
992
|
+
end
|
993
|
+
def format(format)
|
994
|
+
@b.append " -format:#{@b.format format}"
|
995
|
+
yield @b if block_given?
|
996
|
+
self
|
997
|
+
end
|
998
|
+
def collection(team_project_collection_url)
|
999
|
+
@b.append " -collection:#{@b.format team_project_collection_url}"
|
1000
|
+
yield @b if block_given?
|
1001
|
+
self
|
1002
|
+
end
|
1003
|
+
def login(username, password=nil)
|
1004
|
+
@b.append " -login:#{@b.format username}"
|
1005
|
+
@b.append ",#{@b.format_password password}" unless password.nil?
|
1006
|
+
yield @b if block_given?
|
1007
|
+
self
|
1008
|
+
end
|
1009
|
+
end
|
1010
|
+
class Lock < CommandBase
|
1011
|
+
def initialize(underlying_builder, item_spec)
|
1012
|
+
super underlying_builder
|
1013
|
+
@b.append " lock #{@b.format item_spec}"
|
1014
|
+
end
|
1015
|
+
def lock(lock_type)
|
1016
|
+
@b.append " -lock:#{@b.format lock_type}"
|
1017
|
+
yield @b if block_given?
|
1018
|
+
self
|
1019
|
+
end
|
1020
|
+
def workspace(workspace_name, workspace_owner=nil)
|
1021
|
+
@b.append " -workspace:#{@b.format workspace_name}"
|
1022
|
+
@b.append ";#{@b.format workspace_owner}" unless workspace_owner.nil?
|
1023
|
+
yield @b if block_given?
|
1024
|
+
self
|
1025
|
+
end
|
1026
|
+
def recursive
|
1027
|
+
@b.append ' -recursive'
|
1028
|
+
yield @b if block_given?
|
1029
|
+
self
|
1030
|
+
end
|
1031
|
+
def login(username, password=nil)
|
1032
|
+
@b.append " -login:#{@b.format username}"
|
1033
|
+
@b.append ",#{@b.format_password password}" unless password.nil?
|
1034
|
+
yield @b if block_given?
|
1035
|
+
self
|
1036
|
+
end
|
1037
|
+
def collection(team_project_collection_url)
|
1038
|
+
@b.append " -collection:#{@b.format team_project_collection_url}"
|
1039
|
+
yield @b if block_given?
|
1040
|
+
self
|
1041
|
+
end
|
1042
|
+
end
|
1043
|
+
class Merge < CommandBase
|
1044
|
+
def initialize(underlying_builder, source, destination)
|
1045
|
+
super underlying_builder
|
1046
|
+
@b.append " merge #{@b.format source} #{@b.format destination}"
|
1047
|
+
end
|
1048
|
+
def recursive
|
1049
|
+
@b.append ' -recursive'
|
1050
|
+
yield @b if block_given?
|
1051
|
+
self
|
1052
|
+
end
|
1053
|
+
def force
|
1054
|
+
@b.append ' -force'
|
1055
|
+
yield @b if block_given?
|
1056
|
+
self
|
1057
|
+
end
|
1058
|
+
def candidate
|
1059
|
+
@b.append ' -candidate'
|
1060
|
+
yield @b if block_given?
|
1061
|
+
self
|
1062
|
+
end
|
1063
|
+
def discard
|
1064
|
+
@b.append ' -discard'
|
1065
|
+
yield @b if block_given?
|
1066
|
+
self
|
1067
|
+
end
|
1068
|
+
def version(version_spec)
|
1069
|
+
@b.append " -version:#{@b.format version_spec}"
|
1070
|
+
yield @b if block_given?
|
1071
|
+
self
|
1072
|
+
end
|
1073
|
+
def lock(lock_type)
|
1074
|
+
@b.append " -lock:#{@b.format lock_type}"
|
1075
|
+
yield @b if block_given?
|
1076
|
+
self
|
1077
|
+
end
|
1078
|
+
def preview
|
1079
|
+
@b.append ' -preview'
|
1080
|
+
yield @b if block_given?
|
1081
|
+
self
|
1082
|
+
end
|
1083
|
+
def baseless
|
1084
|
+
@b.append ' -baseless'
|
1085
|
+
yield @b if block_given?
|
1086
|
+
self
|
1087
|
+
end
|
1088
|
+
def no_summary
|
1089
|
+
@b.append ' -noSummary'
|
1090
|
+
yield @b if block_given?
|
1091
|
+
self
|
1092
|
+
end
|
1093
|
+
def no_implicit_baseless
|
1094
|
+
@b.append ' -noImplicitBaseless'
|
1095
|
+
yield @b if block_given?
|
1096
|
+
self
|
1097
|
+
end
|
1098
|
+
def conservative
|
1099
|
+
@b.append ' -conservative'
|
1100
|
+
yield @b if block_given?
|
1101
|
+
self
|
1102
|
+
end
|
1103
|
+
def format(format)
|
1104
|
+
@b.append " -format:#{@b.format format}"
|
1105
|
+
yield @b if block_given?
|
1106
|
+
self
|
1107
|
+
end
|
1108
|
+
def no_prompt
|
1109
|
+
@b.append ' -noPrompt'
|
1110
|
+
yield @b if block_given?
|
1111
|
+
self
|
1112
|
+
end
|
1113
|
+
def login(username, password=nil)
|
1114
|
+
@b.append " -login:#{@b.format username}"
|
1115
|
+
@b.append ",#{@b.format_password password}" unless password.nil?
|
1116
|
+
yield @b if block_given?
|
1117
|
+
self
|
1118
|
+
end
|
1119
|
+
end
|
1120
|
+
class Merges < CommandBase
|
1121
|
+
def initialize(underlying_builder, destination, source=nil)
|
1122
|
+
super underlying_builder
|
1123
|
+
@b.append ' merges'
|
1124
|
+
@b.append " #{@b.format source}" unless source.nil?
|
1125
|
+
@b.append " #{@b.format destination}"
|
1126
|
+
end
|
1127
|
+
def recursive
|
1128
|
+
@b.append ' -recursive'
|
1129
|
+
yield @b if block_given?
|
1130
|
+
self
|
1131
|
+
end
|
1132
|
+
def extended
|
1133
|
+
@b.append ' -extended'
|
1134
|
+
yield @b if block_given?
|
1135
|
+
self
|
1136
|
+
end
|
1137
|
+
def format(format)
|
1138
|
+
@b.append " -format:#{@b.format format}"
|
1139
|
+
yield @b if block_given?
|
1140
|
+
self
|
1141
|
+
end
|
1142
|
+
def login(username, password=nil)
|
1143
|
+
@b.append " -login:#{@b.format username}"
|
1144
|
+
@b.append ",#{@b.format_password password}" unless password.nil?
|
1145
|
+
yield @b if block_given?
|
1146
|
+
self
|
1147
|
+
end
|
1148
|
+
def show_all
|
1149
|
+
@b.append ' -showAll'
|
1150
|
+
yield @b if block_given?
|
1151
|
+
self
|
1152
|
+
end
|
1153
|
+
def collection(team_project_collection_url)
|
1154
|
+
@b.append " -collection:#{@b.format team_project_collection_url}"
|
1155
|
+
yield @b if block_given?
|
1156
|
+
self
|
1157
|
+
end
|
1158
|
+
end
|
1159
|
+
class Print < CommandBase
|
1160
|
+
def initialize(underlying_builder, item_spec)
|
1161
|
+
super underlying_builder
|
1162
|
+
@b.append " print #{@b.format item_spec}"
|
1163
|
+
end
|
1164
|
+
def version(version_spec)
|
1165
|
+
@b.append " -version:#{@b.format version_spec}"
|
1166
|
+
yield @b if block_given?
|
1167
|
+
self
|
1168
|
+
end
|
1169
|
+
end
|
1170
|
+
class ProductKey < CommandBase
|
1171
|
+
def initialize(underlying_builder)
|
1172
|
+
super underlying_builder
|
1173
|
+
@b.append ' productKey'
|
1174
|
+
end
|
1175
|
+
def set(my_product_key)
|
1176
|
+
@b.append " -set:#{@b.format my_product_key}"
|
1177
|
+
yield @b if block_given?
|
1178
|
+
self
|
1179
|
+
end
|
1180
|
+
def trial
|
1181
|
+
@b.append ' -trial'
|
1182
|
+
yield @b if block_given?
|
1183
|
+
self
|
1184
|
+
end
|
1185
|
+
end
|
1186
|
+
class EditProfile < CommandBase
|
1187
|
+
def initialize(underlying_builder, existing_profile_name)
|
1188
|
+
super underlying_builder
|
1189
|
+
@b.append " profile -edit #{@b.format existing_profile_name}"
|
1190
|
+
end
|
1191
|
+
def string(property_name, value)
|
1192
|
+
@b.append " -string:#{@b.format property_name}=#{@b.format value}"
|
1193
|
+
yield @b if block_given?
|
1194
|
+
self
|
1195
|
+
end
|
1196
|
+
def boolean(property_name, value)
|
1197
|
+
@b.append " -boolean:#{@b.format property_name}=#{@b.format value}"
|
1198
|
+
yield @b if block_given?
|
1199
|
+
self
|
1200
|
+
end
|
1201
|
+
def number(property_name, value)
|
1202
|
+
@b.append " -number:#{@b.format property_name}=#{@b.format value}"
|
1203
|
+
yield @b if block_given?
|
1204
|
+
self
|
1205
|
+
end
|
1206
|
+
end
|
1207
|
+
class NewProfile < CommandBase
|
1208
|
+
def initialize(underlying_builder, new_profile_name)
|
1209
|
+
super underlying_builder
|
1210
|
+
@b.append " profile -new #{@b.format new_profile_name}"
|
1211
|
+
end
|
1212
|
+
def string(property_name, value)
|
1213
|
+
@b.append " -string:#{@b.format property_name}=#{@b.format value}"
|
1214
|
+
yield @b if block_given?
|
1215
|
+
self
|
1216
|
+
end
|
1217
|
+
def boolean(property_name, value)
|
1218
|
+
@b.append " -boolean:#{@b.format property_name}=#{@b.format value}"
|
1219
|
+
yield @b if block_given?
|
1220
|
+
self
|
1221
|
+
end
|
1222
|
+
def number(property_name, value)
|
1223
|
+
@b.append " -number:#{@b.format property_name}=#{@b.format value}"
|
1224
|
+
yield @b if block_given?
|
1225
|
+
self
|
1226
|
+
end
|
1227
|
+
end
|
1228
|
+
class Profiles < CommandBase
|
1229
|
+
def initialize(underlying_builder)
|
1230
|
+
super underlying_builder
|
1231
|
+
@b.append ' profiles'
|
1232
|
+
end
|
1233
|
+
def format(format)
|
1234
|
+
@b.append " -format:#{@b.format format}"
|
1235
|
+
yield @b if block_given?
|
1236
|
+
self
|
1237
|
+
end
|
1238
|
+
end
|
1239
|
+
class Properties < CommandBase
|
1240
|
+
def initialize(underlying_builder, item_spec)
|
1241
|
+
super underlying_builder
|
1242
|
+
@b.append " properties #{@b.format item_spec}"
|
1243
|
+
end
|
1244
|
+
def collection(team_project_collection_url)
|
1245
|
+
@b.append " -collection:#{@b.format team_project_collection_url}"
|
1246
|
+
yield @b if block_given?
|
1247
|
+
self
|
1248
|
+
end
|
1249
|
+
def recursive
|
1250
|
+
@b.append ' -recursive'
|
1251
|
+
yield @b if block_given?
|
1252
|
+
self
|
1253
|
+
end
|
1254
|
+
def login(username, password=nil)
|
1255
|
+
@b.append " -login:#{@b.format username}"
|
1256
|
+
@b.append ",#{@b.format_password password}" unless password.nil?
|
1257
|
+
yield @b if block_given?
|
1258
|
+
self
|
1259
|
+
end
|
1260
|
+
def version(version_spec)
|
1261
|
+
@b.append " -version:#{@b.format version_spec}"
|
1262
|
+
yield @b if block_given?
|
1263
|
+
self
|
1264
|
+
end
|
1265
|
+
def workspace(workspace_name, workspace_owner=nil)
|
1266
|
+
@b.append " -workspace:#{@b.format workspace_name}"
|
1267
|
+
@b.append ";#{@b.format workspace_owner}" unless workspace_owner.nil?
|
1268
|
+
yield @b if block_given?
|
1269
|
+
self
|
1270
|
+
end
|
1271
|
+
end
|
1272
|
+
class Reconcile < CommandBase
|
1273
|
+
def initialize(underlying_builder)
|
1274
|
+
super underlying_builder
|
1275
|
+
@b.append ' reconcile'
|
1276
|
+
end
|
1277
|
+
def team_project(team_project_name)
|
1278
|
+
@b.append " -teamProject:#{@b.format team_project_name}"
|
1279
|
+
yield @b if block_given?
|
1280
|
+
self
|
1281
|
+
end
|
1282
|
+
def workspace(workspace_name, workspace_owner=nil)
|
1283
|
+
@b.append " -workspace:#{@b.format workspace_name}"
|
1284
|
+
@b.append ";#{@b.format workspace_owner}" unless workspace_owner.nil?
|
1285
|
+
yield @b if block_given?
|
1286
|
+
self
|
1287
|
+
end
|
1288
|
+
end
|
1289
|
+
class ReconcileBuild < CommandBase
|
1290
|
+
def initialize(underlying_builder, build_name, item_spec=nil)
|
1291
|
+
super underlying_builder
|
1292
|
+
@b.append " reconcile -buildName:#{@b.format build_name}"
|
1293
|
+
@b.append " #{@b.format item_spec}" unless item_spec.nil?
|
1294
|
+
end
|
1295
|
+
def team_project(team_project_name)
|
1296
|
+
@b.append " -teamProject:#{@b.format team_project_name}"
|
1297
|
+
yield @b if block_given?
|
1298
|
+
self
|
1299
|
+
end
|
1300
|
+
def workspace(workspace_name, workspace_owner=nil)
|
1301
|
+
@b.append " -workspace:#{@b.format workspace_name}"
|
1302
|
+
@b.append ";#{@b.format workspace_owner}" unless workspace_owner.nil?
|
1303
|
+
yield @b if block_given?
|
1304
|
+
self
|
1305
|
+
end
|
1306
|
+
def recursive
|
1307
|
+
@b.append ' -recursive'
|
1308
|
+
yield @b if block_given?
|
1309
|
+
self
|
1310
|
+
end
|
1311
|
+
end
|
1312
|
+
class ReconcileChangeset < CommandBase
|
1313
|
+
def initialize(underlying_builder, changeset_name, item_spec=nil)
|
1314
|
+
super underlying_builder
|
1315
|
+
@b.append " reconcile -changeset:#{@b.format changeset_name}"
|
1316
|
+
@b.append " #{@b.format item_spec}" unless item_spec.nil?
|
1317
|
+
end
|
1318
|
+
def team_project(team_project_name)
|
1319
|
+
@b.append " -teamProject:#{@b.format team_project_name}"
|
1320
|
+
yield @b if block_given?
|
1321
|
+
self
|
1322
|
+
end
|
1323
|
+
def workspace(workspace_name, workspace_owner=nil)
|
1324
|
+
@b.append " -workspace:#{@b.format workspace_name}"
|
1325
|
+
@b.append ";#{@b.format workspace_owner}" unless workspace_owner.nil?
|
1326
|
+
yield @b if block_given?
|
1327
|
+
self
|
1328
|
+
end
|
1329
|
+
def recursive
|
1330
|
+
@b.append ' -recursive'
|
1331
|
+
yield @b if block_given?
|
1332
|
+
self
|
1333
|
+
end
|
1334
|
+
end
|
1335
|
+
class ReconcileForgetBuild < CommandBase
|
1336
|
+
def initialize(underlying_builder, build_name, item_spec=nil)
|
1337
|
+
super underlying_builder
|
1338
|
+
@b.append " reconcile -forgetBuild:#{@b.format build_name}"
|
1339
|
+
@b.append " #{@b.format item_spec}" unless item_spec.nil?
|
1340
|
+
end
|
1341
|
+
def team_project(team_project_name)
|
1342
|
+
@b.append " -teamProject:#{@b.format team_project_name}"
|
1343
|
+
yield @b if block_given?
|
1344
|
+
self
|
1345
|
+
end
|
1346
|
+
def workspace(workspace_name, workspace_owner=nil)
|
1347
|
+
@b.append " -workspace:#{@b.format workspace_name}"
|
1348
|
+
@b.append ";#{@b.format workspace_owner}" unless workspace_owner.nil?
|
1349
|
+
yield @b if block_given?
|
1350
|
+
self
|
1351
|
+
end
|
1352
|
+
def recursive
|
1353
|
+
@b.append ' -recursive'
|
1354
|
+
yield @b if block_given?
|
1355
|
+
self
|
1356
|
+
end
|
1357
|
+
end
|
1358
|
+
class Rename < CommandBase
|
1359
|
+
def initialize(underlying_builder, old_item, new_item)
|
1360
|
+
super underlying_builder
|
1361
|
+
@b.append " rename #{@b.format old_item} #{@b.format new_item}"
|
1362
|
+
end
|
1363
|
+
def lock(lock_type)
|
1364
|
+
@b.append " -lock:#{@b.format lock_type}"
|
1365
|
+
yield @b if block_given?
|
1366
|
+
self
|
1367
|
+
end
|
1368
|
+
def login(username, password=nil)
|
1369
|
+
@b.append " -login:#{@b.format username}"
|
1370
|
+
@b.append ",#{@b.format_password password}" unless password.nil?
|
1371
|
+
yield @b if block_given?
|
1372
|
+
self
|
1373
|
+
end
|
1374
|
+
end
|
1375
|
+
class Resolve < CommandBase
|
1376
|
+
def initialize(underlying_builder, item_spec=nil)
|
1377
|
+
super underlying_builder
|
1378
|
+
@b.append ' resolve'
|
1379
|
+
@b.append " #{@b.format item_spec}" unless item_spec.nil?
|
1380
|
+
end
|
1381
|
+
def auto(resolution)
|
1382
|
+
@b.append " -auto:#{@b.format resolution}"
|
1383
|
+
yield @b if block_given?
|
1384
|
+
self
|
1385
|
+
end
|
1386
|
+
def preview
|
1387
|
+
@b.append ' -preview'
|
1388
|
+
yield @b if block_given?
|
1389
|
+
self
|
1390
|
+
end
|
1391
|
+
def override_type(override_type)
|
1392
|
+
@b.append " -overrideType:#{@b.format override_type}"
|
1393
|
+
yield @b if block_given?
|
1394
|
+
self
|
1395
|
+
end
|
1396
|
+
def convert_to_type(convert_type)
|
1397
|
+
@b.append " -convertToType:#{@b.format convert_type}"
|
1398
|
+
yield @b if block_given?
|
1399
|
+
self
|
1400
|
+
end
|
1401
|
+
def recursive
|
1402
|
+
@b.append ' -recursive'
|
1403
|
+
yield @b if block_given?
|
1404
|
+
self
|
1405
|
+
end
|
1406
|
+
def new_name(path)
|
1407
|
+
@b.append " -newName:#{@b.format path}"
|
1408
|
+
yield @b if block_given?
|
1409
|
+
self
|
1410
|
+
end
|
1411
|
+
def no_prompt
|
1412
|
+
@b.append ' -noPrompt'
|
1413
|
+
yield @b if block_given?
|
1414
|
+
self
|
1415
|
+
end
|
1416
|
+
def login(username, password=nil)
|
1417
|
+
@b.append " -login:#{@b.format username}"
|
1418
|
+
@b.append ",#{@b.format_password password}" unless password.nil?
|
1419
|
+
yield @b if block_given?
|
1420
|
+
self
|
1421
|
+
end
|
1422
|
+
end
|
1423
|
+
class ReplaceShelveset < CommandBase
|
1424
|
+
def initialize(underlying_builder, shelveset_name)
|
1425
|
+
super underlying_builder
|
1426
|
+
@b.append " shelve -replace #{@b.format shelveset_name}"
|
1427
|
+
end
|
1428
|
+
def comment(comment)
|
1429
|
+
@b.append " -comment:#{@b.format comment}"
|
1430
|
+
yield @b if block_given?
|
1431
|
+
self
|
1432
|
+
end
|
1433
|
+
def validate
|
1434
|
+
@b.append ' -validate'
|
1435
|
+
yield @b if block_given?
|
1436
|
+
self
|
1437
|
+
end
|
1438
|
+
def no_prompt
|
1439
|
+
@b.append ' -noPrompt'
|
1440
|
+
yield @b if block_given?
|
1441
|
+
self
|
1442
|
+
end
|
1443
|
+
def login(username, password=nil)
|
1444
|
+
@b.append " -login:#{@b.format username}"
|
1445
|
+
@b.append ",#{@b.format_password password}" unless password.nil?
|
1446
|
+
yield @b if block_given?
|
1447
|
+
self
|
1448
|
+
end
|
1449
|
+
end
|
1450
|
+
class Shelve < CommandBase
|
1451
|
+
def initialize(underlying_builder, shelveset_name, item_spec)
|
1452
|
+
super underlying_builder
|
1453
|
+
@b.append " shelve #{@b.format shelveset_name} #{@b.format item_spec}"
|
1454
|
+
end
|
1455
|
+
def move
|
1456
|
+
@b.append ' -move'
|
1457
|
+
yield @b if block_given?
|
1458
|
+
self
|
1459
|
+
end
|
1460
|
+
def replace
|
1461
|
+
@b.append ' -replace'
|
1462
|
+
yield @b if block_given?
|
1463
|
+
self
|
1464
|
+
end
|
1465
|
+
def comment(comment)
|
1466
|
+
@b.append " -comment:#{@b.format comment}"
|
1467
|
+
yield @b if block_given?
|
1468
|
+
self
|
1469
|
+
end
|
1470
|
+
def recursive
|
1471
|
+
@b.append ' -recursive'
|
1472
|
+
yield @b if block_given?
|
1473
|
+
self
|
1474
|
+
end
|
1475
|
+
def validate
|
1476
|
+
@b.append ' -validate'
|
1477
|
+
yield @b if block_given?
|
1478
|
+
self
|
1479
|
+
end
|
1480
|
+
def no_prompt
|
1481
|
+
@b.append ' -noPrompt'
|
1482
|
+
yield @b if block_given?
|
1483
|
+
self
|
1484
|
+
end
|
1485
|
+
def login(username, password=nil)
|
1486
|
+
@b.append " -login:#{@b.format username}"
|
1487
|
+
@b.append ",#{@b.format_password password}" unless password.nil?
|
1488
|
+
yield @b if block_given?
|
1489
|
+
self
|
1490
|
+
end
|
1491
|
+
end
|
1492
|
+
class DeleteShelveset < CommandBase
|
1493
|
+
def initialize(underlying_builder, shelveset_name, shelveset_owner=nil)
|
1494
|
+
super underlying_builder
|
1495
|
+
@b.append " shelve -delete #{@b.format shelveset_name}"
|
1496
|
+
@b.append ";#{@b.format shelveset_owner}" unless shelveset_owner.nil?
|
1497
|
+
end
|
1498
|
+
def login(username, password=nil)
|
1499
|
+
@b.append " -login:#{@b.format username}"
|
1500
|
+
@b.append ",#{@b.format_password password}" unless password.nil?
|
1501
|
+
yield @b if block_given?
|
1502
|
+
self
|
1503
|
+
end
|
1504
|
+
def collection(team_project_collection_url)
|
1505
|
+
@b.append " -collection:#{@b.format team_project_collection_url}"
|
1506
|
+
yield @b if block_given?
|
1507
|
+
self
|
1508
|
+
end
|
1509
|
+
end
|
1510
|
+
class Shelvesets < CommandBase
|
1511
|
+
def initialize(underlying_builder, shelveset_name=nil)
|
1512
|
+
super underlying_builder
|
1513
|
+
@b.append ' shelvesets'
|
1514
|
+
@b.append " #{@b.format shelveset_name}" unless shelveset_name.nil?
|
1515
|
+
end
|
1516
|
+
def owner(owner_name)
|
1517
|
+
@b.append " -owner:#{@b.format owner_name}"
|
1518
|
+
yield @b if block_given?
|
1519
|
+
self
|
1520
|
+
end
|
1521
|
+
def format(format)
|
1522
|
+
@b.append " -format:#{@b.format format}"
|
1523
|
+
yield @b if block_given?
|
1524
|
+
self
|
1525
|
+
end
|
1526
|
+
def collection(team_project_collection_url)
|
1527
|
+
@b.append " -collection:#{@b.format team_project_collection_url}"
|
1528
|
+
yield @b if block_given?
|
1529
|
+
self
|
1530
|
+
end
|
1531
|
+
def login(username, password=nil)
|
1532
|
+
@b.append " -login:#{@b.format username}"
|
1533
|
+
@b.append ",#{@b.format_password password}" unless password.nil?
|
1534
|
+
yield @b if block_given?
|
1535
|
+
self
|
1536
|
+
end
|
1537
|
+
end
|
1538
|
+
class Status < CommandBase
|
1539
|
+
def initialize(underlying_builder, item_spec)
|
1540
|
+
super underlying_builder
|
1541
|
+
@b.append " status #{@b.format item_spec}"
|
1542
|
+
end
|
1543
|
+
def collection(team_project_collection_url)
|
1544
|
+
@b.append " -collection:#{@b.format team_project_collection_url}"
|
1545
|
+
yield @b if block_given?
|
1546
|
+
self
|
1547
|
+
end
|
1548
|
+
def login(username, password=nil)
|
1549
|
+
@b.append " -login:#{@b.format username}"
|
1550
|
+
@b.append ",#{@b.format_password password}" unless password.nil?
|
1551
|
+
yield @b if block_given?
|
1552
|
+
self
|
1553
|
+
end
|
1554
|
+
def workspace(workspace_name, workspace_owner=nil)
|
1555
|
+
@b.append " -workspace:#{@b.format workspace_name}"
|
1556
|
+
@b.append ";#{@b.format workspace_owner}" unless workspace_owner.nil?
|
1557
|
+
yield @b if block_given?
|
1558
|
+
self
|
1559
|
+
end
|
1560
|
+
def shelveset(shelveset_name, shelveset_owner=nil)
|
1561
|
+
@b.append " -shelveset:#{@b.format shelveset_name}"
|
1562
|
+
@b.append ";#{@b.format shelveset_owner}" unless shelveset_owner.nil?
|
1563
|
+
yield @b if block_given?
|
1564
|
+
self
|
1565
|
+
end
|
1566
|
+
def format(format)
|
1567
|
+
@b.append " -format:#{@b.format format}"
|
1568
|
+
yield @b if block_given?
|
1569
|
+
self
|
1570
|
+
end
|
1571
|
+
def recursive
|
1572
|
+
@b.append ' -recursive'
|
1573
|
+
yield @b if block_given?
|
1574
|
+
self
|
1575
|
+
end
|
1576
|
+
def user(user_name)
|
1577
|
+
@b.append " -user:#{@b.format user_name}"
|
1578
|
+
yield @b if block_given?
|
1579
|
+
self
|
1580
|
+
end
|
1581
|
+
end
|
1582
|
+
class Undelete < CommandBase
|
1583
|
+
def initialize(underlying_builder, item_spec, deletion_id=nil)
|
1584
|
+
super underlying_builder
|
1585
|
+
@b.append " undelete #{@b.format item_spec}"
|
1586
|
+
@b.append ";#{@b.format deletion_id}" unless deletion_id.nil?
|
1587
|
+
end
|
1588
|
+
def no_get
|
1589
|
+
@b.append ' -noGet'
|
1590
|
+
yield @b if block_given?
|
1591
|
+
self
|
1592
|
+
end
|
1593
|
+
def lock(lock_type)
|
1594
|
+
@b.append " -lock:#{@b.format lock_type}"
|
1595
|
+
yield @b if block_given?
|
1596
|
+
self
|
1597
|
+
end
|
1598
|
+
def recursive
|
1599
|
+
@b.append ' -recursive'
|
1600
|
+
yield @b if block_given?
|
1601
|
+
self
|
1602
|
+
end
|
1603
|
+
def login(username, password=nil)
|
1604
|
+
@b.append " -login:#{@b.format username}"
|
1605
|
+
@b.append ",#{@b.format_password password}" unless password.nil?
|
1606
|
+
yield @b if block_given?
|
1607
|
+
self
|
1608
|
+
end
|
1609
|
+
end
|
1610
|
+
class Undo < CommandBase
|
1611
|
+
def initialize(underlying_builder, item_spec)
|
1612
|
+
super underlying_builder
|
1613
|
+
@b.append " undo #{@b.format item_spec}"
|
1614
|
+
end
|
1615
|
+
def workspace(workspace_name, workspace_owner=nil)
|
1616
|
+
@b.append " -workspace:#{@b.format workspace_name}"
|
1617
|
+
@b.append ";#{@b.format workspace_owner}" unless workspace_owner.nil?
|
1618
|
+
yield @b if block_given?
|
1619
|
+
self
|
1620
|
+
end
|
1621
|
+
def recursive
|
1622
|
+
@b.append ' -recursive'
|
1623
|
+
yield @b if block_given?
|
1624
|
+
self
|
1625
|
+
end
|
1626
|
+
def no_prompt
|
1627
|
+
@b.append ' -noPrompt'
|
1628
|
+
yield @b if block_given?
|
1629
|
+
self
|
1630
|
+
end
|
1631
|
+
def login(username, password=nil)
|
1632
|
+
@b.append " -login:#{@b.format username}"
|
1633
|
+
@b.append ",#{@b.format_password password}" unless password.nil?
|
1634
|
+
yield @b if block_given?
|
1635
|
+
self
|
1636
|
+
end
|
1637
|
+
def collection(team_project_collection_url)
|
1638
|
+
@b.append " -collection:#{@b.format team_project_collection_url}"
|
1639
|
+
yield @b if block_given?
|
1640
|
+
self
|
1641
|
+
end
|
1642
|
+
end
|
1643
|
+
class Unlabel < CommandBase
|
1644
|
+
def initialize(underlying_builder, label_name, item_spec)
|
1645
|
+
super underlying_builder
|
1646
|
+
@b.append " unlabel #{@b.format label_name} #{@b.format item_spec}"
|
1647
|
+
end
|
1648
|
+
def collection(team_project_collection_url)
|
1649
|
+
@b.append " -collection:#{@b.format team_project_collection_url}"
|
1650
|
+
yield @b if block_given?
|
1651
|
+
self
|
1652
|
+
end
|
1653
|
+
def recursive
|
1654
|
+
@b.append ' -recursive'
|
1655
|
+
yield @b if block_given?
|
1656
|
+
self
|
1657
|
+
end
|
1658
|
+
def login(username, password=nil)
|
1659
|
+
@b.append " -login:#{@b.format username}"
|
1660
|
+
@b.append ",#{@b.format_password password}" unless password.nil?
|
1661
|
+
yield @b if block_given?
|
1662
|
+
self
|
1663
|
+
end
|
1664
|
+
end
|
1665
|
+
class Unshelve < CommandBase
|
1666
|
+
def initialize(underlying_builder, shelveset_name=nil, username=nil, item_spec=nil)
|
1667
|
+
super underlying_builder
|
1668
|
+
@b.append ' unshelve'
|
1669
|
+
@b.append " #{@b.format shelveset_name}" unless shelveset_name.nil?
|
1670
|
+
@b.append ";#{@b.format username}" unless username.nil?
|
1671
|
+
@b.append " #{@b.format item_spec}" unless item_spec.nil?
|
1672
|
+
end
|
1673
|
+
def move
|
1674
|
+
@b.append ' -move'
|
1675
|
+
yield @b if block_given?
|
1676
|
+
self
|
1677
|
+
end
|
1678
|
+
def recursive
|
1679
|
+
@b.append ' -recursive'
|
1680
|
+
yield @b if block_given?
|
1681
|
+
self
|
1682
|
+
end
|
1683
|
+
def no_prompt
|
1684
|
+
@b.append ' -noPrompt'
|
1685
|
+
yield @b if block_given?
|
1686
|
+
self
|
1687
|
+
end
|
1688
|
+
def login(username, password=nil)
|
1689
|
+
@b.append " -login:#{@b.format username}"
|
1690
|
+
@b.append ",#{@b.format_password password}" unless password.nil?
|
1691
|
+
yield @b if block_given?
|
1692
|
+
self
|
1693
|
+
end
|
1694
|
+
end
|
1695
|
+
class ShowLocalFolderMapping < CommandBase
|
1696
|
+
def initialize(underlying_builder, local_folder)
|
1697
|
+
super underlying_builder
|
1698
|
+
@b.append " workfold #{@b.format local_folder}"
|
1699
|
+
end
|
1700
|
+
def login(username, password=nil)
|
1701
|
+
@b.append " -login:#{@b.format username}"
|
1702
|
+
@b.append ",#{@b.format_password password}" unless password.nil?
|
1703
|
+
yield @b if block_given?
|
1704
|
+
self
|
1705
|
+
end
|
1706
|
+
end
|
1707
|
+
class ShowWorkspaceMappings < CommandBase
|
1708
|
+
def initialize(underlying_builder, workspace_name)
|
1709
|
+
super underlying_builder
|
1710
|
+
@b.append " workfold -workspace:#{@b.format workspace_name}"
|
1711
|
+
end
|
1712
|
+
def login(username, password=nil)
|
1713
|
+
@b.append " -login:#{@b.format username}"
|
1714
|
+
@b.append ",#{@b.format_password password}" unless password.nil?
|
1715
|
+
yield @b if block_given?
|
1716
|
+
self
|
1717
|
+
end
|
1718
|
+
end
|
1719
|
+
class ShowServerFolderMappings < CommandBase
|
1720
|
+
def initialize(underlying_builder, server_folder)
|
1721
|
+
super underlying_builder
|
1722
|
+
@b.append " workfold #{@b.format server_folder}"
|
1723
|
+
end
|
1724
|
+
def login(username, password=nil)
|
1725
|
+
@b.append " -login:#{@b.format username}"
|
1726
|
+
@b.append ",#{@b.format_password password}" unless password.nil?
|
1727
|
+
yield @b if block_given?
|
1728
|
+
self
|
1729
|
+
end
|
1730
|
+
def workspace(workspace_name, workspace_owner=nil)
|
1731
|
+
@b.append " -workspace:#{@b.format workspace_name}"
|
1732
|
+
@b.append ";#{@b.format workspace_owner}" unless workspace_owner.nil?
|
1733
|
+
yield @b if block_given?
|
1734
|
+
self
|
1735
|
+
end
|
1736
|
+
def collection(team_project_collection_url)
|
1737
|
+
@b.append " -collection:#{@b.format team_project_collection_url}"
|
1738
|
+
yield @b if block_given?
|
1739
|
+
self
|
1740
|
+
end
|
1741
|
+
end
|
1742
|
+
class MapFolder < CommandBase
|
1743
|
+
def initialize(underlying_builder, server_folder, local_folder)
|
1744
|
+
super underlying_builder
|
1745
|
+
@b.append " workfold -map #{@b.format server_folder} #{@b.format local_folder}"
|
1746
|
+
end
|
1747
|
+
def login(username, password=nil)
|
1748
|
+
@b.append " -login:#{@b.format username}"
|
1749
|
+
@b.append ",#{@b.format_password password}" unless password.nil?
|
1750
|
+
yield @b if block_given?
|
1751
|
+
self
|
1752
|
+
end
|
1753
|
+
def workspace(workspace_name, workspace_owner=nil)
|
1754
|
+
@b.append " -workspace:#{@b.format workspace_name}"
|
1755
|
+
@b.append ";#{@b.format workspace_owner}" unless workspace_owner.nil?
|
1756
|
+
yield @b if block_given?
|
1757
|
+
self
|
1758
|
+
end
|
1759
|
+
def collection(team_project_collection_url)
|
1760
|
+
@b.append " -collection:#{@b.format team_project_collection_url}"
|
1761
|
+
yield @b if block_given?
|
1762
|
+
self
|
1763
|
+
end
|
1764
|
+
end
|
1765
|
+
class UnmapFolder < CommandBase
|
1766
|
+
def initialize(underlying_builder)
|
1767
|
+
super underlying_builder
|
1768
|
+
@b.append ' workfold -unmap'
|
1769
|
+
end
|
1770
|
+
def login(username, password=nil)
|
1771
|
+
@b.append " -login:#{@b.format username}"
|
1772
|
+
@b.append ",#{@b.format_password password}" unless password.nil?
|
1773
|
+
yield @b if block_given?
|
1774
|
+
self
|
1775
|
+
end
|
1776
|
+
def workspace(workspace_name, workspace_owner=nil)
|
1777
|
+
@b.append " -workspace:#{@b.format workspace_name}"
|
1778
|
+
@b.append ";#{@b.format workspace_owner}" unless workspace_owner.nil?
|
1779
|
+
yield @b if block_given?
|
1780
|
+
self
|
1781
|
+
end
|
1782
|
+
def collection(team_project_collection_url)
|
1783
|
+
@b.append " -collection:#{@b.format team_project_collection_url}"
|
1784
|
+
yield @b if block_given?
|
1785
|
+
self
|
1786
|
+
end
|
1787
|
+
def recursive
|
1788
|
+
@b.append ' -recursive'
|
1789
|
+
yield @b if block_given?
|
1790
|
+
self
|
1791
|
+
end
|
1792
|
+
end
|
1793
|
+
class CloakFolder < CommandBase
|
1794
|
+
def initialize(underlying_builder, server_folder)
|
1795
|
+
super underlying_builder
|
1796
|
+
@b.append " workfold -cloak #{@b.format server_folder}"
|
1797
|
+
end
|
1798
|
+
def login(username, password=nil)
|
1799
|
+
@b.append " -login:#{@b.format username}"
|
1800
|
+
@b.append ",#{@b.format_password password}" unless password.nil?
|
1801
|
+
yield @b if block_given?
|
1802
|
+
self
|
1803
|
+
end
|
1804
|
+
def workspace(workspace_name, workspace_owner=nil)
|
1805
|
+
@b.append " -workspace:#{@b.format workspace_name}"
|
1806
|
+
@b.append ";#{@b.format workspace_owner}" unless workspace_owner.nil?
|
1807
|
+
yield @b if block_given?
|
1808
|
+
self
|
1809
|
+
end
|
1810
|
+
def collection(team_project_collection_url)
|
1811
|
+
@b.append " -collection:#{@b.format team_project_collection_url}"
|
1812
|
+
yield @b if block_given?
|
1813
|
+
self
|
1814
|
+
end
|
1815
|
+
end
|
1816
|
+
class DecloakFolder < CommandBase
|
1817
|
+
def initialize(underlying_builder, server_folder)
|
1818
|
+
super underlying_builder
|
1819
|
+
@b.append " workfold -decloak #{@b.format server_folder}"
|
1820
|
+
end
|
1821
|
+
def login(username, password=nil)
|
1822
|
+
@b.append " -login:#{@b.format username}"
|
1823
|
+
@b.append ",#{@b.format_password password}" unless password.nil?
|
1824
|
+
yield @b if block_given?
|
1825
|
+
self
|
1826
|
+
end
|
1827
|
+
def workspace(workspace_name, workspace_owner=nil)
|
1828
|
+
@b.append " -workspace:#{@b.format workspace_name}"
|
1829
|
+
@b.append ";#{@b.format workspace_owner}" unless workspace_owner.nil?
|
1830
|
+
yield @b if block_given?
|
1831
|
+
self
|
1832
|
+
end
|
1833
|
+
def collection(team_project_collection_url)
|
1834
|
+
@b.append " -collection:#{@b.format team_project_collection_url}"
|
1835
|
+
yield @b if block_given?
|
1836
|
+
self
|
1837
|
+
end
|
1838
|
+
end
|
1839
|
+
class CreateWorkspace < CommandBase
|
1840
|
+
def initialize(underlying_builder, workspace_name, workspace_owner=nil)
|
1841
|
+
super underlying_builder
|
1842
|
+
@b.append " workspace -new #{@b.format workspace_name}"
|
1843
|
+
@b.append ";#{@b.format workspace_owner}" unless workspace_owner.nil?
|
1844
|
+
end
|
1845
|
+
def no_prompt
|
1846
|
+
@b.append ' -noPrompt'
|
1847
|
+
yield @b if block_given?
|
1848
|
+
self
|
1849
|
+
end
|
1850
|
+
def template(workspace_name, workspace_owner=nil)
|
1851
|
+
@b.append " -template:#{@b.format workspace_name}"
|
1852
|
+
@b.append ";#{@b.format workspace_owner}" unless workspace_owner.nil?
|
1853
|
+
yield @b if block_given?
|
1854
|
+
self
|
1855
|
+
end
|
1856
|
+
def computer(computer_name)
|
1857
|
+
@b.append " -computer:#{@b.format computer_name}"
|
1858
|
+
yield @b if block_given?
|
1859
|
+
self
|
1860
|
+
end
|
1861
|
+
def comment(comment)
|
1862
|
+
@b.append " -comment:#{@b.format comment}"
|
1863
|
+
yield @b if block_given?
|
1864
|
+
self
|
1865
|
+
end
|
1866
|
+
def collection(team_project_collection_url)
|
1867
|
+
@b.append " -collection:#{@b.format team_project_collection_url}"
|
1868
|
+
yield @b if block_given?
|
1869
|
+
self
|
1870
|
+
end
|
1871
|
+
def permission(permission)
|
1872
|
+
@b.append " -permission:#{@b.format permission}"
|
1873
|
+
yield @b if block_given?
|
1874
|
+
self
|
1875
|
+
end
|
1876
|
+
def login(username, password=nil)
|
1877
|
+
@b.append " -login:#{@b.format username}"
|
1878
|
+
@b.append ",#{@b.format_password password}" unless password.nil?
|
1879
|
+
yield @b if block_given?
|
1880
|
+
self
|
1881
|
+
end
|
1882
|
+
end
|
1883
|
+
class DeleteWorkspace < CommandBase
|
1884
|
+
def initialize(underlying_builder, workspace_name, workspace_owner=nil)
|
1885
|
+
super underlying_builder
|
1886
|
+
@b.append " workspace -delete #{@b.format workspace_name}"
|
1887
|
+
@b.append ";#{@b.format workspace_owner}" unless workspace_owner.nil?
|
1888
|
+
end
|
1889
|
+
def collection(team_project_collection_url)
|
1890
|
+
@b.append " -collection:#{@b.format team_project_collection_url}"
|
1891
|
+
yield @b if block_given?
|
1892
|
+
self
|
1893
|
+
end
|
1894
|
+
def login(username, password=nil)
|
1895
|
+
@b.append " -login:#{@b.format username}"
|
1896
|
+
@b.append ",#{@b.format_password password}" unless password.nil?
|
1897
|
+
yield @b if block_given?
|
1898
|
+
self
|
1899
|
+
end
|
1900
|
+
end
|
1901
|
+
class ModifyWorkspace < CommandBase
|
1902
|
+
def initialize(underlying_builder, workspace_name=nil, workspace_owner=nil)
|
1903
|
+
super underlying_builder
|
1904
|
+
@b.append ' workspace '
|
1905
|
+
@b.append "#{@b.format workspace_name}" unless workspace_name.nil?
|
1906
|
+
@b.append ";#{@b.format workspace_owner}" unless workspace_owner.nil?
|
1907
|
+
end
|
1908
|
+
def computer(computer_name)
|
1909
|
+
@b.append " -computer:#{@b.format computer_name}"
|
1910
|
+
yield @b if block_given?
|
1911
|
+
self
|
1912
|
+
end
|
1913
|
+
def comment(comment)
|
1914
|
+
@b.append " -comment:#{@b.format comment}"
|
1915
|
+
yield @b if block_given?
|
1916
|
+
self
|
1917
|
+
end
|
1918
|
+
def collection(team_project_collection_url)
|
1919
|
+
@b.append " -collection:#{@b.format team_project_collection_url}"
|
1920
|
+
yield @b if block_given?
|
1921
|
+
self
|
1922
|
+
end
|
1923
|
+
def permission(permission)
|
1924
|
+
@b.append " -permission:#{@b.format permission}"
|
1925
|
+
yield @b if block_given?
|
1926
|
+
self
|
1927
|
+
end
|
1928
|
+
def login(username, password=nil)
|
1929
|
+
@b.append " -login:#{@b.format username}"
|
1930
|
+
@b.append ",#{@b.format_password password}" unless password.nil?
|
1931
|
+
yield @b if block_given?
|
1932
|
+
self
|
1933
|
+
end
|
1934
|
+
def new_name(workspace_name)
|
1935
|
+
@b.append " -newName:#{@b.format workspace_name}"
|
1936
|
+
yield @b if block_given?
|
1937
|
+
self
|
1938
|
+
end
|
1939
|
+
def new_owner(owner_name)
|
1940
|
+
@b.append " -newOwner:#{@b.format owner_name}"
|
1941
|
+
yield @b if block_given?
|
1942
|
+
self
|
1943
|
+
end
|
1944
|
+
end
|
1945
|
+
class Workspaces < CommandBase
|
1946
|
+
def initialize(underlying_builder, workspace_name=nil)
|
1947
|
+
super underlying_builder
|
1948
|
+
@b.append ' workspaces'
|
1949
|
+
@b.append " #{@b.format workspace_name}" unless workspace_name.nil?
|
1950
|
+
end
|
1951
|
+
def owner(owner_name)
|
1952
|
+
@b.append " -owner:#{@b.format owner_name}"
|
1953
|
+
yield @b if block_given?
|
1954
|
+
self
|
1955
|
+
end
|
1956
|
+
def computer(computer_name)
|
1957
|
+
@b.append " -computer:#{@b.format computer_name}"
|
1958
|
+
yield @b if block_given?
|
1959
|
+
self
|
1960
|
+
end
|
1961
|
+
def collection(team_project_collection_url)
|
1962
|
+
@b.append " -collection:#{@b.format team_project_collection_url}"
|
1963
|
+
yield @b if block_given?
|
1964
|
+
self
|
1965
|
+
end
|
1966
|
+
def format(format)
|
1967
|
+
@b.append " -format:#{@b.format format}"
|
1968
|
+
yield @b if block_given?
|
1969
|
+
self
|
1970
|
+
end
|
1971
|
+
def update_user_name(old_user_name)
|
1972
|
+
@b.append " -updateUserName:#{@b.format old_user_name}"
|
1973
|
+
yield @b if block_given?
|
1974
|
+
self
|
1975
|
+
end
|
1976
|
+
def update_computer_name(old_computer_name)
|
1977
|
+
@b.append " -updateComputerName:#{@b.format old_computer_name}"
|
1978
|
+
yield @b if block_given?
|
1979
|
+
self
|
1980
|
+
end
|
1981
|
+
def login(username, password=nil)
|
1982
|
+
@b.append " -login:#{@b.format username}"
|
1983
|
+
@b.append ",#{@b.format_password password}" unless password.nil?
|
1984
|
+
yield @b if block_given?
|
1985
|
+
self
|
1986
|
+
end
|
1987
|
+
end
|
1988
|
+
class RemoveWorkspace < CommandBase
|
1989
|
+
def initialize(underlying_builder, workspace_name)
|
1990
|
+
super underlying_builder
|
1991
|
+
@b.append " workspaces -remove:#{@b.format workspace_name, ','}"
|
1992
|
+
end
|
1993
|
+
def collection(team_project_collection_url)
|
1994
|
+
@b.append " -collection:#{@b.format team_project_collection_url}"
|
1995
|
+
yield @b if block_given?
|
1996
|
+
self
|
1997
|
+
end
|
1998
|
+
end
|
1999
|
+
|
2000
|
+
end
|
2001
|
+
end
|
2002
|
+
end
|