fluent_command_builder 0.1.26 → 0.1.27
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.rb +3 -0
- data/lib/fluent_command_builder/command_builders/aspnet_compiler_20.rb +8 -8
- data/lib/fluent_command_builder/command_builders/aspnet_compiler_35.rb +8 -8
- data/lib/fluent_command_builder/command_builders/aspnet_compiler_40.rb +8 -8
- data/lib/fluent_command_builder/command_builders/bundle_11.rb +32 -32
- data/lib/fluent_command_builder/command_builders/cucumber_11.rb +15 -15
- data/lib/fluent_command_builder/command_builders/dotcover_10.rb +70 -0
- data/lib/fluent_command_builder/command_builders/dotcover_11.rb +128 -81
- data/lib/fluent_command_builder/command_builders/dotcover_12.rb +294 -0
- data/lib/fluent_command_builder/command_builders/installutil_11.rb +5 -5
- data/lib/fluent_command_builder/command_builders/installutil_20.rb +6 -6
- data/lib/fluent_command_builder/command_builders/installutil_35.rb +6 -6
- data/lib/fluent_command_builder/command_builders/installutil_40.rb +7 -7
- data/lib/fluent_command_builder/command_builders/msbuild_20.rb +10 -10
- data/lib/fluent_command_builder/command_builders/msbuild_30.rb +10 -10
- data/lib/fluent_command_builder/command_builders/msbuild_35.rb +16 -16
- data/lib/fluent_command_builder/command_builders/msbuild_40.rb +17 -17
- data/lib/fluent_command_builder/command_builders/msdeploy_40.rb +25 -25
- data/lib/fluent_command_builder/command_builders/mstest_2005.rb +14 -14
- data/lib/fluent_command_builder/command_builders/mstest_2008.rb +14 -14
- data/lib/fluent_command_builder/command_builders/mstest_2010.rb +16 -16
- data/lib/fluent_command_builder/command_builders/netsh_2008.rb +73 -73
- data/lib/fluent_command_builder/command_builders/nunit_25.rb +48 -33
- data/lib/fluent_command_builder/command_builders/nunit_26.rb +183 -0
- data/lib/fluent_command_builder/command_builders/rake_09.rb +13 -13
- data/lib/fluent_command_builder/command_builders/sevenzip_92.rb +69 -69
- data/lib/fluent_command_builder/command_builders/simian_23.rb +24 -24
- data/lib/fluent_command_builder/command_builders/tf_2010.rb +306 -306
- data/lib/fluent_command_builder/command_builders/tf_tee_2010.rb +282 -282
- metadata +5 -2
@@ -3,46 +3,46 @@ require File.expand_path(File.dirname(__FILE__) + '/../command_builder')
|
|
3
3
|
|
4
4
|
module FluentCommandBuilder
|
5
5
|
module Tf
|
6
|
-
module
|
6
|
+
module TEE2010
|
7
7
|
COMMAND_NAME = 'tf'
|
8
8
|
class Tf < CommandBase
|
9
|
-
def initialize
|
9
|
+
def initialize(builder)
|
10
10
|
super builder
|
11
11
|
end
|
12
|
-
def add
|
12
|
+
def add(item_spec)
|
13
13
|
Add.new @builder, item_spec
|
14
14
|
end
|
15
|
-
def branch
|
15
|
+
def branch(old_item, new_item)
|
16
16
|
Branch.new @builder, old_item, new_item
|
17
17
|
end
|
18
|
-
def branches
|
18
|
+
def branches(item_spec)
|
19
19
|
Branches.new @builder, item_spec
|
20
20
|
end
|
21
|
-
def changeset
|
21
|
+
def changeset(changeset_number=nil)
|
22
22
|
Changeset.new @builder, changeset_number
|
23
23
|
end
|
24
|
-
def checkin
|
24
|
+
def checkin(item_spec=nil)
|
25
25
|
Checkin.new @builder, item_spec
|
26
26
|
end
|
27
|
-
def checkin_shelveset
|
27
|
+
def checkin_shelveset(shelveset_name, shelveset_owner=nil)
|
28
28
|
CheckinShelveset.new @builder, shelveset_name, shelveset_owner
|
29
29
|
end
|
30
|
-
def checkout
|
30
|
+
def checkout(item_spec=nil)
|
31
31
|
Checkout.new @builder, item_spec
|
32
32
|
end
|
33
|
-
def delete
|
33
|
+
def delete(item_spec)
|
34
34
|
Delete.new @builder, item_spec
|
35
35
|
end
|
36
|
-
def destroy
|
36
|
+
def destroy(item_spec)
|
37
37
|
Destroy.new @builder, item_spec
|
38
38
|
end
|
39
|
-
def compare_with_current_workspace_version
|
39
|
+
def compare_with_current_workspace_version(item_spec)
|
40
40
|
CompareWithCurrentWorkspaceVersion.new @builder, item_spec
|
41
41
|
end
|
42
|
-
def compare
|
42
|
+
def compare(item_spec, item_spec2)
|
43
43
|
Compare.new @builder, item_spec, item_spec2
|
44
44
|
end
|
45
|
-
def compare_with_shelveset_version
|
45
|
+
def compare_with_shelveset_version(shelveset_item_spec)
|
46
46
|
CompareWithShelvesetVersion.new @builder, shelveset_item_spec
|
47
47
|
end
|
48
48
|
def configure_compare_tool
|
@@ -50,160 +50,160 @@ module FluentCommandBuilder
|
|
50
50
|
yield @builder if block_given?
|
51
51
|
self
|
52
52
|
end
|
53
|
-
def dir
|
53
|
+
def dir(item_spec)
|
54
54
|
Dir.new @builder, item_spec
|
55
55
|
end
|
56
56
|
def eula
|
57
57
|
Eula.new @builder
|
58
58
|
end
|
59
|
-
def get
|
59
|
+
def get(item_spec=nil)
|
60
60
|
Get.new @builder, item_spec
|
61
61
|
end
|
62
62
|
def getcs
|
63
63
|
Getcs.new @builder
|
64
64
|
end
|
65
|
-
def history
|
65
|
+
def history(item_spec)
|
66
66
|
History.new @builder, item_spec
|
67
67
|
end
|
68
|
-
def label
|
68
|
+
def label(label_name, item_spec, scope=nil)
|
69
69
|
Label.new @builder, label_name, item_spec, scope
|
70
70
|
end
|
71
|
-
def delete_label
|
71
|
+
def delete_label(label_name, item_spec, scope=nil)
|
72
72
|
DeleteLabel.new @builder, label_name, item_spec, scope
|
73
73
|
end
|
74
|
-
def labels
|
74
|
+
def labels(label_name=nil)
|
75
75
|
Labels.new @builder, label_name
|
76
76
|
end
|
77
|
-
def lock
|
77
|
+
def lock(item_spec)
|
78
78
|
Lock.new @builder, item_spec
|
79
79
|
end
|
80
|
-
def merge
|
80
|
+
def merge(source, destination)
|
81
81
|
Merge.new @builder, source, destination
|
82
82
|
end
|
83
|
-
def merges
|
83
|
+
def merges(destination, source=nil)
|
84
84
|
Merges.new @builder, destination, source
|
85
85
|
end
|
86
|
-
def print
|
86
|
+
def print(item_spec)
|
87
87
|
Print.new @builder, item_spec
|
88
88
|
end
|
89
89
|
def product_key
|
90
90
|
ProductKey.new @builder
|
91
91
|
end
|
92
|
-
def copy_profile
|
92
|
+
def copy_profile(existing_profile_name, new_profile_name)
|
93
93
|
@builder.append " profile -copy #{@builder.format existing_profile_name} #{@builder.format new_profile_name}"
|
94
94
|
yield @builder if block_given?
|
95
95
|
self
|
96
96
|
end
|
97
|
-
def delete_profile
|
97
|
+
def delete_profile(profile_name)
|
98
98
|
@builder.append " profile -delete #{@builder.format profile_name}"
|
99
99
|
yield @builder if block_given?
|
100
100
|
self
|
101
101
|
end
|
102
|
-
def edit_profile
|
102
|
+
def edit_profile(existing_profile_name)
|
103
103
|
EditProfile.new @builder, existing_profile_name
|
104
104
|
end
|
105
|
-
def new_profile
|
105
|
+
def new_profile(new_profile_name)
|
106
106
|
NewProfile.new @builder, new_profile_name
|
107
107
|
end
|
108
108
|
def profiles
|
109
109
|
Profiles.new @builder
|
110
110
|
end
|
111
|
-
def properties
|
111
|
+
def properties(item_spec)
|
112
112
|
Properties.new @builder, item_spec
|
113
113
|
end
|
114
114
|
def reconcile
|
115
115
|
Reconcile.new @builder
|
116
116
|
end
|
117
|
-
def reconcile_build
|
117
|
+
def reconcile_build(build_name, item_spec=nil)
|
118
118
|
ReconcileBuild.new @builder, build_name, item_spec
|
119
119
|
end
|
120
|
-
def reconcile_changeset
|
120
|
+
def reconcile_changeset(changeset_name, item_spec=nil)
|
121
121
|
ReconcileChangeset.new @builder, changeset_name, item_spec
|
122
122
|
end
|
123
|
-
def reconcile_forget_build
|
123
|
+
def reconcile_forget_build(build_name, item_spec=nil)
|
124
124
|
ReconcileForgetBuild.new @builder, build_name, item_spec
|
125
125
|
end
|
126
|
-
def rename
|
126
|
+
def rename(old_item, new_item)
|
127
127
|
Rename.new @builder, old_item, new_item
|
128
128
|
end
|
129
|
-
def resolve
|
129
|
+
def resolve(item_spec=nil)
|
130
130
|
Resolve.new @builder, item_spec
|
131
131
|
end
|
132
|
-
def replace_shelveset
|
132
|
+
def replace_shelveset(shelveset_name)
|
133
133
|
ReplaceShelveset.new @builder, shelveset_name
|
134
134
|
end
|
135
|
-
def shelve
|
135
|
+
def shelve(shelveset_name, item_spec)
|
136
136
|
Shelve.new @builder, shelveset_name, item_spec
|
137
137
|
end
|
138
|
-
def delete_shelveset
|
138
|
+
def delete_shelveset(shelveset_name, shelveset_owner=nil)
|
139
139
|
DeleteShelveset.new @builder, shelveset_name, shelveset_owner
|
140
140
|
end
|
141
|
-
def shelvesets
|
141
|
+
def shelvesets(shelveset_name=nil)
|
142
142
|
Shelvesets.new @builder, shelveset_name
|
143
143
|
end
|
144
|
-
def status
|
144
|
+
def status(item_spec)
|
145
145
|
Status.new @builder, item_spec
|
146
146
|
end
|
147
|
-
def undelete
|
147
|
+
def undelete(item_spec, deletion_id=nil)
|
148
148
|
Undelete.new @builder, item_spec, deletion_id
|
149
149
|
end
|
150
|
-
def undo
|
150
|
+
def undo(item_spec)
|
151
151
|
Undo.new @builder, item_spec
|
152
152
|
end
|
153
|
-
def unlabel
|
153
|
+
def unlabel(label_name, item_spec)
|
154
154
|
Unlabel.new @builder, label_name, item_spec
|
155
155
|
end
|
156
|
-
def unshelve
|
156
|
+
def unshelve(shelveset_name=nil, username=nil, item_spec=nil)
|
157
157
|
Unshelve.new @builder, shelveset_name, username, item_spec
|
158
158
|
end
|
159
|
-
def show_local_folder_mapping
|
159
|
+
def show_local_folder_mapping(local_folder)
|
160
160
|
ShowLocalFolderMapping.new @builder, local_folder
|
161
161
|
end
|
162
|
-
def show_workspace_mappings
|
162
|
+
def show_workspace_mappings(workspace_name)
|
163
163
|
ShowWorkspaceMappings.new @builder, workspace_name
|
164
164
|
end
|
165
|
-
def show_server_folder_mappings
|
165
|
+
def show_server_folder_mappings(server_folder)
|
166
166
|
ShowServerFolderMappings.new @builder, server_folder
|
167
167
|
end
|
168
|
-
def map_folder
|
168
|
+
def map_folder(server_folder, local_folder)
|
169
169
|
MapFolder.new @builder, server_folder, local_folder
|
170
170
|
end
|
171
171
|
def unmap_folder
|
172
172
|
UnmapFolder.new @builder
|
173
173
|
end
|
174
|
-
def cloak_folder
|
174
|
+
def cloak_folder(server_folder)
|
175
175
|
CloakFolder.new @builder, server_folder
|
176
176
|
end
|
177
|
-
def decloak_folder
|
177
|
+
def decloak_folder(server_folder)
|
178
178
|
DecloakFolder.new @builder, server_folder
|
179
179
|
end
|
180
|
-
def create_workspace
|
180
|
+
def create_workspace(workspace_name, workspace_owner=nil)
|
181
181
|
CreateWorkspace.new @builder, workspace_name, workspace_owner
|
182
182
|
end
|
183
|
-
def delete_workspace
|
183
|
+
def delete_workspace(workspace_name, workspace_owner=nil)
|
184
184
|
DeleteWorkspace.new @builder, workspace_name, workspace_owner
|
185
185
|
end
|
186
|
-
def modify_workspace
|
186
|
+
def modify_workspace(workspace_name=nil, workspace_owner=nil)
|
187
187
|
ModifyWorkspace.new @builder, workspace_name, workspace_owner
|
188
188
|
end
|
189
|
-
def workspaces
|
189
|
+
def workspaces(workspace_name=nil)
|
190
190
|
Workspaces.new @builder, workspace_name
|
191
191
|
end
|
192
|
-
def remove_workspace
|
192
|
+
def remove_workspace(workspace_name)
|
193
193
|
RemoveWorkspace.new @builder, workspace_name
|
194
194
|
end
|
195
195
|
end
|
196
196
|
class Add < CommandBase
|
197
|
-
def initialize
|
197
|
+
def initialize(builder, item_spec)
|
198
198
|
super builder
|
199
199
|
@builder.append " add #{@builder.format item_spec}"
|
200
200
|
end
|
201
|
-
def lock
|
201
|
+
def lock(lock_type)
|
202
202
|
@builder.append " -lock:#{@builder.format lock_type}"
|
203
203
|
yield @builder if block_given?
|
204
204
|
self
|
205
205
|
end
|
206
|
-
def type
|
206
|
+
def type(file_type)
|
207
207
|
@builder.append " -type:#{@builder.format file_type}"
|
208
208
|
yield @builder if block_given?
|
209
209
|
self
|
@@ -218,7 +218,7 @@ module FluentCommandBuilder
|
|
218
218
|
yield @builder if block_given?
|
219
219
|
self
|
220
220
|
end
|
221
|
-
def login
|
221
|
+
def login(username, password=nil)
|
222
222
|
@builder.append " -login:#{@builder.format username}"
|
223
223
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
224
224
|
yield @builder if block_given?
|
@@ -226,11 +226,11 @@ module FluentCommandBuilder
|
|
226
226
|
end
|
227
227
|
end
|
228
228
|
class Branch < CommandBase
|
229
|
-
def initialize
|
229
|
+
def initialize(builder, old_item, new_item)
|
230
230
|
super builder
|
231
231
|
@builder.append " branch #{@builder.format old_item} #{@builder.format new_item}"
|
232
232
|
end
|
233
|
-
def version
|
233
|
+
def version(version_spec)
|
234
234
|
@builder.append " -version:#{@builder.format version_spec}"
|
235
235
|
yield @builder if block_given?
|
236
236
|
self
|
@@ -240,7 +240,7 @@ module FluentCommandBuilder
|
|
240
240
|
yield @builder if block_given?
|
241
241
|
self
|
242
242
|
end
|
243
|
-
def lock
|
243
|
+
def lock(lock_type)
|
244
244
|
@builder.append " -lock:#{@builder.format lock_type}"
|
245
245
|
yield @builder if block_given?
|
246
246
|
self
|
@@ -260,17 +260,17 @@ module FluentCommandBuilder
|
|
260
260
|
yield @builder if block_given?
|
261
261
|
self
|
262
262
|
end
|
263
|
-
def comment
|
263
|
+
def comment(comment)
|
264
264
|
@builder.append " -comment:#{@builder.format comment}"
|
265
265
|
yield @builder if block_given?
|
266
266
|
self
|
267
267
|
end
|
268
|
-
def author
|
268
|
+
def author(author_name)
|
269
269
|
@builder.append " -author:#{@builder.format author_name}"
|
270
270
|
yield @builder if block_given?
|
271
271
|
self
|
272
272
|
end
|
273
|
-
def login
|
273
|
+
def login(username, password=nil)
|
274
274
|
@builder.append " -login:#{@builder.format username}"
|
275
275
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
276
276
|
yield @builder if block_given?
|
@@ -278,21 +278,21 @@ module FluentCommandBuilder
|
|
278
278
|
end
|
279
279
|
end
|
280
280
|
class Branches < CommandBase
|
281
|
-
def initialize
|
281
|
+
def initialize(builder, item_spec)
|
282
282
|
super builder
|
283
283
|
@builder.append " branches #{@builder.format item_spec}"
|
284
284
|
end
|
285
|
-
def version
|
285
|
+
def version(version_spec)
|
286
286
|
@builder.append " -version:#{@builder.format version_spec}"
|
287
287
|
yield @builder if block_given?
|
288
288
|
self
|
289
289
|
end
|
290
|
-
def collection
|
290
|
+
def collection(team_project_collection_url)
|
291
291
|
@builder.append " -collection:#{@builder.format team_project_collection_url}"
|
292
292
|
yield @builder if block_given?
|
293
293
|
self
|
294
294
|
end
|
295
|
-
def login
|
295
|
+
def login(username, password=nil)
|
296
296
|
@builder.append " -login:#{@builder.format username}"
|
297
297
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
298
298
|
yield @builder if block_given?
|
@@ -300,17 +300,17 @@ module FluentCommandBuilder
|
|
300
300
|
end
|
301
301
|
end
|
302
302
|
class Changeset < CommandBase
|
303
|
-
def initialize
|
303
|
+
def initialize(builder, changeset_number=nil)
|
304
304
|
super builder
|
305
305
|
@builder.append ' changeset'
|
306
306
|
@builder.append " #{@builder.format changeset_number}" unless changeset_number.nil?
|
307
307
|
end
|
308
|
-
def comment
|
308
|
+
def comment(comment)
|
309
309
|
@builder.append " -comment:#{@builder.format comment}"
|
310
310
|
yield @builder if block_given?
|
311
311
|
self
|
312
312
|
end
|
313
|
-
def notes
|
313
|
+
def notes(notes)
|
314
314
|
@builder.append " -notes:#{@builder.format notes, ';', '='}"
|
315
315
|
yield @builder if block_given?
|
316
316
|
self
|
@@ -320,7 +320,7 @@ module FluentCommandBuilder
|
|
320
320
|
yield @builder if block_given?
|
321
321
|
self
|
322
322
|
end
|
323
|
-
def collection
|
323
|
+
def collection(team_project_collection_url)
|
324
324
|
@builder.append " -collection:#{@builder.format team_project_collection_url}"
|
325
325
|
yield @builder if block_given?
|
326
326
|
self
|
@@ -330,7 +330,7 @@ module FluentCommandBuilder
|
|
330
330
|
yield @builder if block_given?
|
331
331
|
self
|
332
332
|
end
|
333
|
-
def login
|
333
|
+
def login(username, password=nil)
|
334
334
|
@builder.append " -login:#{@builder.format username}"
|
335
335
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
336
336
|
yield @builder if block_given?
|
@@ -338,17 +338,17 @@ module FluentCommandBuilder
|
|
338
338
|
end
|
339
339
|
end
|
340
340
|
class Checkin < CommandBase
|
341
|
-
def initialize
|
341
|
+
def initialize(builder, item_spec=nil)
|
342
342
|
super builder
|
343
343
|
@builder.append ' checkin'
|
344
344
|
@builder.append " #{@builder.format item_spec}" unless item_spec.nil?
|
345
345
|
end
|
346
|
-
def author
|
346
|
+
def author(author_name)
|
347
347
|
@builder.append " -author:#{@builder.format author_name}"
|
348
348
|
yield @builder if block_given?
|
349
349
|
self
|
350
350
|
end
|
351
|
-
def comment
|
351
|
+
def comment(comment)
|
352
352
|
@builder.append " -comment:#{@builder.format comment}"
|
353
353
|
yield @builder if block_given?
|
354
354
|
self
|
@@ -358,12 +358,12 @@ module FluentCommandBuilder
|
|
358
358
|
yield @builder if block_given?
|
359
359
|
self
|
360
360
|
end
|
361
|
-
def notes
|
361
|
+
def notes(notes)
|
362
362
|
@builder.append " -notes:#{@builder.format notes, ';', '='}"
|
363
363
|
yield @builder if block_given?
|
364
364
|
self
|
365
365
|
end
|
366
|
-
def override
|
366
|
+
def override(reason)
|
367
367
|
@builder.append " -override:#{@builder.format reason}"
|
368
368
|
yield @builder if block_given?
|
369
369
|
self
|
@@ -388,7 +388,7 @@ module FluentCommandBuilder
|
|
388
388
|
yield @builder if block_given?
|
389
389
|
self
|
390
390
|
end
|
391
|
-
def login
|
391
|
+
def login(username, password=nil)
|
392
392
|
@builder.append " -login:#{@builder.format username}"
|
393
393
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
394
394
|
yield @builder if block_given?
|
@@ -401,7 +401,7 @@ module FluentCommandBuilder
|
|
401
401
|
end
|
402
402
|
end
|
403
403
|
class CheckinShelveset < CommandBase
|
404
|
-
def initialize
|
404
|
+
def initialize(builder, shelveset_name, shelveset_owner=nil)
|
405
405
|
super builder
|
406
406
|
@builder.append " checkin -shelveset:#{@builder.format shelveset_name}"
|
407
407
|
@builder.append ";#{@builder.format shelveset_owner}" unless shelveset_owner.nil?
|
@@ -416,18 +416,18 @@ module FluentCommandBuilder
|
|
416
416
|
yield @builder if block_given?
|
417
417
|
self
|
418
418
|
end
|
419
|
-
def login
|
419
|
+
def login(username, password=nil)
|
420
420
|
@builder.append " -login:#{@builder.format username}"
|
421
421
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
422
422
|
yield @builder if block_given?
|
423
423
|
self
|
424
424
|
end
|
425
|
-
def collection
|
425
|
+
def collection(team_project_collection_url)
|
426
426
|
@builder.append " -collection:#{@builder.format team_project_collection_url}"
|
427
427
|
yield @builder if block_given?
|
428
428
|
self
|
429
429
|
end
|
430
|
-
def author
|
430
|
+
def author(author_name)
|
431
431
|
@builder.append " -author:#{@builder.format author_name}"
|
432
432
|
yield @builder if block_given?
|
433
433
|
self
|
@@ -439,12 +439,12 @@ module FluentCommandBuilder
|
|
439
439
|
end
|
440
440
|
end
|
441
441
|
class Checkout < CommandBase
|
442
|
-
def initialize
|
442
|
+
def initialize(builder, item_spec=nil)
|
443
443
|
super builder
|
444
444
|
@builder.append ' checkout'
|
445
445
|
@builder.append " #{@builder.format item_spec}" unless item_spec.nil?
|
446
446
|
end
|
447
|
-
def lock
|
447
|
+
def lock(lock_type)
|
448
448
|
@builder.append " -lock:#{@builder.format lock_type}"
|
449
449
|
yield @builder if block_given?
|
450
450
|
self
|
@@ -454,12 +454,12 @@ module FluentCommandBuilder
|
|
454
454
|
yield @builder if block_given?
|
455
455
|
self
|
456
456
|
end
|
457
|
-
def type
|
457
|
+
def type(encoding)
|
458
458
|
@builder.append " -type:#{@builder.format encoding}"
|
459
459
|
yield @builder if block_given?
|
460
460
|
self
|
461
461
|
end
|
462
|
-
def login
|
462
|
+
def login(username, password=nil)
|
463
463
|
@builder.append " -login:#{@builder.format username}"
|
464
464
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
465
465
|
yield @builder if block_given?
|
@@ -467,11 +467,11 @@ module FluentCommandBuilder
|
|
467
467
|
end
|
468
468
|
end
|
469
469
|
class Delete < CommandBase
|
470
|
-
def initialize
|
470
|
+
def initialize(builder, item_spec)
|
471
471
|
super builder
|
472
472
|
@builder.append " delete #{@builder.format item_spec}"
|
473
473
|
end
|
474
|
-
def lock
|
474
|
+
def lock(lock_type)
|
475
475
|
@builder.append " -lock:#{@builder.format lock_type}"
|
476
476
|
yield @builder if block_given?
|
477
477
|
self
|
@@ -481,7 +481,7 @@ module FluentCommandBuilder
|
|
481
481
|
yield @builder if block_given?
|
482
482
|
self
|
483
483
|
end
|
484
|
-
def login
|
484
|
+
def login(username, password=nil)
|
485
485
|
@builder.append " -login:#{@builder.format username}"
|
486
486
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
487
487
|
yield @builder if block_given?
|
@@ -489,7 +489,7 @@ module FluentCommandBuilder
|
|
489
489
|
end
|
490
490
|
end
|
491
491
|
class Destroy < CommandBase
|
492
|
-
def initialize
|
492
|
+
def initialize(builder, item_spec)
|
493
493
|
super builder
|
494
494
|
@builder.append " destroy #{@builder.format item_spec}"
|
495
495
|
end
|
@@ -498,7 +498,7 @@ module FluentCommandBuilder
|
|
498
498
|
yield @builder if block_given?
|
499
499
|
self
|
500
500
|
end
|
501
|
-
def stop_at
|
501
|
+
def stop_at(version_spec)
|
502
502
|
@builder.append " -stopAt:#{@builder.format version_spec}"
|
503
503
|
yield @builder if block_given?
|
504
504
|
self
|
@@ -523,34 +523,34 @@ module FluentCommandBuilder
|
|
523
523
|
yield @builder if block_given?
|
524
524
|
self
|
525
525
|
end
|
526
|
-
def login
|
526
|
+
def login(username, password=nil)
|
527
527
|
@builder.append " -login:#{@builder.format username}"
|
528
528
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
529
529
|
yield @builder if block_given?
|
530
530
|
self
|
531
531
|
end
|
532
|
-
def collection
|
532
|
+
def collection(team_project_collection_url)
|
533
533
|
@builder.append " -collection:#{@builder.format team_project_collection_url}"
|
534
534
|
yield @builder if block_given?
|
535
535
|
self
|
536
536
|
end
|
537
537
|
end
|
538
538
|
class CompareWithCurrentWorkspaceVersion < CommandBase
|
539
|
-
def initialize
|
539
|
+
def initialize(builder, item_spec)
|
540
540
|
super builder
|
541
541
|
@builder.append " difference #{@builder.format item_spec}"
|
542
542
|
end
|
543
|
-
def version
|
543
|
+
def version(version_spec)
|
544
544
|
@builder.append " -version:#{@builder.format version_spec}"
|
545
545
|
yield @builder if block_given?
|
546
546
|
self
|
547
547
|
end
|
548
|
-
def type
|
548
|
+
def type(file_type)
|
549
549
|
@builder.append " -type:#{@builder.format file_type}"
|
550
550
|
yield @builder if block_given?
|
551
551
|
self
|
552
552
|
end
|
553
|
-
def format
|
553
|
+
def format(format)
|
554
554
|
@builder.append " -format:#{@builder.format format}"
|
555
555
|
yield @builder if block_given?
|
556
556
|
self
|
@@ -585,7 +585,7 @@ module FluentCommandBuilder
|
|
585
585
|
yield @builder if block_given?
|
586
586
|
self
|
587
587
|
end
|
588
|
-
def login
|
588
|
+
def login(username, password=nil)
|
589
589
|
@builder.append " -login:#{@builder.format username}"
|
590
590
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
591
591
|
yield @builder if block_given?
|
@@ -593,16 +593,16 @@ module FluentCommandBuilder
|
|
593
593
|
end
|
594
594
|
end
|
595
595
|
class Compare < CommandBase
|
596
|
-
def initialize
|
596
|
+
def initialize(builder, item_spec, item_spec2)
|
597
597
|
super builder
|
598
598
|
@builder.append " difference #{@builder.format item_spec} #{@builder.format item_spec2}"
|
599
599
|
end
|
600
|
-
def type
|
600
|
+
def type(file_type)
|
601
601
|
@builder.append " -type:#{@builder.format file_type}"
|
602
602
|
yield @builder if block_given?
|
603
603
|
self
|
604
604
|
end
|
605
|
-
def format
|
605
|
+
def format(format)
|
606
606
|
@builder.append " -format:#{@builder.format format}"
|
607
607
|
yield @builder if block_given?
|
608
608
|
self
|
@@ -637,7 +637,7 @@ module FluentCommandBuilder
|
|
637
637
|
yield @builder if block_given?
|
638
638
|
self
|
639
639
|
end
|
640
|
-
def login
|
640
|
+
def login(username, password=nil)
|
641
641
|
@builder.append " -login:#{@builder.format username}"
|
642
642
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
643
643
|
yield @builder if block_given?
|
@@ -645,22 +645,22 @@ module FluentCommandBuilder
|
|
645
645
|
end
|
646
646
|
end
|
647
647
|
class CompareWithShelvesetVersion < CommandBase
|
648
|
-
def initialize
|
648
|
+
def initialize(builder, shelveset_item_spec)
|
649
649
|
super builder
|
650
650
|
@builder.append " difference #{@builder.format shelveset_item_spec}"
|
651
651
|
end
|
652
|
-
def shelveset
|
652
|
+
def shelveset(shelveset_name, shelveset_owner=nil)
|
653
653
|
@builder.append " -shelveset:#{@builder.format shelveset_name}"
|
654
654
|
@builder.append ";#{@builder.format shelveset_owner}" unless shelveset_owner.nil?
|
655
655
|
yield @builder if block_given?
|
656
656
|
self
|
657
657
|
end
|
658
|
-
def type
|
658
|
+
def type(file_type)
|
659
659
|
@builder.append " -type:#{@builder.format file_type}"
|
660
660
|
yield @builder if block_given?
|
661
661
|
self
|
662
662
|
end
|
663
|
-
def format
|
663
|
+
def format(format)
|
664
664
|
@builder.append " -format:#{@builder.format format}"
|
665
665
|
yield @builder if block_given?
|
666
666
|
self
|
@@ -695,7 +695,7 @@ module FluentCommandBuilder
|
|
695
695
|
yield @builder if block_given?
|
696
696
|
self
|
697
697
|
end
|
698
|
-
def login
|
698
|
+
def login(username, password=nil)
|
699
699
|
@builder.append " -login:#{@builder.format username}"
|
700
700
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
701
701
|
yield @builder if block_given?
|
@@ -703,11 +703,11 @@ module FluentCommandBuilder
|
|
703
703
|
end
|
704
704
|
end
|
705
705
|
class Dir < CommandBase
|
706
|
-
def initialize
|
706
|
+
def initialize(builder, item_spec)
|
707
707
|
super builder
|
708
708
|
@builder.append " dir #{@builder.format item_spec}"
|
709
709
|
end
|
710
|
-
def version
|
710
|
+
def version(version_spec)
|
711
711
|
@builder.append " -version:#{@builder.format version_spec}"
|
712
712
|
yield @builder if block_given?
|
713
713
|
self
|
@@ -727,20 +727,20 @@ module FluentCommandBuilder
|
|
727
727
|
yield @builder if block_given?
|
728
728
|
self
|
729
729
|
end
|
730
|
-
def login
|
730
|
+
def login(username, password=nil)
|
731
731
|
@builder.append " -login:#{@builder.format username}"
|
732
732
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
733
733
|
yield @builder if block_given?
|
734
734
|
self
|
735
735
|
end
|
736
|
-
def collection
|
736
|
+
def collection(team_project_collection_url)
|
737
737
|
@builder.append " -collection:#{@builder.format team_project_collection_url}"
|
738
738
|
yield @builder if block_given?
|
739
739
|
self
|
740
740
|
end
|
741
741
|
end
|
742
742
|
class Eula < CommandBase
|
743
|
-
def initialize
|
743
|
+
def initialize(builder)
|
744
744
|
super builder
|
745
745
|
@builder.append ' eula'
|
746
746
|
end
|
@@ -751,12 +751,12 @@ module FluentCommandBuilder
|
|
751
751
|
end
|
752
752
|
end
|
753
753
|
class Get < CommandBase
|
754
|
-
def initialize
|
754
|
+
def initialize(builder, item_spec=nil)
|
755
755
|
super builder
|
756
756
|
@builder.append ' get'
|
757
757
|
@builder.append " #{@builder.format item_spec}" unless item_spec.nil?
|
758
758
|
end
|
759
|
-
def version
|
759
|
+
def version(version_spec)
|
760
760
|
@builder.append " -version:#{@builder.format version_spec}"
|
761
761
|
yield @builder if block_given?
|
762
762
|
self
|
@@ -796,7 +796,7 @@ module FluentCommandBuilder
|
|
796
796
|
yield @builder if block_given?
|
797
797
|
self
|
798
798
|
end
|
799
|
-
def login
|
799
|
+
def login(username, password=nil)
|
800
800
|
@builder.append " -login:#{@builder.format username}"
|
801
801
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
802
802
|
yield @builder if block_given?
|
@@ -804,11 +804,11 @@ module FluentCommandBuilder
|
|
804
804
|
end
|
805
805
|
end
|
806
806
|
class Getcs < CommandBase
|
807
|
-
def initialize
|
807
|
+
def initialize(builder)
|
808
808
|
super builder
|
809
809
|
@builder.append ' getcs'
|
810
810
|
end
|
811
|
-
def changeset
|
811
|
+
def changeset(changeset_number)
|
812
812
|
@builder.append " -changeset:#{@builder.format changeset_number}"
|
813
813
|
yield @builder if block_given?
|
814
814
|
self
|
@@ -820,16 +820,16 @@ module FluentCommandBuilder
|
|
820
820
|
end
|
821
821
|
end
|
822
822
|
class History < CommandBase
|
823
|
-
def initialize
|
823
|
+
def initialize(builder, item_spec)
|
824
824
|
super builder
|
825
825
|
@builder.append " history #{@builder.format item_spec}"
|
826
826
|
end
|
827
|
-
def version
|
827
|
+
def version(version_spec)
|
828
828
|
@builder.append " -version:#{@builder.format version_spec}"
|
829
829
|
yield @builder if block_given?
|
830
830
|
self
|
831
831
|
end
|
832
|
-
def stop_after
|
832
|
+
def stop_after(number)
|
833
833
|
@builder.append " -stopAfter:#{@builder.format number}"
|
834
834
|
yield @builder if block_given?
|
835
835
|
self
|
@@ -839,12 +839,12 @@ module FluentCommandBuilder
|
|
839
839
|
yield @builder if block_given?
|
840
840
|
self
|
841
841
|
end
|
842
|
-
def user
|
842
|
+
def user(user_name)
|
843
843
|
@builder.append " -user:#{@builder.format user_name}"
|
844
844
|
yield @builder if block_given?
|
845
845
|
self
|
846
846
|
end
|
847
|
-
def format
|
847
|
+
def format(format)
|
848
848
|
@builder.append " -format:#{@builder.format format}"
|
849
849
|
yield @builder if block_given?
|
850
850
|
self
|
@@ -864,46 +864,46 @@ module FluentCommandBuilder
|
|
864
864
|
yield @builder if block_given?
|
865
865
|
self
|
866
866
|
end
|
867
|
-
def login
|
867
|
+
def login(username, password=nil)
|
868
868
|
@builder.append " -login:#{@builder.format username}"
|
869
869
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
870
870
|
yield @builder if block_given?
|
871
871
|
self
|
872
872
|
end
|
873
|
-
def sort
|
873
|
+
def sort(sort)
|
874
874
|
@builder.append " -sort:#{@builder.format sort}"
|
875
875
|
yield @builder if block_given?
|
876
876
|
self
|
877
877
|
end
|
878
|
-
def collection
|
878
|
+
def collection(team_project_collection_url)
|
879
879
|
@builder.append " -collection:#{@builder.format team_project_collection_url}"
|
880
880
|
yield @builder if block_given?
|
881
881
|
self
|
882
882
|
end
|
883
883
|
end
|
884
884
|
class Label < CommandBase
|
885
|
-
def initialize
|
885
|
+
def initialize(builder, label_name, item_spec, scope=nil)
|
886
886
|
super builder
|
887
887
|
@builder.append " label #{@builder.format label_name}"
|
888
888
|
@builder.append "@#{@builder.format scope}" unless scope.nil?
|
889
889
|
@builder.append " #{@builder.format item_spec}"
|
890
890
|
end
|
891
|
-
def owner
|
891
|
+
def owner(owner_name)
|
892
892
|
@builder.append " -owner:#{@builder.format owner_name}"
|
893
893
|
yield @builder if block_given?
|
894
894
|
self
|
895
895
|
end
|
896
|
-
def version
|
896
|
+
def version(version_spec)
|
897
897
|
@builder.append " -version:#{@builder.format version_spec}"
|
898
898
|
yield @builder if block_given?
|
899
899
|
self
|
900
900
|
end
|
901
|
-
def comment
|
901
|
+
def comment(comment)
|
902
902
|
@builder.append " -comment:#{@builder.format comment}"
|
903
903
|
yield @builder if block_given?
|
904
904
|
self
|
905
905
|
end
|
906
|
-
def child
|
906
|
+
def child(lock_type)
|
907
907
|
@builder.append " -child:#{@builder.format lock_type}"
|
908
908
|
yield @builder if block_given?
|
909
909
|
self
|
@@ -913,59 +913,59 @@ module FluentCommandBuilder
|
|
913
913
|
yield @builder if block_given?
|
914
914
|
self
|
915
915
|
end
|
916
|
-
def login
|
916
|
+
def login(username, password=nil)
|
917
917
|
@builder.append " -login:#{@builder.format username}"
|
918
918
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
919
919
|
yield @builder if block_given?
|
920
920
|
self
|
921
921
|
end
|
922
|
-
def collection
|
922
|
+
def collection(team_project_collection_url)
|
923
923
|
@builder.append " -collection:#{@builder.format team_project_collection_url}"
|
924
924
|
yield @builder if block_given?
|
925
925
|
self
|
926
926
|
end
|
927
927
|
end
|
928
928
|
class DeleteLabel < CommandBase
|
929
|
-
def initialize
|
929
|
+
def initialize(builder, label_name, item_spec, scope=nil)
|
930
930
|
super builder
|
931
931
|
@builder.append " label -delete #{@builder.format label_name}"
|
932
932
|
@builder.append "@#{@builder.format scope}" unless scope.nil?
|
933
933
|
@builder.append " #{@builder.format item_spec}"
|
934
934
|
end
|
935
|
-
def login
|
935
|
+
def login(username, password=nil)
|
936
936
|
@builder.append " -login:#{@builder.format username}"
|
937
937
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
938
938
|
yield @builder if block_given?
|
939
939
|
self
|
940
940
|
end
|
941
|
-
def collection
|
941
|
+
def collection(team_project_collection_url)
|
942
942
|
@builder.append " -collection:#{@builder.format team_project_collection_url}"
|
943
943
|
yield @builder if block_given?
|
944
944
|
self
|
945
945
|
end
|
946
946
|
end
|
947
947
|
class Labels < CommandBase
|
948
|
-
def initialize
|
948
|
+
def initialize(builder, label_name=nil)
|
949
949
|
super builder
|
950
950
|
@builder.append ' labels'
|
951
951
|
@builder.append " #{@builder.format label_name}" unless label_name.nil?
|
952
952
|
end
|
953
|
-
def owner
|
953
|
+
def owner(owner_name)
|
954
954
|
@builder.append " -owner:#{@builder.format owner_name}"
|
955
955
|
yield @builder if block_given?
|
956
956
|
self
|
957
957
|
end
|
958
|
-
def format
|
958
|
+
def format(format)
|
959
959
|
@builder.append " -format:#{@builder.format format}"
|
960
960
|
yield @builder if block_given?
|
961
961
|
self
|
962
962
|
end
|
963
|
-
def collection
|
963
|
+
def collection(team_project_collection_url)
|
964
964
|
@builder.append " -collection:#{@builder.format team_project_collection_url}"
|
965
965
|
yield @builder if block_given?
|
966
966
|
self
|
967
967
|
end
|
968
|
-
def login
|
968
|
+
def login(username, password=nil)
|
969
969
|
@builder.append " -login:#{@builder.format username}"
|
970
970
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
971
971
|
yield @builder if block_given?
|
@@ -973,16 +973,16 @@ module FluentCommandBuilder
|
|
973
973
|
end
|
974
974
|
end
|
975
975
|
class Lock < CommandBase
|
976
|
-
def initialize
|
976
|
+
def initialize(builder, item_spec)
|
977
977
|
super builder
|
978
978
|
@builder.append " lock #{@builder.format item_spec}"
|
979
979
|
end
|
980
|
-
def lock
|
980
|
+
def lock(lock_type)
|
981
981
|
@builder.append " -lock:#{@builder.format lock_type}"
|
982
982
|
yield @builder if block_given?
|
983
983
|
self
|
984
984
|
end
|
985
|
-
def workspace
|
985
|
+
def workspace(workspace_name, workspace_owner=nil)
|
986
986
|
@builder.append " -workspace:#{@builder.format workspace_name}"
|
987
987
|
@builder.append ";#{@builder.format workspace_owner}" unless workspace_owner.nil?
|
988
988
|
yield @builder if block_given?
|
@@ -993,20 +993,20 @@ module FluentCommandBuilder
|
|
993
993
|
yield @builder if block_given?
|
994
994
|
self
|
995
995
|
end
|
996
|
-
def login
|
996
|
+
def login(username, password=nil)
|
997
997
|
@builder.append " -login:#{@builder.format username}"
|
998
998
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
999
999
|
yield @builder if block_given?
|
1000
1000
|
self
|
1001
1001
|
end
|
1002
|
-
def collection
|
1002
|
+
def collection(team_project_collection_url)
|
1003
1003
|
@builder.append " -collection:#{@builder.format team_project_collection_url}"
|
1004
1004
|
yield @builder if block_given?
|
1005
1005
|
self
|
1006
1006
|
end
|
1007
1007
|
end
|
1008
1008
|
class Merge < CommandBase
|
1009
|
-
def initialize
|
1009
|
+
def initialize(builder, source, destination)
|
1010
1010
|
super builder
|
1011
1011
|
@builder.append " merge #{@builder.format source} #{@builder.format destination}"
|
1012
1012
|
end
|
@@ -1030,12 +1030,12 @@ module FluentCommandBuilder
|
|
1030
1030
|
yield @builder if block_given?
|
1031
1031
|
self
|
1032
1032
|
end
|
1033
|
-
def version
|
1033
|
+
def version(version_spec)
|
1034
1034
|
@builder.append " -version:#{@builder.format version_spec}"
|
1035
1035
|
yield @builder if block_given?
|
1036
1036
|
self
|
1037
1037
|
end
|
1038
|
-
def lock
|
1038
|
+
def lock(lock_type)
|
1039
1039
|
@builder.append " -lock:#{@builder.format lock_type}"
|
1040
1040
|
yield @builder if block_given?
|
1041
1041
|
self
|
@@ -1065,7 +1065,7 @@ module FluentCommandBuilder
|
|
1065
1065
|
yield @builder if block_given?
|
1066
1066
|
self
|
1067
1067
|
end
|
1068
|
-
def format
|
1068
|
+
def format(format)
|
1069
1069
|
@builder.append " -format:#{@builder.format format}"
|
1070
1070
|
yield @builder if block_given?
|
1071
1071
|
self
|
@@ -1075,7 +1075,7 @@ module FluentCommandBuilder
|
|
1075
1075
|
yield @builder if block_given?
|
1076
1076
|
self
|
1077
1077
|
end
|
1078
|
-
def login
|
1078
|
+
def login(username, password=nil)
|
1079
1079
|
@builder.append " -login:#{@builder.format username}"
|
1080
1080
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
1081
1081
|
yield @builder if block_given?
|
@@ -1083,7 +1083,7 @@ module FluentCommandBuilder
|
|
1083
1083
|
end
|
1084
1084
|
end
|
1085
1085
|
class Merges < CommandBase
|
1086
|
-
def initialize
|
1086
|
+
def initialize(builder, destination, source=nil)
|
1087
1087
|
super builder
|
1088
1088
|
@builder.append ' merges'
|
1089
1089
|
@builder.append " #{@builder.format source}" unless source.nil?
|
@@ -1099,12 +1099,12 @@ module FluentCommandBuilder
|
|
1099
1099
|
yield @builder if block_given?
|
1100
1100
|
self
|
1101
1101
|
end
|
1102
|
-
def format
|
1102
|
+
def format(format)
|
1103
1103
|
@builder.append " -format:#{@builder.format format}"
|
1104
1104
|
yield @builder if block_given?
|
1105
1105
|
self
|
1106
1106
|
end
|
1107
|
-
def login
|
1107
|
+
def login(username, password=nil)
|
1108
1108
|
@builder.append " -login:#{@builder.format username}"
|
1109
1109
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
1110
1110
|
yield @builder if block_given?
|
@@ -1115,29 +1115,29 @@ module FluentCommandBuilder
|
|
1115
1115
|
yield @builder if block_given?
|
1116
1116
|
self
|
1117
1117
|
end
|
1118
|
-
def collection
|
1118
|
+
def collection(team_project_collection_url)
|
1119
1119
|
@builder.append " -collection:#{@builder.format team_project_collection_url}"
|
1120
1120
|
yield @builder if block_given?
|
1121
1121
|
self
|
1122
1122
|
end
|
1123
1123
|
end
|
1124
1124
|
class Print < CommandBase
|
1125
|
-
def initialize
|
1125
|
+
def initialize(builder, item_spec)
|
1126
1126
|
super builder
|
1127
1127
|
@builder.append " print #{@builder.format item_spec}"
|
1128
1128
|
end
|
1129
|
-
def version
|
1129
|
+
def version(version_spec)
|
1130
1130
|
@builder.append " -version:#{@builder.format version_spec}"
|
1131
1131
|
yield @builder if block_given?
|
1132
1132
|
self
|
1133
1133
|
end
|
1134
1134
|
end
|
1135
1135
|
class ProductKey < CommandBase
|
1136
|
-
def initialize
|
1136
|
+
def initialize(builder)
|
1137
1137
|
super builder
|
1138
1138
|
@builder.append ' productKey'
|
1139
1139
|
end
|
1140
|
-
def set
|
1140
|
+
def set(my_product_key)
|
1141
1141
|
@builder.append " -set:#{@builder.format my_product_key}"
|
1142
1142
|
yield @builder if block_given?
|
1143
1143
|
self
|
@@ -1149,64 +1149,64 @@ module FluentCommandBuilder
|
|
1149
1149
|
end
|
1150
1150
|
end
|
1151
1151
|
class EditProfile < CommandBase
|
1152
|
-
def initialize
|
1152
|
+
def initialize(builder, existing_profile_name)
|
1153
1153
|
super builder
|
1154
1154
|
@builder.append " profile -edit #{@builder.format existing_profile_name}"
|
1155
1155
|
end
|
1156
|
-
def string
|
1156
|
+
def string(property_name, value)
|
1157
1157
|
@builder.append " -string:#{@builder.format property_name}=#{@builder.format value}"
|
1158
1158
|
yield @builder if block_given?
|
1159
1159
|
self
|
1160
1160
|
end
|
1161
|
-
def boolean
|
1161
|
+
def boolean(property_name, value)
|
1162
1162
|
@builder.append " -boolean:#{@builder.format property_name}=#{@builder.format value}"
|
1163
1163
|
yield @builder if block_given?
|
1164
1164
|
self
|
1165
1165
|
end
|
1166
|
-
def number
|
1166
|
+
def number(property_name, value)
|
1167
1167
|
@builder.append " -number:#{@builder.format property_name}=#{@builder.format value}"
|
1168
1168
|
yield @builder if block_given?
|
1169
1169
|
self
|
1170
1170
|
end
|
1171
1171
|
end
|
1172
1172
|
class NewProfile < CommandBase
|
1173
|
-
def initialize
|
1173
|
+
def initialize(builder, new_profile_name)
|
1174
1174
|
super builder
|
1175
1175
|
@builder.append " profile -new #{@builder.format new_profile_name}"
|
1176
1176
|
end
|
1177
|
-
def string
|
1177
|
+
def string(property_name, value)
|
1178
1178
|
@builder.append " -string:#{@builder.format property_name}=#{@builder.format value}"
|
1179
1179
|
yield @builder if block_given?
|
1180
1180
|
self
|
1181
1181
|
end
|
1182
|
-
def boolean
|
1182
|
+
def boolean(property_name, value)
|
1183
1183
|
@builder.append " -boolean:#{@builder.format property_name}=#{@builder.format value}"
|
1184
1184
|
yield @builder if block_given?
|
1185
1185
|
self
|
1186
1186
|
end
|
1187
|
-
def number
|
1187
|
+
def number(property_name, value)
|
1188
1188
|
@builder.append " -number:#{@builder.format property_name}=#{@builder.format value}"
|
1189
1189
|
yield @builder if block_given?
|
1190
1190
|
self
|
1191
1191
|
end
|
1192
1192
|
end
|
1193
1193
|
class Profiles < CommandBase
|
1194
|
-
def initialize
|
1194
|
+
def initialize(builder)
|
1195
1195
|
super builder
|
1196
1196
|
@builder.append ' profiles'
|
1197
1197
|
end
|
1198
|
-
def format
|
1198
|
+
def format(format)
|
1199
1199
|
@builder.append " -format:#{@builder.format format}"
|
1200
1200
|
yield @builder if block_given?
|
1201
1201
|
self
|
1202
1202
|
end
|
1203
1203
|
end
|
1204
1204
|
class Properties < CommandBase
|
1205
|
-
def initialize
|
1205
|
+
def initialize(builder, item_spec)
|
1206
1206
|
super builder
|
1207
1207
|
@builder.append " properties #{@builder.format item_spec}"
|
1208
1208
|
end
|
1209
|
-
def collection
|
1209
|
+
def collection(team_project_collection_url)
|
1210
1210
|
@builder.append " -collection:#{@builder.format team_project_collection_url}"
|
1211
1211
|
yield @builder if block_given?
|
1212
1212
|
self
|
@@ -1216,18 +1216,18 @@ module FluentCommandBuilder
|
|
1216
1216
|
yield @builder if block_given?
|
1217
1217
|
self
|
1218
1218
|
end
|
1219
|
-
def login
|
1219
|
+
def login(username, password=nil)
|
1220
1220
|
@builder.append " -login:#{@builder.format username}"
|
1221
1221
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
1222
1222
|
yield @builder if block_given?
|
1223
1223
|
self
|
1224
1224
|
end
|
1225
|
-
def version
|
1225
|
+
def version(version_spec)
|
1226
1226
|
@builder.append " -version:#{@builder.format version_spec}"
|
1227
1227
|
yield @builder if block_given?
|
1228
1228
|
self
|
1229
1229
|
end
|
1230
|
-
def workspace
|
1230
|
+
def workspace(workspace_name, workspace_owner=nil)
|
1231
1231
|
@builder.append " -workspace:#{@builder.format workspace_name}"
|
1232
1232
|
@builder.append ";#{@builder.format workspace_owner}" unless workspace_owner.nil?
|
1233
1233
|
yield @builder if block_given?
|
@@ -1235,16 +1235,16 @@ module FluentCommandBuilder
|
|
1235
1235
|
end
|
1236
1236
|
end
|
1237
1237
|
class Reconcile < CommandBase
|
1238
|
-
def initialize
|
1238
|
+
def initialize(builder)
|
1239
1239
|
super builder
|
1240
1240
|
@builder.append ' reconcile'
|
1241
1241
|
end
|
1242
|
-
def team_project
|
1242
|
+
def team_project(team_project_name)
|
1243
1243
|
@builder.append " -teamProject:#{@builder.format team_project_name}"
|
1244
1244
|
yield @builder if block_given?
|
1245
1245
|
self
|
1246
1246
|
end
|
1247
|
-
def workspace
|
1247
|
+
def workspace(workspace_name, workspace_owner=nil)
|
1248
1248
|
@builder.append " -workspace:#{@builder.format workspace_name}"
|
1249
1249
|
@builder.append ";#{@builder.format workspace_owner}" unless workspace_owner.nil?
|
1250
1250
|
yield @builder if block_given?
|
@@ -1252,17 +1252,17 @@ module FluentCommandBuilder
|
|
1252
1252
|
end
|
1253
1253
|
end
|
1254
1254
|
class ReconcileBuild < CommandBase
|
1255
|
-
def initialize
|
1255
|
+
def initialize(builder, build_name, item_spec=nil)
|
1256
1256
|
super builder
|
1257
1257
|
@builder.append " reconcile -buildName:#{@builder.format build_name}"
|
1258
1258
|
@builder.append " #{@builder.format item_spec}" unless item_spec.nil?
|
1259
1259
|
end
|
1260
|
-
def team_project
|
1260
|
+
def team_project(team_project_name)
|
1261
1261
|
@builder.append " -teamProject:#{@builder.format team_project_name}"
|
1262
1262
|
yield @builder if block_given?
|
1263
1263
|
self
|
1264
1264
|
end
|
1265
|
-
def workspace
|
1265
|
+
def workspace(workspace_name, workspace_owner=nil)
|
1266
1266
|
@builder.append " -workspace:#{@builder.format workspace_name}"
|
1267
1267
|
@builder.append ";#{@builder.format workspace_owner}" unless workspace_owner.nil?
|
1268
1268
|
yield @builder if block_given?
|
@@ -1275,17 +1275,17 @@ module FluentCommandBuilder
|
|
1275
1275
|
end
|
1276
1276
|
end
|
1277
1277
|
class ReconcileChangeset < CommandBase
|
1278
|
-
def initialize
|
1278
|
+
def initialize(builder, changeset_name, item_spec=nil)
|
1279
1279
|
super builder
|
1280
1280
|
@builder.append " reconcile -changeset:#{@builder.format changeset_name}"
|
1281
1281
|
@builder.append " #{@builder.format item_spec}" unless item_spec.nil?
|
1282
1282
|
end
|
1283
|
-
def team_project
|
1283
|
+
def team_project(team_project_name)
|
1284
1284
|
@builder.append " -teamProject:#{@builder.format team_project_name}"
|
1285
1285
|
yield @builder if block_given?
|
1286
1286
|
self
|
1287
1287
|
end
|
1288
|
-
def workspace
|
1288
|
+
def workspace(workspace_name, workspace_owner=nil)
|
1289
1289
|
@builder.append " -workspace:#{@builder.format workspace_name}"
|
1290
1290
|
@builder.append ";#{@builder.format workspace_owner}" unless workspace_owner.nil?
|
1291
1291
|
yield @builder if block_given?
|
@@ -1298,17 +1298,17 @@ module FluentCommandBuilder
|
|
1298
1298
|
end
|
1299
1299
|
end
|
1300
1300
|
class ReconcileForgetBuild < CommandBase
|
1301
|
-
def initialize
|
1301
|
+
def initialize(builder, build_name, item_spec=nil)
|
1302
1302
|
super builder
|
1303
1303
|
@builder.append " reconcile -forgetBuild:#{@builder.format build_name}"
|
1304
1304
|
@builder.append " #{@builder.format item_spec}" unless item_spec.nil?
|
1305
1305
|
end
|
1306
|
-
def team_project
|
1306
|
+
def team_project(team_project_name)
|
1307
1307
|
@builder.append " -teamProject:#{@builder.format team_project_name}"
|
1308
1308
|
yield @builder if block_given?
|
1309
1309
|
self
|
1310
1310
|
end
|
1311
|
-
def workspace
|
1311
|
+
def workspace(workspace_name, workspace_owner=nil)
|
1312
1312
|
@builder.append " -workspace:#{@builder.format workspace_name}"
|
1313
1313
|
@builder.append ";#{@builder.format workspace_owner}" unless workspace_owner.nil?
|
1314
1314
|
yield @builder if block_given?
|
@@ -1321,16 +1321,16 @@ module FluentCommandBuilder
|
|
1321
1321
|
end
|
1322
1322
|
end
|
1323
1323
|
class Rename < CommandBase
|
1324
|
-
def initialize
|
1324
|
+
def initialize(builder, old_item, new_item)
|
1325
1325
|
super builder
|
1326
1326
|
@builder.append " rename #{@builder.format old_item} #{@builder.format new_item}"
|
1327
1327
|
end
|
1328
|
-
def lock
|
1328
|
+
def lock(lock_type)
|
1329
1329
|
@builder.append " -lock:#{@builder.format lock_type}"
|
1330
1330
|
yield @builder if block_given?
|
1331
1331
|
self
|
1332
1332
|
end
|
1333
|
-
def login
|
1333
|
+
def login(username, password=nil)
|
1334
1334
|
@builder.append " -login:#{@builder.format username}"
|
1335
1335
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
1336
1336
|
yield @builder if block_given?
|
@@ -1338,12 +1338,12 @@ module FluentCommandBuilder
|
|
1338
1338
|
end
|
1339
1339
|
end
|
1340
1340
|
class Resolve < CommandBase
|
1341
|
-
def initialize
|
1341
|
+
def initialize(builder, item_spec=nil)
|
1342
1342
|
super builder
|
1343
1343
|
@builder.append ' resolve'
|
1344
1344
|
@builder.append " #{@builder.format item_spec}" unless item_spec.nil?
|
1345
1345
|
end
|
1346
|
-
def auto
|
1346
|
+
def auto(resolution)
|
1347
1347
|
@builder.append " -auto:#{@builder.format resolution}"
|
1348
1348
|
yield @builder if block_given?
|
1349
1349
|
self
|
@@ -1353,12 +1353,12 @@ module FluentCommandBuilder
|
|
1353
1353
|
yield @builder if block_given?
|
1354
1354
|
self
|
1355
1355
|
end
|
1356
|
-
def override_type
|
1356
|
+
def override_type(override_type)
|
1357
1357
|
@builder.append " -overrideType:#{@builder.format override_type}"
|
1358
1358
|
yield @builder if block_given?
|
1359
1359
|
self
|
1360
1360
|
end
|
1361
|
-
def convert_to_type
|
1361
|
+
def convert_to_type(convert_type)
|
1362
1362
|
@builder.append " -convertToType:#{@builder.format convert_type}"
|
1363
1363
|
yield @builder if block_given?
|
1364
1364
|
self
|
@@ -1368,7 +1368,7 @@ module FluentCommandBuilder
|
|
1368
1368
|
yield @builder if block_given?
|
1369
1369
|
self
|
1370
1370
|
end
|
1371
|
-
def new_name
|
1371
|
+
def new_name(path)
|
1372
1372
|
@builder.append " -newName:#{@builder.format path}"
|
1373
1373
|
yield @builder if block_given?
|
1374
1374
|
self
|
@@ -1378,7 +1378,7 @@ module FluentCommandBuilder
|
|
1378
1378
|
yield @builder if block_given?
|
1379
1379
|
self
|
1380
1380
|
end
|
1381
|
-
def login
|
1381
|
+
def login(username, password=nil)
|
1382
1382
|
@builder.append " -login:#{@builder.format username}"
|
1383
1383
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
1384
1384
|
yield @builder if block_given?
|
@@ -1386,11 +1386,11 @@ module FluentCommandBuilder
|
|
1386
1386
|
end
|
1387
1387
|
end
|
1388
1388
|
class ReplaceShelveset < CommandBase
|
1389
|
-
def initialize
|
1389
|
+
def initialize(builder, shelveset_name)
|
1390
1390
|
super builder
|
1391
1391
|
@builder.append " shelve -replace #{@builder.format shelveset_name}"
|
1392
1392
|
end
|
1393
|
-
def comment
|
1393
|
+
def comment(comment)
|
1394
1394
|
@builder.append " -comment:#{@builder.format comment}"
|
1395
1395
|
yield @builder if block_given?
|
1396
1396
|
self
|
@@ -1405,7 +1405,7 @@ module FluentCommandBuilder
|
|
1405
1405
|
yield @builder if block_given?
|
1406
1406
|
self
|
1407
1407
|
end
|
1408
|
-
def login
|
1408
|
+
def login(username, password=nil)
|
1409
1409
|
@builder.append " -login:#{@builder.format username}"
|
1410
1410
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
1411
1411
|
yield @builder if block_given?
|
@@ -1413,7 +1413,7 @@ module FluentCommandBuilder
|
|
1413
1413
|
end
|
1414
1414
|
end
|
1415
1415
|
class Shelve < CommandBase
|
1416
|
-
def initialize
|
1416
|
+
def initialize(builder, shelveset_name, item_spec)
|
1417
1417
|
super builder
|
1418
1418
|
@builder.append " shelve #{@builder.format shelveset_name} #{@builder.format item_spec}"
|
1419
1419
|
end
|
@@ -1427,7 +1427,7 @@ module FluentCommandBuilder
|
|
1427
1427
|
yield @builder if block_given?
|
1428
1428
|
self
|
1429
1429
|
end
|
1430
|
-
def comment
|
1430
|
+
def comment(comment)
|
1431
1431
|
@builder.append " -comment:#{@builder.format comment}"
|
1432
1432
|
yield @builder if block_given?
|
1433
1433
|
self
|
@@ -1447,7 +1447,7 @@ module FluentCommandBuilder
|
|
1447
1447
|
yield @builder if block_given?
|
1448
1448
|
self
|
1449
1449
|
end
|
1450
|
-
def login
|
1450
|
+
def login(username, password=nil)
|
1451
1451
|
@builder.append " -login:#{@builder.format username}"
|
1452
1452
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
1453
1453
|
yield @builder if block_given?
|
@@ -1455,45 +1455,45 @@ module FluentCommandBuilder
|
|
1455
1455
|
end
|
1456
1456
|
end
|
1457
1457
|
class DeleteShelveset < CommandBase
|
1458
|
-
def initialize
|
1458
|
+
def initialize(builder, shelveset_name, shelveset_owner=nil)
|
1459
1459
|
super builder
|
1460
1460
|
@builder.append " shelve -delete #{@builder.format shelveset_name}"
|
1461
1461
|
@builder.append ";#{@builder.format shelveset_owner}" unless shelveset_owner.nil?
|
1462
1462
|
end
|
1463
|
-
def login
|
1463
|
+
def login(username, password=nil)
|
1464
1464
|
@builder.append " -login:#{@builder.format username}"
|
1465
1465
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
1466
1466
|
yield @builder if block_given?
|
1467
1467
|
self
|
1468
1468
|
end
|
1469
|
-
def collection
|
1469
|
+
def collection(team_project_collection_url)
|
1470
1470
|
@builder.append " -collection:#{@builder.format team_project_collection_url}"
|
1471
1471
|
yield @builder if block_given?
|
1472
1472
|
self
|
1473
1473
|
end
|
1474
1474
|
end
|
1475
1475
|
class Shelvesets < CommandBase
|
1476
|
-
def initialize
|
1476
|
+
def initialize(builder, shelveset_name=nil)
|
1477
1477
|
super builder
|
1478
1478
|
@builder.append ' shelvesets'
|
1479
1479
|
@builder.append " #{@builder.format shelveset_name}" unless shelveset_name.nil?
|
1480
1480
|
end
|
1481
|
-
def owner
|
1481
|
+
def owner(owner_name)
|
1482
1482
|
@builder.append " -owner:#{@builder.format owner_name}"
|
1483
1483
|
yield @builder if block_given?
|
1484
1484
|
self
|
1485
1485
|
end
|
1486
|
-
def format
|
1486
|
+
def format(format)
|
1487
1487
|
@builder.append " -format:#{@builder.format format}"
|
1488
1488
|
yield @builder if block_given?
|
1489
1489
|
self
|
1490
1490
|
end
|
1491
|
-
def collection
|
1491
|
+
def collection(team_project_collection_url)
|
1492
1492
|
@builder.append " -collection:#{@builder.format team_project_collection_url}"
|
1493
1493
|
yield @builder if block_given?
|
1494
1494
|
self
|
1495
1495
|
end
|
1496
|
-
def login
|
1496
|
+
def login(username, password=nil)
|
1497
1497
|
@builder.append " -login:#{@builder.format username}"
|
1498
1498
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
1499
1499
|
yield @builder if block_given?
|
@@ -1501,34 +1501,34 @@ module FluentCommandBuilder
|
|
1501
1501
|
end
|
1502
1502
|
end
|
1503
1503
|
class Status < CommandBase
|
1504
|
-
def initialize
|
1504
|
+
def initialize(builder, item_spec)
|
1505
1505
|
super builder
|
1506
1506
|
@builder.append " status #{@builder.format item_spec}"
|
1507
1507
|
end
|
1508
|
-
def collection
|
1508
|
+
def collection(team_project_collection_url)
|
1509
1509
|
@builder.append " -collection:#{@builder.format team_project_collection_url}"
|
1510
1510
|
yield @builder if block_given?
|
1511
1511
|
self
|
1512
1512
|
end
|
1513
|
-
def login
|
1513
|
+
def login(username, password=nil)
|
1514
1514
|
@builder.append " -login:#{@builder.format username}"
|
1515
1515
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
1516
1516
|
yield @builder if block_given?
|
1517
1517
|
self
|
1518
1518
|
end
|
1519
|
-
def workspace
|
1519
|
+
def workspace(workspace_name, workspace_owner=nil)
|
1520
1520
|
@builder.append " -workspace:#{@builder.format workspace_name}"
|
1521
1521
|
@builder.append ";#{@builder.format workspace_owner}" unless workspace_owner.nil?
|
1522
1522
|
yield @builder if block_given?
|
1523
1523
|
self
|
1524
1524
|
end
|
1525
|
-
def shelveset
|
1525
|
+
def shelveset(shelveset_name, shelveset_owner=nil)
|
1526
1526
|
@builder.append " -shelveset:#{@builder.format shelveset_name}"
|
1527
1527
|
@builder.append ";#{@builder.format shelveset_owner}" unless shelveset_owner.nil?
|
1528
1528
|
yield @builder if block_given?
|
1529
1529
|
self
|
1530
1530
|
end
|
1531
|
-
def format
|
1531
|
+
def format(format)
|
1532
1532
|
@builder.append " -format:#{@builder.format format}"
|
1533
1533
|
yield @builder if block_given?
|
1534
1534
|
self
|
@@ -1538,14 +1538,14 @@ module FluentCommandBuilder
|
|
1538
1538
|
yield @builder if block_given?
|
1539
1539
|
self
|
1540
1540
|
end
|
1541
|
-
def user
|
1541
|
+
def user(user_name)
|
1542
1542
|
@builder.append " -user:#{@builder.format user_name}"
|
1543
1543
|
yield @builder if block_given?
|
1544
1544
|
self
|
1545
1545
|
end
|
1546
1546
|
end
|
1547
1547
|
class Undelete < CommandBase
|
1548
|
-
def initialize
|
1548
|
+
def initialize(builder, item_spec, deletion_id=nil)
|
1549
1549
|
super builder
|
1550
1550
|
@builder.append " undelete #{@builder.format item_spec}"
|
1551
1551
|
@builder.append ";#{@builder.format deletion_id}" unless deletion_id.nil?
|
@@ -1555,7 +1555,7 @@ module FluentCommandBuilder
|
|
1555
1555
|
yield @builder if block_given?
|
1556
1556
|
self
|
1557
1557
|
end
|
1558
|
-
def lock
|
1558
|
+
def lock(lock_type)
|
1559
1559
|
@builder.append " -lock:#{@builder.format lock_type}"
|
1560
1560
|
yield @builder if block_given?
|
1561
1561
|
self
|
@@ -1565,7 +1565,7 @@ module FluentCommandBuilder
|
|
1565
1565
|
yield @builder if block_given?
|
1566
1566
|
self
|
1567
1567
|
end
|
1568
|
-
def login
|
1568
|
+
def login(username, password=nil)
|
1569
1569
|
@builder.append " -login:#{@builder.format username}"
|
1570
1570
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
1571
1571
|
yield @builder if block_given?
|
@@ -1573,11 +1573,11 @@ module FluentCommandBuilder
|
|
1573
1573
|
end
|
1574
1574
|
end
|
1575
1575
|
class Undo < CommandBase
|
1576
|
-
def initialize
|
1576
|
+
def initialize(builder, item_spec)
|
1577
1577
|
super builder
|
1578
1578
|
@builder.append " undo #{@builder.format item_spec}"
|
1579
1579
|
end
|
1580
|
-
def workspace
|
1580
|
+
def workspace(workspace_name, workspace_owner=nil)
|
1581
1581
|
@builder.append " -workspace:#{@builder.format workspace_name}"
|
1582
1582
|
@builder.append ";#{@builder.format workspace_owner}" unless workspace_owner.nil?
|
1583
1583
|
yield @builder if block_given?
|
@@ -1593,24 +1593,24 @@ module FluentCommandBuilder
|
|
1593
1593
|
yield @builder if block_given?
|
1594
1594
|
self
|
1595
1595
|
end
|
1596
|
-
def login
|
1596
|
+
def login(username, password=nil)
|
1597
1597
|
@builder.append " -login:#{@builder.format username}"
|
1598
1598
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
1599
1599
|
yield @builder if block_given?
|
1600
1600
|
self
|
1601
1601
|
end
|
1602
|
-
def collection
|
1602
|
+
def collection(team_project_collection_url)
|
1603
1603
|
@builder.append " -collection:#{@builder.format team_project_collection_url}"
|
1604
1604
|
yield @builder if block_given?
|
1605
1605
|
self
|
1606
1606
|
end
|
1607
1607
|
end
|
1608
1608
|
class Unlabel < CommandBase
|
1609
|
-
def initialize
|
1609
|
+
def initialize(builder, label_name, item_spec)
|
1610
1610
|
super builder
|
1611
1611
|
@builder.append " unlabel #{@builder.format label_name} #{@builder.format item_spec}"
|
1612
1612
|
end
|
1613
|
-
def collection
|
1613
|
+
def collection(team_project_collection_url)
|
1614
1614
|
@builder.append " -collection:#{@builder.format team_project_collection_url}"
|
1615
1615
|
yield @builder if block_given?
|
1616
1616
|
self
|
@@ -1620,7 +1620,7 @@ module FluentCommandBuilder
|
|
1620
1620
|
yield @builder if block_given?
|
1621
1621
|
self
|
1622
1622
|
end
|
1623
|
-
def login
|
1623
|
+
def login(username, password=nil)
|
1624
1624
|
@builder.append " -login:#{@builder.format username}"
|
1625
1625
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
1626
1626
|
yield @builder if block_given?
|
@@ -1628,7 +1628,7 @@ module FluentCommandBuilder
|
|
1628
1628
|
end
|
1629
1629
|
end
|
1630
1630
|
class Unshelve < CommandBase
|
1631
|
-
def initialize
|
1631
|
+
def initialize(builder, shelveset_name=nil, username=nil, item_spec=nil)
|
1632
1632
|
super builder
|
1633
1633
|
@builder.append ' unshelve'
|
1634
1634
|
@builder.append " #{@builder.format shelveset_name}" unless shelveset_name.nil?
|
@@ -1650,7 +1650,7 @@ module FluentCommandBuilder
|
|
1650
1650
|
yield @builder if block_given?
|
1651
1651
|
self
|
1652
1652
|
end
|
1653
|
-
def login
|
1653
|
+
def login(username, password=nil)
|
1654
1654
|
@builder.append " -login:#{@builder.format username}"
|
1655
1655
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
1656
1656
|
yield @builder if block_given?
|
@@ -1658,11 +1658,11 @@ module FluentCommandBuilder
|
|
1658
1658
|
end
|
1659
1659
|
end
|
1660
1660
|
class ShowLocalFolderMapping < CommandBase
|
1661
|
-
def initialize
|
1661
|
+
def initialize(builder, local_folder)
|
1662
1662
|
super builder
|
1663
1663
|
@builder.append " workfold #{@builder.format local_folder}"
|
1664
1664
|
end
|
1665
|
-
def login
|
1665
|
+
def login(username, password=nil)
|
1666
1666
|
@builder.append " -login:#{@builder.format username}"
|
1667
1667
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
1668
1668
|
yield @builder if block_given?
|
@@ -1670,11 +1670,11 @@ module FluentCommandBuilder
|
|
1670
1670
|
end
|
1671
1671
|
end
|
1672
1672
|
class ShowWorkspaceMappings < CommandBase
|
1673
|
-
def initialize
|
1673
|
+
def initialize(builder, workspace_name)
|
1674
1674
|
super builder
|
1675
1675
|
@builder.append " workfold -workspace:#{@builder.format workspace_name}"
|
1676
1676
|
end
|
1677
|
-
def login
|
1677
|
+
def login(username, password=nil)
|
1678
1678
|
@builder.append " -login:#{@builder.format username}"
|
1679
1679
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
1680
1680
|
yield @builder if block_given?
|
@@ -1682,69 +1682,69 @@ module FluentCommandBuilder
|
|
1682
1682
|
end
|
1683
1683
|
end
|
1684
1684
|
class ShowServerFolderMappings < CommandBase
|
1685
|
-
def initialize
|
1685
|
+
def initialize(builder, server_folder)
|
1686
1686
|
super builder
|
1687
1687
|
@builder.append " workfold #{@builder.format server_folder}"
|
1688
1688
|
end
|
1689
|
-
def login
|
1689
|
+
def login(username, password=nil)
|
1690
1690
|
@builder.append " -login:#{@builder.format username}"
|
1691
1691
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
1692
1692
|
yield @builder if block_given?
|
1693
1693
|
self
|
1694
1694
|
end
|
1695
|
-
def workspace
|
1695
|
+
def workspace(workspace_name, workspace_owner=nil)
|
1696
1696
|
@builder.append " -workspace:#{@builder.format workspace_name}"
|
1697
1697
|
@builder.append ";#{@builder.format workspace_owner}" unless workspace_owner.nil?
|
1698
1698
|
yield @builder if block_given?
|
1699
1699
|
self
|
1700
1700
|
end
|
1701
|
-
def collection
|
1701
|
+
def collection(team_project_collection_url)
|
1702
1702
|
@builder.append " -collection:#{@builder.format team_project_collection_url}"
|
1703
1703
|
yield @builder if block_given?
|
1704
1704
|
self
|
1705
1705
|
end
|
1706
1706
|
end
|
1707
1707
|
class MapFolder < CommandBase
|
1708
|
-
def initialize
|
1708
|
+
def initialize(builder, server_folder, local_folder)
|
1709
1709
|
super builder
|
1710
1710
|
@builder.append " workfold -map #{@builder.format server_folder} #{@builder.format local_folder}"
|
1711
1711
|
end
|
1712
|
-
def login
|
1712
|
+
def login(username, password=nil)
|
1713
1713
|
@builder.append " -login:#{@builder.format username}"
|
1714
1714
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
1715
1715
|
yield @builder if block_given?
|
1716
1716
|
self
|
1717
1717
|
end
|
1718
|
-
def workspace
|
1718
|
+
def workspace(workspace_name, workspace_owner=nil)
|
1719
1719
|
@builder.append " -workspace:#{@builder.format workspace_name}"
|
1720
1720
|
@builder.append ";#{@builder.format workspace_owner}" unless workspace_owner.nil?
|
1721
1721
|
yield @builder if block_given?
|
1722
1722
|
self
|
1723
1723
|
end
|
1724
|
-
def collection
|
1724
|
+
def collection(team_project_collection_url)
|
1725
1725
|
@builder.append " -collection:#{@builder.format team_project_collection_url}"
|
1726
1726
|
yield @builder if block_given?
|
1727
1727
|
self
|
1728
1728
|
end
|
1729
1729
|
end
|
1730
1730
|
class UnmapFolder < CommandBase
|
1731
|
-
def initialize
|
1731
|
+
def initialize(builder)
|
1732
1732
|
super builder
|
1733
1733
|
@builder.append ' workfold -unmap'
|
1734
1734
|
end
|
1735
|
-
def login
|
1735
|
+
def login(username, password=nil)
|
1736
1736
|
@builder.append " -login:#{@builder.format username}"
|
1737
1737
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
1738
1738
|
yield @builder if block_given?
|
1739
1739
|
self
|
1740
1740
|
end
|
1741
|
-
def workspace
|
1741
|
+
def workspace(workspace_name, workspace_owner=nil)
|
1742
1742
|
@builder.append " -workspace:#{@builder.format workspace_name}"
|
1743
1743
|
@builder.append ";#{@builder.format workspace_owner}" unless workspace_owner.nil?
|
1744
1744
|
yield @builder if block_given?
|
1745
1745
|
self
|
1746
1746
|
end
|
1747
|
-
def collection
|
1747
|
+
def collection(team_project_collection_url)
|
1748
1748
|
@builder.append " -collection:#{@builder.format team_project_collection_url}"
|
1749
1749
|
yield @builder if block_given?
|
1750
1750
|
self
|
@@ -1756,53 +1756,53 @@ module FluentCommandBuilder
|
|
1756
1756
|
end
|
1757
1757
|
end
|
1758
1758
|
class CloakFolder < CommandBase
|
1759
|
-
def initialize
|
1759
|
+
def initialize(builder, server_folder)
|
1760
1760
|
super builder
|
1761
1761
|
@builder.append " workfold -cloak #{@builder.format server_folder}"
|
1762
1762
|
end
|
1763
|
-
def login
|
1763
|
+
def login(username, password=nil)
|
1764
1764
|
@builder.append " -login:#{@builder.format username}"
|
1765
1765
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
1766
1766
|
yield @builder if block_given?
|
1767
1767
|
self
|
1768
1768
|
end
|
1769
|
-
def workspace
|
1769
|
+
def workspace(workspace_name, workspace_owner=nil)
|
1770
1770
|
@builder.append " -workspace:#{@builder.format workspace_name}"
|
1771
1771
|
@builder.append ";#{@builder.format workspace_owner}" unless workspace_owner.nil?
|
1772
1772
|
yield @builder if block_given?
|
1773
1773
|
self
|
1774
1774
|
end
|
1775
|
-
def collection
|
1775
|
+
def collection(team_project_collection_url)
|
1776
1776
|
@builder.append " -collection:#{@builder.format team_project_collection_url}"
|
1777
1777
|
yield @builder if block_given?
|
1778
1778
|
self
|
1779
1779
|
end
|
1780
1780
|
end
|
1781
1781
|
class DecloakFolder < CommandBase
|
1782
|
-
def initialize
|
1782
|
+
def initialize(builder, server_folder)
|
1783
1783
|
super builder
|
1784
1784
|
@builder.append " workfold -decloak #{@builder.format server_folder}"
|
1785
1785
|
end
|
1786
|
-
def login
|
1786
|
+
def login(username, password=nil)
|
1787
1787
|
@builder.append " -login:#{@builder.format username}"
|
1788
1788
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
1789
1789
|
yield @builder if block_given?
|
1790
1790
|
self
|
1791
1791
|
end
|
1792
|
-
def workspace
|
1792
|
+
def workspace(workspace_name, workspace_owner=nil)
|
1793
1793
|
@builder.append " -workspace:#{@builder.format workspace_name}"
|
1794
1794
|
@builder.append ";#{@builder.format workspace_owner}" unless workspace_owner.nil?
|
1795
1795
|
yield @builder if block_given?
|
1796
1796
|
self
|
1797
1797
|
end
|
1798
|
-
def collection
|
1798
|
+
def collection(team_project_collection_url)
|
1799
1799
|
@builder.append " -collection:#{@builder.format team_project_collection_url}"
|
1800
1800
|
yield @builder if block_given?
|
1801
1801
|
self
|
1802
1802
|
end
|
1803
1803
|
end
|
1804
1804
|
class CreateWorkspace < CommandBase
|
1805
|
-
def initialize
|
1805
|
+
def initialize(builder, workspace_name, workspace_owner=nil)
|
1806
1806
|
super builder
|
1807
1807
|
@builder.append " workspace -new #{@builder.format workspace_name}"
|
1808
1808
|
@builder.append ";#{@builder.format workspace_owner}" unless workspace_owner.nil?
|
@@ -1812,33 +1812,33 @@ module FluentCommandBuilder
|
|
1812
1812
|
yield @builder if block_given?
|
1813
1813
|
self
|
1814
1814
|
end
|
1815
|
-
def template
|
1815
|
+
def template(workspace_name, workspace_owner=nil)
|
1816
1816
|
@builder.append " -template:#{@builder.format workspace_name}"
|
1817
1817
|
@builder.append ";#{@builder.format workspace_owner}" unless workspace_owner.nil?
|
1818
1818
|
yield @builder if block_given?
|
1819
1819
|
self
|
1820
1820
|
end
|
1821
|
-
def computer
|
1821
|
+
def computer(computer_name)
|
1822
1822
|
@builder.append " -computer:#{@builder.format computer_name}"
|
1823
1823
|
yield @builder if block_given?
|
1824
1824
|
self
|
1825
1825
|
end
|
1826
|
-
def comment
|
1826
|
+
def comment(comment)
|
1827
1827
|
@builder.append " -comment:#{@builder.format comment}"
|
1828
1828
|
yield @builder if block_given?
|
1829
1829
|
self
|
1830
1830
|
end
|
1831
|
-
def collection
|
1831
|
+
def collection(team_project_collection_url)
|
1832
1832
|
@builder.append " -collection:#{@builder.format team_project_collection_url}"
|
1833
1833
|
yield @builder if block_given?
|
1834
1834
|
self
|
1835
1835
|
end
|
1836
|
-
def permission
|
1836
|
+
def permission(permission)
|
1837
1837
|
@builder.append " -permission:#{@builder.format permission}"
|
1838
1838
|
yield @builder if block_given?
|
1839
1839
|
self
|
1840
1840
|
end
|
1841
|
-
def login
|
1841
|
+
def login(username, password=nil)
|
1842
1842
|
@builder.append " -login:#{@builder.format username}"
|
1843
1843
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
1844
1844
|
yield @builder if block_given?
|
@@ -1846,17 +1846,17 @@ module FluentCommandBuilder
|
|
1846
1846
|
end
|
1847
1847
|
end
|
1848
1848
|
class DeleteWorkspace < CommandBase
|
1849
|
-
def initialize
|
1849
|
+
def initialize(builder, workspace_name, workspace_owner=nil)
|
1850
1850
|
super builder
|
1851
1851
|
@builder.append " workspace -delete #{@builder.format workspace_name}"
|
1852
1852
|
@builder.append ";#{@builder.format workspace_owner}" unless workspace_owner.nil?
|
1853
1853
|
end
|
1854
|
-
def collection
|
1854
|
+
def collection(team_project_collection_url)
|
1855
1855
|
@builder.append " -collection:#{@builder.format team_project_collection_url}"
|
1856
1856
|
yield @builder if block_given?
|
1857
1857
|
self
|
1858
1858
|
end
|
1859
|
-
def login
|
1859
|
+
def login(username, password=nil)
|
1860
1860
|
@builder.append " -login:#{@builder.format username}"
|
1861
1861
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
1862
1862
|
yield @builder if block_given?
|
@@ -1864,86 +1864,86 @@ module FluentCommandBuilder
|
|
1864
1864
|
end
|
1865
1865
|
end
|
1866
1866
|
class ModifyWorkspace < CommandBase
|
1867
|
-
def initialize
|
1867
|
+
def initialize(builder, workspace_name=nil, workspace_owner=nil)
|
1868
1868
|
super builder
|
1869
1869
|
@builder.append ' workspace '
|
1870
1870
|
@builder.append "#{@builder.format workspace_name}" unless workspace_name.nil?
|
1871
1871
|
@builder.append ";#{@builder.format workspace_owner}" unless workspace_owner.nil?
|
1872
1872
|
end
|
1873
|
-
def computer
|
1873
|
+
def computer(computer_name)
|
1874
1874
|
@builder.append " -computer:#{@builder.format computer_name}"
|
1875
1875
|
yield @builder if block_given?
|
1876
1876
|
self
|
1877
1877
|
end
|
1878
|
-
def comment
|
1878
|
+
def comment(comment)
|
1879
1879
|
@builder.append " -comment:#{@builder.format comment}"
|
1880
1880
|
yield @builder if block_given?
|
1881
1881
|
self
|
1882
1882
|
end
|
1883
|
-
def collection
|
1883
|
+
def collection(team_project_collection_url)
|
1884
1884
|
@builder.append " -collection:#{@builder.format team_project_collection_url}"
|
1885
1885
|
yield @builder if block_given?
|
1886
1886
|
self
|
1887
1887
|
end
|
1888
|
-
def permission
|
1888
|
+
def permission(permission)
|
1889
1889
|
@builder.append " -permission:#{@builder.format permission}"
|
1890
1890
|
yield @builder if block_given?
|
1891
1891
|
self
|
1892
1892
|
end
|
1893
|
-
def login
|
1893
|
+
def login(username, password=nil)
|
1894
1894
|
@builder.append " -login:#{@builder.format username}"
|
1895
1895
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
1896
1896
|
yield @builder if block_given?
|
1897
1897
|
self
|
1898
1898
|
end
|
1899
|
-
def new_name
|
1899
|
+
def new_name(workspace_name)
|
1900
1900
|
@builder.append " -newName:#{@builder.format workspace_name}"
|
1901
1901
|
yield @builder if block_given?
|
1902
1902
|
self
|
1903
1903
|
end
|
1904
|
-
def new_owner
|
1904
|
+
def new_owner(owner_name)
|
1905
1905
|
@builder.append " /newOwner:#{@builder.format owner_name}"
|
1906
1906
|
yield @builder if block_given?
|
1907
1907
|
self
|
1908
1908
|
end
|
1909
1909
|
end
|
1910
1910
|
class Workspaces < CommandBase
|
1911
|
-
def initialize
|
1911
|
+
def initialize(builder, workspace_name=nil)
|
1912
1912
|
super builder
|
1913
1913
|
@builder.append ' workspaces'
|
1914
1914
|
@builder.append " #{@builder.format workspace_name}" unless workspace_name.nil?
|
1915
1915
|
end
|
1916
|
-
def owner
|
1916
|
+
def owner(owner_name)
|
1917
1917
|
@builder.append " -owner:#{@builder.format owner_name}"
|
1918
1918
|
yield @builder if block_given?
|
1919
1919
|
self
|
1920
1920
|
end
|
1921
|
-
def computer
|
1921
|
+
def computer(computer_name)
|
1922
1922
|
@builder.append " -computer:#{@builder.format computer_name}"
|
1923
1923
|
yield @builder if block_given?
|
1924
1924
|
self
|
1925
1925
|
end
|
1926
|
-
def collection
|
1926
|
+
def collection(team_project_collection_url)
|
1927
1927
|
@builder.append " -collection:#{@builder.format team_project_collection_url}"
|
1928
1928
|
yield @builder if block_given?
|
1929
1929
|
self
|
1930
1930
|
end
|
1931
|
-
def format
|
1931
|
+
def format(format)
|
1932
1932
|
@builder.append " -format:#{@builder.format format}"
|
1933
1933
|
yield @builder if block_given?
|
1934
1934
|
self
|
1935
1935
|
end
|
1936
|
-
def update_user_name
|
1936
|
+
def update_user_name(old_user_name)
|
1937
1937
|
@builder.append " -updateUserName:#{@builder.format old_user_name}"
|
1938
1938
|
yield @builder if block_given?
|
1939
1939
|
self
|
1940
1940
|
end
|
1941
|
-
def update_computer_name
|
1941
|
+
def update_computer_name(old_computer_name)
|
1942
1942
|
@builder.append " -updateComputerName:#{@builder.format old_computer_name}"
|
1943
1943
|
yield @builder if block_given?
|
1944
1944
|
self
|
1945
1945
|
end
|
1946
|
-
def login
|
1946
|
+
def login(username, password=nil)
|
1947
1947
|
@builder.append " -login:#{@builder.format username}"
|
1948
1948
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
1949
1949
|
yield @builder if block_given?
|
@@ -1951,11 +1951,11 @@ module FluentCommandBuilder
|
|
1951
1951
|
end
|
1952
1952
|
end
|
1953
1953
|
class RemoveWorkspace < CommandBase
|
1954
|
-
def initialize
|
1954
|
+
def initialize(builder, workspace_name)
|
1955
1955
|
super builder
|
1956
1956
|
@builder.append " workspaces -remove:#{@builder.format workspace_name, ','}"
|
1957
1957
|
end
|
1958
|
-
def collection
|
1958
|
+
def collection(team_project_collection_url)
|
1959
1959
|
@builder.append " -collection:#{@builder.format team_project_collection_url}"
|
1960
1960
|
yield @builder if block_given?
|
1961
1961
|
self
|
@@ -1970,8 +1970,8 @@ module FluentCommandBuilder
|
|
1970
1970
|
end
|
1971
1971
|
end
|
1972
1972
|
def tf_tee_2010
|
1973
|
-
builder = CommandBuilder.new Tf::
|
1974
|
-
command = Tf::
|
1973
|
+
builder = CommandBuilder.new Tf::TEE2010::COMMAND_NAME
|
1974
|
+
command = Tf::TEE2010::Tf.new builder
|
1975
1975
|
yield builder if block_given?
|
1976
1976
|
command
|
1977
1977
|
end
|