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