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