fluent_command_builder 0.1.26 → 0.1.27
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_builders/aspnet_compiler_20.rb +8 -8
- data/lib/fluent_command_builder/command_builders/aspnet_compiler_35.rb +8 -8
- data/lib/fluent_command_builder/command_builders/aspnet_compiler_40.rb +8 -8
- data/lib/fluent_command_builder/command_builders/bundle_11.rb +32 -32
- data/lib/fluent_command_builder/command_builders/cucumber_11.rb +15 -15
- data/lib/fluent_command_builder/command_builders/dotcover_10.rb +70 -0
- data/lib/fluent_command_builder/command_builders/dotcover_11.rb +128 -81
- data/lib/fluent_command_builder/command_builders/dotcover_12.rb +294 -0
- data/lib/fluent_command_builder/command_builders/installutil_11.rb +5 -5
- data/lib/fluent_command_builder/command_builders/installutil_20.rb +6 -6
- data/lib/fluent_command_builder/command_builders/installutil_35.rb +6 -6
- data/lib/fluent_command_builder/command_builders/installutil_40.rb +7 -7
- data/lib/fluent_command_builder/command_builders/msbuild_20.rb +10 -10
- data/lib/fluent_command_builder/command_builders/msbuild_30.rb +10 -10
- data/lib/fluent_command_builder/command_builders/msbuild_35.rb +16 -16
- data/lib/fluent_command_builder/command_builders/msbuild_40.rb +17 -17
- data/lib/fluent_command_builder/command_builders/msdeploy_40.rb +25 -25
- data/lib/fluent_command_builder/command_builders/mstest_2005.rb +14 -14
- data/lib/fluent_command_builder/command_builders/mstest_2008.rb +14 -14
- data/lib/fluent_command_builder/command_builders/mstest_2010.rb +16 -16
- data/lib/fluent_command_builder/command_builders/netsh_2008.rb +73 -73
- data/lib/fluent_command_builder/command_builders/nunit_25.rb +48 -33
- data/lib/fluent_command_builder/command_builders/nunit_26.rb +183 -0
- data/lib/fluent_command_builder/command_builders/rake_09.rb +13 -13
- data/lib/fluent_command_builder/command_builders/sevenzip_92.rb +69 -69
- data/lib/fluent_command_builder/command_builders/simian_23.rb +24 -24
- data/lib/fluent_command_builder/command_builders/tf_2010.rb +306 -306
- data/lib/fluent_command_builder/command_builders/tf_tee_2010.rb +282 -282
- metadata +5 -2
@@ -6,120 +6,120 @@ module FluentCommandBuilder
|
|
6
6
|
module V23
|
7
7
|
COMMAND_NAME = 'simian'
|
8
8
|
class Simian < CommandBase
|
9
|
-
def initialize
|
9
|
+
def initialize(builder)
|
10
10
|
super builder
|
11
11
|
end
|
12
|
-
def formatter
|
12
|
+
def formatter(formatter)
|
13
13
|
@builder.append " -formatter=#{@builder.format formatter}"
|
14
14
|
yield @builder if block_given?
|
15
15
|
self
|
16
16
|
end
|
17
|
-
def threshold
|
17
|
+
def threshold(threshold)
|
18
18
|
@builder.append " -threshold=#{@builder.format threshold}"
|
19
19
|
yield @builder if block_given?
|
20
20
|
self
|
21
21
|
end
|
22
|
-
def language
|
22
|
+
def language(language)
|
23
23
|
@builder.append " -language=#{@builder.format language}"
|
24
24
|
yield @builder if block_given?
|
25
25
|
self
|
26
26
|
end
|
27
|
-
def default_language
|
27
|
+
def default_language(language)
|
28
28
|
@builder.append " -defaultLanguage=#{@builder.format language}"
|
29
29
|
yield @builder if block_given?
|
30
30
|
self
|
31
31
|
end
|
32
|
-
def fail_on_duplication
|
32
|
+
def fail_on_duplication(bool)
|
33
33
|
@builder.append " -failOnDuplication=#{@builder.format bool}"
|
34
34
|
yield @builder if block_given?
|
35
35
|
self
|
36
36
|
end
|
37
|
-
def report_duplicate_text
|
37
|
+
def report_duplicate_text(bool)
|
38
38
|
@builder.append " -reportDuplicateText=#{@builder.format bool}"
|
39
39
|
yield @builder if block_given?
|
40
40
|
self
|
41
41
|
end
|
42
|
-
def ignore_blocks
|
42
|
+
def ignore_blocks(markers)
|
43
43
|
@builder.append " -ignoreBlocks=#{@builder.format markers}"
|
44
44
|
yield @builder if block_given?
|
45
45
|
self
|
46
46
|
end
|
47
|
-
def ignore_curly_braces
|
47
|
+
def ignore_curly_braces(bool)
|
48
48
|
@builder.append " -ignoreCurlyBraces=#{@builder.format bool}"
|
49
49
|
yield @builder if block_given?
|
50
50
|
self
|
51
51
|
end
|
52
|
-
def ignore_identifiers
|
52
|
+
def ignore_identifiers(bool)
|
53
53
|
@builder.append " -ignoreIdentifiers=#{@builder.format bool}"
|
54
54
|
yield @builder if block_given?
|
55
55
|
self
|
56
56
|
end
|
57
|
-
def ignore_identifier_case
|
57
|
+
def ignore_identifier_case(bool)
|
58
58
|
@builder.append " -ignoreIdentifierCase=#{@builder.format bool}"
|
59
59
|
yield @builder if block_given?
|
60
60
|
self
|
61
61
|
end
|
62
|
-
def ignore_regions
|
62
|
+
def ignore_regions(bool)
|
63
63
|
@builder.append " -ignoreRegions=#{@builder.format bool}"
|
64
64
|
yield @builder if block_given?
|
65
65
|
self
|
66
66
|
end
|
67
|
-
def ignore_strings
|
67
|
+
def ignore_strings(bool)
|
68
68
|
@builder.append " -ignoreStrings=#{@builder.format bool}"
|
69
69
|
yield @builder if block_given?
|
70
70
|
self
|
71
71
|
end
|
72
|
-
def ignore_string_case
|
72
|
+
def ignore_string_case(bool)
|
73
73
|
@builder.append " -ignoreStringCase=#{@builder.format bool}"
|
74
74
|
yield @builder if block_given?
|
75
75
|
self
|
76
76
|
end
|
77
|
-
def ignore_numbers
|
77
|
+
def ignore_numbers(bool)
|
78
78
|
@builder.append " -ignoreNumbers=#{@builder.format bool}"
|
79
79
|
yield @builder if block_given?
|
80
80
|
self
|
81
81
|
end
|
82
|
-
def ignore_characters
|
82
|
+
def ignore_characters(bool)
|
83
83
|
@builder.append " -ignoreCharacters=#{@builder.format bool}"
|
84
84
|
yield @builder if block_given?
|
85
85
|
self
|
86
86
|
end
|
87
|
-
def ignore_character_case
|
87
|
+
def ignore_character_case(bool)
|
88
88
|
@builder.append " -ignoreCharacterCase=#{@builder.format bool}"
|
89
89
|
yield @builder if block_given?
|
90
90
|
self
|
91
91
|
end
|
92
|
-
def ignore_literals
|
92
|
+
def ignore_literals(bool)
|
93
93
|
@builder.append " -ignoreLiterals=#{@builder.format bool}"
|
94
94
|
yield @builder if block_given?
|
95
95
|
self
|
96
96
|
end
|
97
|
-
def ignore_subtype_names
|
97
|
+
def ignore_subtype_names(bool)
|
98
98
|
@builder.append " -ignoreSubtypeNames=#{@builder.format bool}"
|
99
99
|
yield @builder if block_given?
|
100
100
|
self
|
101
101
|
end
|
102
|
-
def ignore_modifiers
|
102
|
+
def ignore_modifiers(bool)
|
103
103
|
@builder.append " -ignoreModifiers=#{@builder.format bool}"
|
104
104
|
yield @builder if block_given?
|
105
105
|
self
|
106
106
|
end
|
107
|
-
def ignore_variable_names
|
107
|
+
def ignore_variable_names(bool)
|
108
108
|
@builder.append " -ignoreVariableNames=#{@builder.format bool}"
|
109
109
|
yield @builder if block_given?
|
110
110
|
self
|
111
111
|
end
|
112
|
-
def balance_parentheses
|
112
|
+
def balance_parentheses(bool)
|
113
113
|
@builder.append " -balanceParentheses=#{@builder.format bool}"
|
114
114
|
yield @builder if block_given?
|
115
115
|
self
|
116
116
|
end
|
117
|
-
def balance_curly_braces
|
117
|
+
def balance_curly_braces(bool)
|
118
118
|
@builder.append " -balanceCurlyBraces=#{@builder.format bool}"
|
119
119
|
yield @builder if block_given?
|
120
120
|
self
|
121
121
|
end
|
122
|
-
def balance_square_brackets
|
122
|
+
def balance_square_brackets(bool)
|
123
123
|
@builder.append " -balanceSquareBrackets=#{@builder.format bool}"
|
124
124
|
yield @builder if block_given?
|
125
125
|
self
|
@@ -6,46 +6,46 @@ module FluentCommandBuilder
|
|
6
6
|
module V2010
|
7
7
|
COMMAND_NAME = 'tf'
|
8
8
|
class Tf < CommandBase
|
9
|
-
def initialize
|
9
|
+
def initialize(builder)
|
10
10
|
super builder
|
11
11
|
end
|
12
|
-
def add
|
12
|
+
def add(item_spec)
|
13
13
|
Add.new @builder, item_spec
|
14
14
|
end
|
15
|
-
def branch
|
15
|
+
def branch(old_item, new_item)
|
16
16
|
Branch.new @builder, old_item, new_item
|
17
17
|
end
|
18
|
-
def branches
|
18
|
+
def branches(item_spec)
|
19
19
|
Branches.new @builder, item_spec
|
20
20
|
end
|
21
|
-
def changeset
|
21
|
+
def changeset(changeset_number=nil)
|
22
22
|
Changeset.new @builder, changeset_number
|
23
23
|
end
|
24
|
-
def checkin
|
24
|
+
def checkin(item_spec=nil)
|
25
25
|
Checkin.new @builder, item_spec
|
26
26
|
end
|
27
|
-
def checkin_shelveset
|
27
|
+
def checkin_shelveset(shelveset_name, shelveset_owner=nil)
|
28
28
|
CheckinShelveset.new @builder, shelveset_name, shelveset_owner
|
29
29
|
end
|
30
|
-
def checkout
|
30
|
+
def checkout(item_spec=nil)
|
31
31
|
Checkout.new @builder, item_spec
|
32
32
|
end
|
33
|
-
def configure
|
33
|
+
def configure(path_of_team_project=nil)
|
34
34
|
Configure.new @builder, path_of_team_project
|
35
35
|
end
|
36
|
-
def delete
|
36
|
+
def delete(item_spec)
|
37
37
|
Delete.new @builder, item_spec
|
38
38
|
end
|
39
|
-
def destroy
|
39
|
+
def destroy(item_spec)
|
40
40
|
Destroy.new @builder, item_spec
|
41
41
|
end
|
42
|
-
def compare_with_current_workspace_version
|
42
|
+
def compare_with_current_workspace_version(item_spec)
|
43
43
|
CompareWithCurrentWorkspaceVersion.new @builder, item_spec
|
44
44
|
end
|
45
|
-
def compare
|
45
|
+
def compare(item_spec, item_spec2)
|
46
46
|
Compare.new @builder, item_spec, item_spec2
|
47
47
|
end
|
48
|
-
def compare_with_shelveset_version
|
48
|
+
def compare_with_shelveset_version(shelveset_item_spec)
|
49
49
|
CompareWithShelvesetVersion.new @builder, shelveset_item_spec
|
50
50
|
end
|
51
51
|
def configure_compare_tool
|
@@ -53,67 +53,67 @@ module FluentCommandBuilder
|
|
53
53
|
yield @builder if block_given?
|
54
54
|
self
|
55
55
|
end
|
56
|
-
def dir
|
56
|
+
def dir(item_spec)
|
57
57
|
Dir.new @builder, item_spec
|
58
58
|
end
|
59
|
-
def folder_diff
|
59
|
+
def folder_diff(target_path, source_path=nil)
|
60
60
|
FolderDiff.new @builder, target_path, source_path
|
61
61
|
end
|
62
|
-
def get
|
62
|
+
def get(item_spec=nil)
|
63
63
|
Get.new @builder, item_spec
|
64
64
|
end
|
65
|
-
def help
|
65
|
+
def help(command_name=nil)
|
66
66
|
@builder.append ' help'
|
67
67
|
@builder.append " #{@builder.format command_name}" unless command_name.nil?
|
68
68
|
yield @builder if block_given?
|
69
69
|
self
|
70
70
|
end
|
71
|
-
def history
|
71
|
+
def history(item_spec)
|
72
72
|
History.new @builder, item_spec
|
73
73
|
end
|
74
|
-
def label
|
74
|
+
def label(label_name, item_spec, scope=nil)
|
75
75
|
Label.new @builder, label_name, item_spec, scope
|
76
76
|
end
|
77
|
-
def delete_label
|
77
|
+
def delete_label(label_name, item_spec, scope=nil)
|
78
78
|
DeleteLabel.new @builder, label_name, item_spec, scope
|
79
79
|
end
|
80
|
-
def labels
|
80
|
+
def labels(label_name=nil)
|
81
81
|
Labels.new @builder, label_name
|
82
82
|
end
|
83
|
-
def local_versions
|
83
|
+
def local_versions(item_spec)
|
84
84
|
LocalVersions.new @builder, item_spec
|
85
85
|
end
|
86
|
-
def lock
|
86
|
+
def lock(item_spec)
|
87
87
|
Lock.new @builder, item_spec
|
88
88
|
end
|
89
|
-
def merge
|
89
|
+
def merge(source, destination)
|
90
90
|
Merge.new @builder, source, destination
|
91
91
|
end
|
92
|
-
def merges
|
92
|
+
def merges(destination, source=nil)
|
93
93
|
Merges.new @builder, destination, source
|
94
94
|
end
|
95
|
-
def msdn
|
95
|
+
def msdn(command_name=nil)
|
96
96
|
@builder.append ' msdn'
|
97
97
|
@builder.append " #{@builder.format command_name}" unless command_name.nil?
|
98
98
|
yield @builder if block_given?
|
99
99
|
self
|
100
100
|
end
|
101
|
-
def permission
|
101
|
+
def permission(item_spec)
|
102
102
|
Permission.new @builder, item_spec
|
103
103
|
end
|
104
|
-
def properties
|
104
|
+
def properties(item_spec)
|
105
105
|
Properties.new @builder, item_spec
|
106
106
|
end
|
107
|
-
def configure_proxy
|
107
|
+
def configure_proxy(url)
|
108
108
|
ConfigureProxy.new @builder, url
|
109
109
|
end
|
110
|
-
def add_proxy_record
|
110
|
+
def add_proxy_record(url)
|
111
111
|
AddProxyRecord.new @builder, url
|
112
112
|
end
|
113
|
-
def delete_proxy_record
|
113
|
+
def delete_proxy_record(url)
|
114
114
|
DeleteProxyRecord.new @builder, url
|
115
115
|
end
|
116
|
-
def list_proxy_records
|
116
|
+
def list_proxy_records(url)
|
117
117
|
ListProxyRecords.new @builder, url
|
118
118
|
end
|
119
119
|
def enable_proxy
|
@@ -126,96 +126,96 @@ module FluentCommandBuilder
|
|
126
126
|
yield @builder if block_given?
|
127
127
|
self
|
128
128
|
end
|
129
|
-
def rename
|
129
|
+
def rename(old_item, new_item)
|
130
130
|
Rename.new @builder, old_item, new_item
|
131
131
|
end
|
132
|
-
def resolve
|
132
|
+
def resolve(item_spec=nil)
|
133
133
|
Resolve.new @builder, item_spec
|
134
134
|
end
|
135
|
-
def rollback_to_version
|
135
|
+
def rollback_to_version(version_spec, item_spec)
|
136
136
|
RollbackToVersion.new @builder, version_spec, item_spec
|
137
137
|
end
|
138
|
-
def rollback_changeset
|
138
|
+
def rollback_changeset(changeset_from, changeset_to=nil, item_spec=nil)
|
139
139
|
RollbackChangeset.new @builder, changeset_from, changeset_to, item_spec
|
140
140
|
end
|
141
|
-
def replace_shelveset
|
141
|
+
def replace_shelveset(shelveset_name)
|
142
142
|
ReplaceShelveset.new @builder, shelveset_name
|
143
143
|
end
|
144
|
-
def shelve
|
144
|
+
def shelve(shelveset_name, item_spec)
|
145
145
|
Shelve.new @builder, shelveset_name, item_spec
|
146
146
|
end
|
147
|
-
def delete_shelveset
|
147
|
+
def delete_shelveset(shelveset_name, shelveset_owner=nil)
|
148
148
|
DeleteShelveset.new @builder, shelveset_name, shelveset_owner
|
149
149
|
end
|
150
|
-
def shelvesets
|
150
|
+
def shelvesets(shelveset_name=nil)
|
151
151
|
Shelvesets.new @builder, shelveset_name
|
152
152
|
end
|
153
|
-
def status
|
153
|
+
def status(item_spec)
|
154
154
|
Status.new @builder, item_spec
|
155
155
|
end
|
156
|
-
def undelete
|
156
|
+
def undelete(item_spec, deletion_id=nil)
|
157
157
|
Undelete.new @builder, item_spec, deletion_id
|
158
158
|
end
|
159
|
-
def undo
|
159
|
+
def undo(item_spec)
|
160
160
|
Undo.new @builder, item_spec
|
161
161
|
end
|
162
|
-
def unlabel
|
162
|
+
def unlabel(label_name, item_spec)
|
163
163
|
Unlabel.new @builder, label_name, item_spec
|
164
164
|
end
|
165
|
-
def unshelve
|
165
|
+
def unshelve(shelveset_name=nil, username=nil, item_spec=nil)
|
166
166
|
Unshelve.new @builder, shelveset_name, username, item_spec
|
167
167
|
end
|
168
|
-
def view
|
168
|
+
def view(item_spec)
|
169
169
|
View.new @builder, item_spec
|
170
170
|
end
|
171
|
-
def show_local_folder_mapping
|
171
|
+
def show_local_folder_mapping(local_folder)
|
172
172
|
ShowLocalFolderMapping.new @builder, local_folder
|
173
173
|
end
|
174
|
-
def show_workspace_mappings
|
174
|
+
def show_workspace_mappings(workspace_name)
|
175
175
|
ShowWorkspaceMappings.new @builder, workspace_name
|
176
176
|
end
|
177
|
-
def show_server_folder_mappings
|
177
|
+
def show_server_folder_mappings(server_folder)
|
178
178
|
ShowServerFolderMappings.new @builder, server_folder
|
179
179
|
end
|
180
|
-
def map_folder
|
180
|
+
def map_folder(server_folder, local_folder)
|
181
181
|
MapFolder.new @builder, server_folder, local_folder
|
182
182
|
end
|
183
183
|
def unmap_folder
|
184
184
|
UnmapFolder.new @builder
|
185
185
|
end
|
186
|
-
def cloak_folder
|
186
|
+
def cloak_folder(server_folder)
|
187
187
|
CloakFolder.new @builder, server_folder
|
188
188
|
end
|
189
|
-
def decloak_folder
|
189
|
+
def decloak_folder(server_folder)
|
190
190
|
DecloakFolder.new @builder, server_folder
|
191
191
|
end
|
192
|
-
def create_workspace
|
192
|
+
def create_workspace(workspace_name, workspace_owner=nil)
|
193
193
|
CreateWorkspace.new @builder, workspace_name, workspace_owner
|
194
194
|
end
|
195
|
-
def delete_workspace
|
195
|
+
def delete_workspace(workspace_name, workspace_owner=nil)
|
196
196
|
DeleteWorkspace.new @builder, workspace_name, workspace_owner
|
197
197
|
end
|
198
|
-
def modify_workspace
|
198
|
+
def modify_workspace(workspace_name=nil, workspace_owner=nil)
|
199
199
|
ModifyWorkspace.new @builder, workspace_name, workspace_owner
|
200
200
|
end
|
201
|
-
def workspaces
|
201
|
+
def workspaces(workspace_name=nil)
|
202
202
|
Workspaces.new @builder, workspace_name
|
203
203
|
end
|
204
|
-
def remove_workspace
|
204
|
+
def remove_workspace(workspace_name)
|
205
205
|
RemoveWorkspace.new @builder, workspace_name
|
206
206
|
end
|
207
207
|
end
|
208
208
|
class Add < CommandBase
|
209
|
-
def initialize
|
209
|
+
def initialize(builder, item_spec)
|
210
210
|
super builder
|
211
211
|
@builder.append " add #{@builder.format item_spec}"
|
212
212
|
end
|
213
|
-
def lock
|
213
|
+
def lock(lock_type)
|
214
214
|
@builder.append " /lock:#{@builder.format lock_type}"
|
215
215
|
yield @builder if block_given?
|
216
216
|
self
|
217
217
|
end
|
218
|
-
def type
|
218
|
+
def type(file_type)
|
219
219
|
@builder.append " /type:#{@builder.format file_type}"
|
220
220
|
yield @builder if block_given?
|
221
221
|
self
|
@@ -230,7 +230,7 @@ module FluentCommandBuilder
|
|
230
230
|
yield @builder if block_given?
|
231
231
|
self
|
232
232
|
end
|
233
|
-
def login
|
233
|
+
def login(username, password=nil)
|
234
234
|
@builder.append " /login:#{@builder.format username}"
|
235
235
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
236
236
|
yield @builder if block_given?
|
@@ -238,11 +238,11 @@ module FluentCommandBuilder
|
|
238
238
|
end
|
239
239
|
end
|
240
240
|
class Branch < CommandBase
|
241
|
-
def initialize
|
241
|
+
def initialize(builder, old_item, new_item)
|
242
242
|
super builder
|
243
243
|
@builder.append " branch #{@builder.format old_item} #{@builder.format new_item}"
|
244
244
|
end
|
245
|
-
def version
|
245
|
+
def version(version_spec)
|
246
246
|
@builder.append " /version:#{@builder.format version_spec}"
|
247
247
|
yield @builder if block_given?
|
248
248
|
self
|
@@ -252,7 +252,7 @@ module FluentCommandBuilder
|
|
252
252
|
yield @builder if block_given?
|
253
253
|
self
|
254
254
|
end
|
255
|
-
def lock
|
255
|
+
def lock(lock_type)
|
256
256
|
@builder.append " /lock:#{@builder.format lock_type}"
|
257
257
|
yield @builder if block_given?
|
258
258
|
self
|
@@ -272,17 +272,17 @@ module FluentCommandBuilder
|
|
272
272
|
yield @builder if block_given?
|
273
273
|
self
|
274
274
|
end
|
275
|
-
def comment
|
275
|
+
def comment(comment)
|
276
276
|
@builder.append " /comment:#{@builder.format comment}"
|
277
277
|
yield @builder if block_given?
|
278
278
|
self
|
279
279
|
end
|
280
|
-
def author
|
280
|
+
def author(author_name)
|
281
281
|
@builder.append " /author:#{@builder.format author_name}"
|
282
282
|
yield @builder if block_given?
|
283
283
|
self
|
284
284
|
end
|
285
|
-
def login
|
285
|
+
def login(username, password=nil)
|
286
286
|
@builder.append " /login:#{@builder.format username}"
|
287
287
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
288
288
|
yield @builder if block_given?
|
@@ -290,21 +290,21 @@ module FluentCommandBuilder
|
|
290
290
|
end
|
291
291
|
end
|
292
292
|
class Branches < CommandBase
|
293
|
-
def initialize
|
293
|
+
def initialize(builder, item_spec)
|
294
294
|
super builder
|
295
295
|
@builder.append " branches #{@builder.format item_spec}"
|
296
296
|
end
|
297
|
-
def version
|
297
|
+
def version(version_spec)
|
298
298
|
@builder.append " /version:#{@builder.format version_spec}"
|
299
299
|
yield @builder if block_given?
|
300
300
|
self
|
301
301
|
end
|
302
|
-
def collection
|
302
|
+
def collection(team_project_collection_url)
|
303
303
|
@builder.append " /collection:#{@builder.format team_project_collection_url}"
|
304
304
|
yield @builder if block_given?
|
305
305
|
self
|
306
306
|
end
|
307
|
-
def login
|
307
|
+
def login(username, password=nil)
|
308
308
|
@builder.append " /login:#{@builder.format username}"
|
309
309
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
310
310
|
yield @builder if block_given?
|
@@ -312,17 +312,17 @@ module FluentCommandBuilder
|
|
312
312
|
end
|
313
313
|
end
|
314
314
|
class Changeset < CommandBase
|
315
|
-
def initialize
|
315
|
+
def initialize(builder, changeset_number=nil)
|
316
316
|
super builder
|
317
317
|
@builder.append ' changeset'
|
318
318
|
@builder.append " #{@builder.format changeset_number}" unless changeset_number.nil?
|
319
319
|
end
|
320
|
-
def comment
|
320
|
+
def comment(comment)
|
321
321
|
@builder.append " /comment:#{@builder.format comment}"
|
322
322
|
yield @builder if block_given?
|
323
323
|
self
|
324
324
|
end
|
325
|
-
def notes
|
325
|
+
def notes(notes)
|
326
326
|
@builder.append " /notes:#{@builder.format notes, ';', '='}"
|
327
327
|
yield @builder if block_given?
|
328
328
|
self
|
@@ -332,7 +332,7 @@ module FluentCommandBuilder
|
|
332
332
|
yield @builder if block_given?
|
333
333
|
self
|
334
334
|
end
|
335
|
-
def collection
|
335
|
+
def collection(team_project_collection_url)
|
336
336
|
@builder.append " /collection:#{@builder.format team_project_collection_url}"
|
337
337
|
yield @builder if block_given?
|
338
338
|
self
|
@@ -342,7 +342,7 @@ module FluentCommandBuilder
|
|
342
342
|
yield @builder if block_given?
|
343
343
|
self
|
344
344
|
end
|
345
|
-
def login
|
345
|
+
def login(username, password=nil)
|
346
346
|
@builder.append " /login:#{@builder.format username}"
|
347
347
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
348
348
|
yield @builder if block_given?
|
@@ -350,17 +350,17 @@ module FluentCommandBuilder
|
|
350
350
|
end
|
351
351
|
end
|
352
352
|
class Checkin < CommandBase
|
353
|
-
def initialize
|
353
|
+
def initialize(builder, item_spec=nil)
|
354
354
|
super builder
|
355
355
|
@builder.append ' checkin'
|
356
356
|
@builder.append " #{@builder.format item_spec}" unless item_spec.nil?
|
357
357
|
end
|
358
|
-
def author
|
358
|
+
def author(author_name)
|
359
359
|
@builder.append " /author:#{@builder.format author_name}"
|
360
360
|
yield @builder if block_given?
|
361
361
|
self
|
362
362
|
end
|
363
|
-
def comment
|
363
|
+
def comment(comment)
|
364
364
|
@builder.append " /comment:#{@builder.format comment}"
|
365
365
|
yield @builder if block_given?
|
366
366
|
self
|
@@ -370,12 +370,12 @@ module FluentCommandBuilder
|
|
370
370
|
yield @builder if block_given?
|
371
371
|
self
|
372
372
|
end
|
373
|
-
def notes
|
373
|
+
def notes(notes)
|
374
374
|
@builder.append " /notes:#{@builder.format notes, ';', '='}"
|
375
375
|
yield @builder if block_given?
|
376
376
|
self
|
377
377
|
end
|
378
|
-
def override
|
378
|
+
def override(reason)
|
379
379
|
@builder.append " /override:#{@builder.format reason}"
|
380
380
|
yield @builder if block_given?
|
381
381
|
self
|
@@ -400,7 +400,7 @@ module FluentCommandBuilder
|
|
400
400
|
yield @builder if block_given?
|
401
401
|
self
|
402
402
|
end
|
403
|
-
def login
|
403
|
+
def login(username, password=nil)
|
404
404
|
@builder.append " /login:#{@builder.format username}"
|
405
405
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
406
406
|
yield @builder if block_given?
|
@@ -413,7 +413,7 @@ module FluentCommandBuilder
|
|
413
413
|
end
|
414
414
|
end
|
415
415
|
class CheckinShelveset < CommandBase
|
416
|
-
def initialize
|
416
|
+
def initialize(builder, shelveset_name, shelveset_owner=nil)
|
417
417
|
super builder
|
418
418
|
@builder.append " checkin /shelveset:#{@builder.format shelveset_name}"
|
419
419
|
@builder.append ";#{@builder.format shelveset_owner}" unless shelveset_owner.nil?
|
@@ -428,18 +428,18 @@ module FluentCommandBuilder
|
|
428
428
|
yield @builder if block_given?
|
429
429
|
self
|
430
430
|
end
|
431
|
-
def login
|
431
|
+
def login(username, password=nil)
|
432
432
|
@builder.append " /login:#{@builder.format username}"
|
433
433
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
434
434
|
yield @builder if block_given?
|
435
435
|
self
|
436
436
|
end
|
437
|
-
def collection
|
437
|
+
def collection(team_project_collection_url)
|
438
438
|
@builder.append " /collection:#{@builder.format team_project_collection_url}"
|
439
439
|
yield @builder if block_given?
|
440
440
|
self
|
441
441
|
end
|
442
|
-
def author
|
442
|
+
def author(author_name)
|
443
443
|
@builder.append " /author:#{@builder.format author_name}"
|
444
444
|
yield @builder if block_given?
|
445
445
|
self
|
@@ -451,12 +451,12 @@ module FluentCommandBuilder
|
|
451
451
|
end
|
452
452
|
end
|
453
453
|
class Checkout < CommandBase
|
454
|
-
def initialize
|
454
|
+
def initialize(builder, item_spec=nil)
|
455
455
|
super builder
|
456
456
|
@builder.append ' checkout'
|
457
457
|
@builder.append " #{@builder.format item_spec}" unless item_spec.nil?
|
458
458
|
end
|
459
|
-
def lock
|
459
|
+
def lock(lock_type)
|
460
460
|
@builder.append " /lock:#{@builder.format lock_type}"
|
461
461
|
yield @builder if block_given?
|
462
462
|
self
|
@@ -466,12 +466,12 @@ module FluentCommandBuilder
|
|
466
466
|
yield @builder if block_given?
|
467
467
|
self
|
468
468
|
end
|
469
|
-
def type
|
469
|
+
def type(encoding)
|
470
470
|
@builder.append " /type:#{@builder.format encoding}"
|
471
471
|
yield @builder if block_given?
|
472
472
|
self
|
473
473
|
end
|
474
|
-
def login
|
474
|
+
def login(username, password=nil)
|
475
475
|
@builder.append " /login:#{@builder.format username}"
|
476
476
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
477
477
|
yield @builder if block_given?
|
@@ -479,17 +479,17 @@ module FluentCommandBuilder
|
|
479
479
|
end
|
480
480
|
end
|
481
481
|
class Configure < CommandBase
|
482
|
-
def initialize
|
482
|
+
def initialize(builder, path_of_team_project=nil)
|
483
483
|
super builder
|
484
484
|
@builder.append ' configure'
|
485
485
|
@builder.append " #{@builder.format path_of_team_project}" unless path_of_team_project.nil?
|
486
486
|
end
|
487
|
-
def collection
|
487
|
+
def collection(team_project_collection_url)
|
488
488
|
@builder.append " /collection:#{@builder.format team_project_collection_url}"
|
489
489
|
yield @builder if block_given?
|
490
490
|
self
|
491
491
|
end
|
492
|
-
def login
|
492
|
+
def login(username, password=nil)
|
493
493
|
@builder.append " /login:#{@builder.format username}"
|
494
494
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
495
495
|
yield @builder if block_given?
|
@@ -497,11 +497,11 @@ module FluentCommandBuilder
|
|
497
497
|
end
|
498
498
|
end
|
499
499
|
class Delete < CommandBase
|
500
|
-
def initialize
|
500
|
+
def initialize(builder, item_spec)
|
501
501
|
super builder
|
502
502
|
@builder.append " delete #{@builder.format item_spec}"
|
503
503
|
end
|
504
|
-
def lock
|
504
|
+
def lock(lock_type)
|
505
505
|
@builder.append " /lock:#{@builder.format lock_type}"
|
506
506
|
yield @builder if block_given?
|
507
507
|
self
|
@@ -511,7 +511,7 @@ module FluentCommandBuilder
|
|
511
511
|
yield @builder if block_given?
|
512
512
|
self
|
513
513
|
end
|
514
|
-
def login
|
514
|
+
def login(username, password=nil)
|
515
515
|
@builder.append " /login:#{@builder.format username}"
|
516
516
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
517
517
|
yield @builder if block_given?
|
@@ -519,7 +519,7 @@ module FluentCommandBuilder
|
|
519
519
|
end
|
520
520
|
end
|
521
521
|
class Destroy < CommandBase
|
522
|
-
def initialize
|
522
|
+
def initialize(builder, item_spec)
|
523
523
|
super builder
|
524
524
|
@builder.append " destroy #{@builder.format item_spec}"
|
525
525
|
end
|
@@ -528,7 +528,7 @@ module FluentCommandBuilder
|
|
528
528
|
yield @builder if block_given?
|
529
529
|
self
|
530
530
|
end
|
531
|
-
def stop_at
|
531
|
+
def stop_at(version_spec)
|
532
532
|
@builder.append " /stopAt:#{@builder.format version_spec}"
|
533
533
|
yield @builder if block_given?
|
534
534
|
self
|
@@ -553,34 +553,34 @@ module FluentCommandBuilder
|
|
553
553
|
yield @builder if block_given?
|
554
554
|
self
|
555
555
|
end
|
556
|
-
def login
|
556
|
+
def login(username, password=nil)
|
557
557
|
@builder.append " /login:#{@builder.format username}"
|
558
558
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
559
559
|
yield @builder if block_given?
|
560
560
|
self
|
561
561
|
end
|
562
|
-
def collection
|
562
|
+
def collection(team_project_collection_url)
|
563
563
|
@builder.append " /collection:#{@builder.format team_project_collection_url}"
|
564
564
|
yield @builder if block_given?
|
565
565
|
self
|
566
566
|
end
|
567
567
|
end
|
568
568
|
class CompareWithCurrentWorkspaceVersion < CommandBase
|
569
|
-
def initialize
|
569
|
+
def initialize(builder, item_spec)
|
570
570
|
super builder
|
571
571
|
@builder.append " difference #{@builder.format item_spec}"
|
572
572
|
end
|
573
|
-
def version
|
573
|
+
def version(version_spec)
|
574
574
|
@builder.append " /version:#{@builder.format version_spec}"
|
575
575
|
yield @builder if block_given?
|
576
576
|
self
|
577
577
|
end
|
578
|
-
def type
|
578
|
+
def type(file_type)
|
579
579
|
@builder.append " /type:#{@builder.format file_type}"
|
580
580
|
yield @builder if block_given?
|
581
581
|
self
|
582
582
|
end
|
583
|
-
def format
|
583
|
+
def format(format)
|
584
584
|
@builder.append " /format:#{@builder.format format}"
|
585
585
|
yield @builder if block_given?
|
586
586
|
self
|
@@ -615,7 +615,7 @@ module FluentCommandBuilder
|
|
615
615
|
yield @builder if block_given?
|
616
616
|
self
|
617
617
|
end
|
618
|
-
def login
|
618
|
+
def login(username, password=nil)
|
619
619
|
@builder.append " /login:#{@builder.format username}"
|
620
620
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
621
621
|
yield @builder if block_given?
|
@@ -623,16 +623,16 @@ module FluentCommandBuilder
|
|
623
623
|
end
|
624
624
|
end
|
625
625
|
class Compare < CommandBase
|
626
|
-
def initialize
|
626
|
+
def initialize(builder, item_spec, item_spec2)
|
627
627
|
super builder
|
628
628
|
@builder.append " difference #{@builder.format item_spec} #{@builder.format item_spec2}"
|
629
629
|
end
|
630
|
-
def type
|
630
|
+
def type(file_type)
|
631
631
|
@builder.append " /type:#{@builder.format file_type}"
|
632
632
|
yield @builder if block_given?
|
633
633
|
self
|
634
634
|
end
|
635
|
-
def format
|
635
|
+
def format(format)
|
636
636
|
@builder.append " /format:#{@builder.format format}"
|
637
637
|
yield @builder if block_given?
|
638
638
|
self
|
@@ -667,7 +667,7 @@ module FluentCommandBuilder
|
|
667
667
|
yield @builder if block_given?
|
668
668
|
self
|
669
669
|
end
|
670
|
-
def login
|
670
|
+
def login(username, password=nil)
|
671
671
|
@builder.append " /login:#{@builder.format username}"
|
672
672
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
673
673
|
yield @builder if block_given?
|
@@ -675,22 +675,22 @@ module FluentCommandBuilder
|
|
675
675
|
end
|
676
676
|
end
|
677
677
|
class CompareWithShelvesetVersion < CommandBase
|
678
|
-
def initialize
|
678
|
+
def initialize(builder, shelveset_item_spec)
|
679
679
|
super builder
|
680
680
|
@builder.append " difference #{@builder.format shelveset_item_spec}"
|
681
681
|
end
|
682
|
-
def shelveset
|
682
|
+
def shelveset(shelveset_name, shelveset_owner=nil)
|
683
683
|
@builder.append " /shelveset:#{@builder.format shelveset_name}"
|
684
684
|
@builder.append ";#{@builder.format shelveset_owner}" unless shelveset_owner.nil?
|
685
685
|
yield @builder if block_given?
|
686
686
|
self
|
687
687
|
end
|
688
|
-
def type
|
688
|
+
def type(file_type)
|
689
689
|
@builder.append " /type:#{@builder.format file_type}"
|
690
690
|
yield @builder if block_given?
|
691
691
|
self
|
692
692
|
end
|
693
|
-
def format
|
693
|
+
def format(format)
|
694
694
|
@builder.append " /format:#{@builder.format format}"
|
695
695
|
yield @builder if block_given?
|
696
696
|
self
|
@@ -725,7 +725,7 @@ module FluentCommandBuilder
|
|
725
725
|
yield @builder if block_given?
|
726
726
|
self
|
727
727
|
end
|
728
|
-
def login
|
728
|
+
def login(username, password=nil)
|
729
729
|
@builder.append " /login:#{@builder.format username}"
|
730
730
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
731
731
|
yield @builder if block_given?
|
@@ -733,11 +733,11 @@ module FluentCommandBuilder
|
|
733
733
|
end
|
734
734
|
end
|
735
735
|
class Dir < CommandBase
|
736
|
-
def initialize
|
736
|
+
def initialize(builder, item_spec)
|
737
737
|
super builder
|
738
738
|
@builder.append " dir #{@builder.format item_spec}"
|
739
739
|
end
|
740
|
-
def version
|
740
|
+
def version(version_spec)
|
741
741
|
@builder.append " /version:#{@builder.format version_spec}"
|
742
742
|
yield @builder if block_given?
|
743
743
|
self
|
@@ -757,20 +757,20 @@ module FluentCommandBuilder
|
|
757
757
|
yield @builder if block_given?
|
758
758
|
self
|
759
759
|
end
|
760
|
-
def login
|
760
|
+
def login(username, password=nil)
|
761
761
|
@builder.append " /login:#{@builder.format username}"
|
762
762
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
763
763
|
yield @builder if block_given?
|
764
764
|
self
|
765
765
|
end
|
766
|
-
def collection
|
766
|
+
def collection(team_project_collection_url)
|
767
767
|
@builder.append " /collection:#{@builder.format team_project_collection_url}"
|
768
768
|
yield @builder if block_given?
|
769
769
|
self
|
770
770
|
end
|
771
771
|
end
|
772
772
|
class FolderDiff < CommandBase
|
773
|
-
def initialize
|
773
|
+
def initialize(builder, target_path, source_path=nil)
|
774
774
|
super builder
|
775
775
|
@builder.append ' folderDiff'
|
776
776
|
@builder.append " #{@builder.format source_path}" unless source_path.nil?
|
@@ -786,12 +786,12 @@ module FluentCommandBuilder
|
|
786
786
|
yield @builder if block_given?
|
787
787
|
self
|
788
788
|
end
|
789
|
-
def collection
|
789
|
+
def collection(team_project_collection_url)
|
790
790
|
@builder.append " /collection:#{@builder.format team_project_collection_url}"
|
791
791
|
yield @builder if block_given?
|
792
792
|
self
|
793
793
|
end
|
794
|
-
def filter
|
794
|
+
def filter(filter)
|
795
795
|
@builder.append " /filter:#{@builder.format filter, ';'}"
|
796
796
|
yield @builder if block_given?
|
797
797
|
self
|
@@ -801,25 +801,25 @@ module FluentCommandBuilder
|
|
801
801
|
yield @builder if block_given?
|
802
802
|
self
|
803
803
|
end
|
804
|
-
def login
|
804
|
+
def login(username, password=nil)
|
805
805
|
@builder.append " /login:#{@builder.format username}"
|
806
806
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
807
807
|
yield @builder if block_given?
|
808
808
|
self
|
809
809
|
end
|
810
|
-
def view
|
810
|
+
def view(view)
|
811
811
|
@builder.append " /view:#{@builder.format view, ','}"
|
812
812
|
yield @builder if block_given?
|
813
813
|
self
|
814
814
|
end
|
815
815
|
end
|
816
816
|
class Get < CommandBase
|
817
|
-
def initialize
|
817
|
+
def initialize(builder, item_spec=nil)
|
818
818
|
super builder
|
819
819
|
@builder.append ' get'
|
820
820
|
@builder.append " #{@builder.format item_spec}" unless item_spec.nil?
|
821
821
|
end
|
822
|
-
def version
|
822
|
+
def version(version_spec)
|
823
823
|
@builder.append " /version:#{@builder.format version_spec}"
|
824
824
|
yield @builder if block_given?
|
825
825
|
self
|
@@ -859,7 +859,7 @@ module FluentCommandBuilder
|
|
859
859
|
yield @builder if block_given?
|
860
860
|
self
|
861
861
|
end
|
862
|
-
def login
|
862
|
+
def login(username, password=nil)
|
863
863
|
@builder.append " /login:#{@builder.format username}"
|
864
864
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
865
865
|
yield @builder if block_given?
|
@@ -867,16 +867,16 @@ module FluentCommandBuilder
|
|
867
867
|
end
|
868
868
|
end
|
869
869
|
class History < CommandBase
|
870
|
-
def initialize
|
870
|
+
def initialize(builder, item_spec)
|
871
871
|
super builder
|
872
872
|
@builder.append " history #{@builder.format item_spec}"
|
873
873
|
end
|
874
|
-
def version
|
874
|
+
def version(version_spec)
|
875
875
|
@builder.append " /version:#{@builder.format version_spec}"
|
876
876
|
yield @builder if block_given?
|
877
877
|
self
|
878
878
|
end
|
879
|
-
def stop_after
|
879
|
+
def stop_after(number)
|
880
880
|
@builder.append " /stopAfter:#{@builder.format number}"
|
881
881
|
yield @builder if block_given?
|
882
882
|
self
|
@@ -886,12 +886,12 @@ module FluentCommandBuilder
|
|
886
886
|
yield @builder if block_given?
|
887
887
|
self
|
888
888
|
end
|
889
|
-
def user
|
889
|
+
def user(user_name)
|
890
890
|
@builder.append " /user:#{@builder.format user_name}"
|
891
891
|
yield @builder if block_given?
|
892
892
|
self
|
893
893
|
end
|
894
|
-
def format
|
894
|
+
def format(format)
|
895
895
|
@builder.append " /format:#{@builder.format format}"
|
896
896
|
yield @builder if block_given?
|
897
897
|
self
|
@@ -911,46 +911,46 @@ module FluentCommandBuilder
|
|
911
911
|
yield @builder if block_given?
|
912
912
|
self
|
913
913
|
end
|
914
|
-
def login
|
914
|
+
def login(username, password=nil)
|
915
915
|
@builder.append " /login:#{@builder.format username}"
|
916
916
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
917
917
|
yield @builder if block_given?
|
918
918
|
self
|
919
919
|
end
|
920
|
-
def sort
|
920
|
+
def sort(sort)
|
921
921
|
@builder.append " /sort:#{@builder.format sort}"
|
922
922
|
yield @builder if block_given?
|
923
923
|
self
|
924
924
|
end
|
925
|
-
def collection
|
925
|
+
def collection(team_project_collection_url)
|
926
926
|
@builder.append " /collection:#{@builder.format team_project_collection_url}"
|
927
927
|
yield @builder if block_given?
|
928
928
|
self
|
929
929
|
end
|
930
930
|
end
|
931
931
|
class Label < CommandBase
|
932
|
-
def initialize
|
932
|
+
def initialize(builder, label_name, item_spec, scope=nil)
|
933
933
|
super builder
|
934
934
|
@builder.append " label #{@builder.format label_name}"
|
935
935
|
@builder.append "@#{@builder.format scope}" unless scope.nil?
|
936
936
|
@builder.append " #{@builder.format item_spec}"
|
937
937
|
end
|
938
|
-
def owner
|
938
|
+
def owner(owner_name)
|
939
939
|
@builder.append " /owner:#{@builder.format owner_name}"
|
940
940
|
yield @builder if block_given?
|
941
941
|
self
|
942
942
|
end
|
943
|
-
def version
|
943
|
+
def version(version_spec)
|
944
944
|
@builder.append " /version:#{@builder.format version_spec}"
|
945
945
|
yield @builder if block_given?
|
946
946
|
self
|
947
947
|
end
|
948
|
-
def comment
|
948
|
+
def comment(comment)
|
949
949
|
@builder.append " /comment:#{@builder.format comment}"
|
950
950
|
yield @builder if block_given?
|
951
951
|
self
|
952
952
|
end
|
953
|
-
def child
|
953
|
+
def child(lock_type)
|
954
954
|
@builder.append " /child:#{@builder.format lock_type}"
|
955
955
|
yield @builder if block_given?
|
956
956
|
self
|
@@ -960,59 +960,59 @@ module FluentCommandBuilder
|
|
960
960
|
yield @builder if block_given?
|
961
961
|
self
|
962
962
|
end
|
963
|
-
def login
|
963
|
+
def login(username, password=nil)
|
964
964
|
@builder.append " /login:#{@builder.format username}"
|
965
965
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
966
966
|
yield @builder if block_given?
|
967
967
|
self
|
968
968
|
end
|
969
|
-
def collection
|
969
|
+
def collection(team_project_collection_url)
|
970
970
|
@builder.append " /collection:#{@builder.format team_project_collection_url}"
|
971
971
|
yield @builder if block_given?
|
972
972
|
self
|
973
973
|
end
|
974
974
|
end
|
975
975
|
class DeleteLabel < CommandBase
|
976
|
-
def initialize
|
976
|
+
def initialize(builder, label_name, item_spec, scope=nil)
|
977
977
|
super builder
|
978
978
|
@builder.append " label /delete #{@builder.format label_name}"
|
979
979
|
@builder.append "@#{@builder.format scope}" unless scope.nil?
|
980
980
|
@builder.append " #{@builder.format item_spec}"
|
981
981
|
end
|
982
|
-
def login
|
982
|
+
def login(username, password=nil)
|
983
983
|
@builder.append " /login:#{@builder.format username}"
|
984
984
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
985
985
|
yield @builder if block_given?
|
986
986
|
self
|
987
987
|
end
|
988
|
-
def collection
|
988
|
+
def collection(team_project_collection_url)
|
989
989
|
@builder.append " /collection:#{@builder.format team_project_collection_url}"
|
990
990
|
yield @builder if block_given?
|
991
991
|
self
|
992
992
|
end
|
993
993
|
end
|
994
994
|
class Labels < CommandBase
|
995
|
-
def initialize
|
995
|
+
def initialize(builder, label_name=nil)
|
996
996
|
super builder
|
997
997
|
@builder.append ' labels'
|
998
998
|
@builder.append " #{@builder.format label_name}" unless label_name.nil?
|
999
999
|
end
|
1000
|
-
def owner
|
1000
|
+
def owner(owner_name)
|
1001
1001
|
@builder.append " /owner:#{@builder.format owner_name}"
|
1002
1002
|
yield @builder if block_given?
|
1003
1003
|
self
|
1004
1004
|
end
|
1005
|
-
def format
|
1005
|
+
def format(format)
|
1006
1006
|
@builder.append " /format:#{@builder.format format}"
|
1007
1007
|
yield @builder if block_given?
|
1008
1008
|
self
|
1009
1009
|
end
|
1010
|
-
def collection
|
1010
|
+
def collection(team_project_collection_url)
|
1011
1011
|
@builder.append " /collection:#{@builder.format team_project_collection_url}"
|
1012
1012
|
yield @builder if block_given?
|
1013
1013
|
self
|
1014
1014
|
end
|
1015
|
-
def login
|
1015
|
+
def login(username, password=nil)
|
1016
1016
|
@builder.append " /login:#{@builder.format username}"
|
1017
1017
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
1018
1018
|
yield @builder if block_given?
|
@@ -1020,7 +1020,7 @@ module FluentCommandBuilder
|
|
1020
1020
|
end
|
1021
1021
|
end
|
1022
1022
|
class LocalVersions < CommandBase
|
1023
|
-
def initialize
|
1023
|
+
def initialize(builder, item_spec)
|
1024
1024
|
super builder
|
1025
1025
|
@builder.append " localVersions #{@builder.format item_spec}"
|
1026
1026
|
end
|
@@ -1029,34 +1029,34 @@ module FluentCommandBuilder
|
|
1029
1029
|
yield @builder if block_given?
|
1030
1030
|
self
|
1031
1031
|
end
|
1032
|
-
def format
|
1032
|
+
def format(format)
|
1033
1033
|
@builder.append " /format:#{@builder.format format}"
|
1034
1034
|
yield @builder if block_given?
|
1035
1035
|
self
|
1036
1036
|
end
|
1037
|
-
def workspace
|
1037
|
+
def workspace(workspace_name, workspace_owner=nil)
|
1038
1038
|
@builder.append " /workspace:#{@builder.format workspace_name}"
|
1039
1039
|
@builder.append ";#{@builder.format workspace_owner}" unless workspace_owner.nil?
|
1040
1040
|
yield @builder if block_given?
|
1041
1041
|
self
|
1042
1042
|
end
|
1043
|
-
def collection
|
1043
|
+
def collection(team_project_collection_url)
|
1044
1044
|
@builder.append " /collection:#{@builder.format team_project_collection_url}"
|
1045
1045
|
yield @builder if block_given?
|
1046
1046
|
self
|
1047
1047
|
end
|
1048
1048
|
end
|
1049
1049
|
class Lock < CommandBase
|
1050
|
-
def initialize
|
1050
|
+
def initialize(builder, item_spec)
|
1051
1051
|
super builder
|
1052
1052
|
@builder.append " lock #{@builder.format item_spec}"
|
1053
1053
|
end
|
1054
|
-
def lock
|
1054
|
+
def lock(lock_type)
|
1055
1055
|
@builder.append " /lock:#{@builder.format lock_type}"
|
1056
1056
|
yield @builder if block_given?
|
1057
1057
|
self
|
1058
1058
|
end
|
1059
|
-
def workspace
|
1059
|
+
def workspace(workspace_name, workspace_owner=nil)
|
1060
1060
|
@builder.append " /workspace:#{@builder.format workspace_name}"
|
1061
1061
|
@builder.append ";#{@builder.format workspace_owner}" unless workspace_owner.nil?
|
1062
1062
|
yield @builder if block_given?
|
@@ -1067,20 +1067,20 @@ module FluentCommandBuilder
|
|
1067
1067
|
yield @builder if block_given?
|
1068
1068
|
self
|
1069
1069
|
end
|
1070
|
-
def login
|
1070
|
+
def login(username, password=nil)
|
1071
1071
|
@builder.append " /login:#{@builder.format username}"
|
1072
1072
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
1073
1073
|
yield @builder if block_given?
|
1074
1074
|
self
|
1075
1075
|
end
|
1076
|
-
def collection
|
1076
|
+
def collection(team_project_collection_url)
|
1077
1077
|
@builder.append " /collection:#{@builder.format team_project_collection_url}"
|
1078
1078
|
yield @builder if block_given?
|
1079
1079
|
self
|
1080
1080
|
end
|
1081
1081
|
end
|
1082
1082
|
class Merge < CommandBase
|
1083
|
-
def initialize
|
1083
|
+
def initialize(builder, source, destination)
|
1084
1084
|
super builder
|
1085
1085
|
@builder.append " merge #{@builder.format source} #{@builder.format destination}"
|
1086
1086
|
end
|
@@ -1104,12 +1104,12 @@ module FluentCommandBuilder
|
|
1104
1104
|
yield @builder if block_given?
|
1105
1105
|
self
|
1106
1106
|
end
|
1107
|
-
def version
|
1107
|
+
def version(version_spec)
|
1108
1108
|
@builder.append " /version:#{@builder.format version_spec}"
|
1109
1109
|
yield @builder if block_given?
|
1110
1110
|
self
|
1111
1111
|
end
|
1112
|
-
def lock
|
1112
|
+
def lock(lock_type)
|
1113
1113
|
@builder.append " /lock:#{@builder.format lock_type}"
|
1114
1114
|
yield @builder if block_given?
|
1115
1115
|
self
|
@@ -1139,7 +1139,7 @@ module FluentCommandBuilder
|
|
1139
1139
|
yield @builder if block_given?
|
1140
1140
|
self
|
1141
1141
|
end
|
1142
|
-
def format
|
1142
|
+
def format(format)
|
1143
1143
|
@builder.append " /format:#{@builder.format format}"
|
1144
1144
|
yield @builder if block_given?
|
1145
1145
|
self
|
@@ -1149,7 +1149,7 @@ module FluentCommandBuilder
|
|
1149
1149
|
yield @builder if block_given?
|
1150
1150
|
self
|
1151
1151
|
end
|
1152
|
-
def login
|
1152
|
+
def login(username, password=nil)
|
1153
1153
|
@builder.append " /login:#{@builder.format username}"
|
1154
1154
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
1155
1155
|
yield @builder if block_given?
|
@@ -1157,7 +1157,7 @@ module FluentCommandBuilder
|
|
1157
1157
|
end
|
1158
1158
|
end
|
1159
1159
|
class Merges < CommandBase
|
1160
|
-
def initialize
|
1160
|
+
def initialize(builder, destination, source=nil)
|
1161
1161
|
super builder
|
1162
1162
|
@builder.append ' merges'
|
1163
1163
|
@builder.append " #{@builder.format source}" unless source.nil?
|
@@ -1173,12 +1173,12 @@ module FluentCommandBuilder
|
|
1173
1173
|
yield @builder if block_given?
|
1174
1174
|
self
|
1175
1175
|
end
|
1176
|
-
def format
|
1176
|
+
def format(format)
|
1177
1177
|
@builder.append " /format:#{@builder.format format}"
|
1178
1178
|
yield @builder if block_given?
|
1179
1179
|
self
|
1180
1180
|
end
|
1181
|
-
def login
|
1181
|
+
def login(username, password=nil)
|
1182
1182
|
@builder.append " /login:#{@builder.format username}"
|
1183
1183
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
1184
1184
|
yield @builder if block_given?
|
@@ -1189,48 +1189,48 @@ module FluentCommandBuilder
|
|
1189
1189
|
yield @builder if block_given?
|
1190
1190
|
self
|
1191
1191
|
end
|
1192
|
-
def collection
|
1192
|
+
def collection(team_project_collection_url)
|
1193
1193
|
@builder.append " /collection:#{@builder.format team_project_collection_url}"
|
1194
1194
|
yield @builder if block_given?
|
1195
1195
|
self
|
1196
1196
|
end
|
1197
1197
|
end
|
1198
1198
|
class Permission < CommandBase
|
1199
|
-
def initialize
|
1199
|
+
def initialize(builder, item_spec)
|
1200
1200
|
super builder
|
1201
1201
|
@builder.append " permission #{@builder.format item_spec}"
|
1202
1202
|
end
|
1203
|
-
def allow
|
1203
|
+
def allow(permission)
|
1204
1204
|
@builder.append " /allow:#{@builder.format permission, ','}"
|
1205
1205
|
yield @builder if block_given?
|
1206
1206
|
self
|
1207
1207
|
end
|
1208
|
-
def deny
|
1208
|
+
def deny(permission)
|
1209
1209
|
@builder.append " /deny:#{@builder.format permission, ','}"
|
1210
1210
|
yield @builder if block_given?
|
1211
1211
|
self
|
1212
1212
|
end
|
1213
|
-
def remove
|
1213
|
+
def remove(permission)
|
1214
1214
|
@builder.append " /remove:#{@builder.format permission, ','}"
|
1215
1215
|
yield @builder if block_given?
|
1216
1216
|
self
|
1217
1217
|
end
|
1218
|
-
def inherit
|
1218
|
+
def inherit(inherit)
|
1219
1219
|
@builder.append " /inherit:#{@builder.format inherit}"
|
1220
1220
|
yield @builder if block_given?
|
1221
1221
|
self
|
1222
1222
|
end
|
1223
|
-
def user
|
1223
|
+
def user(user_name)
|
1224
1224
|
@builder.append " /user:#{@builder.format user_name, ','}"
|
1225
1225
|
yield @builder if block_given?
|
1226
1226
|
self
|
1227
1227
|
end
|
1228
|
-
def group
|
1228
|
+
def group(group_name)
|
1229
1229
|
@builder.append " /group:#{@builder.format group_name, ','}"
|
1230
1230
|
yield @builder if block_given?
|
1231
1231
|
self
|
1232
1232
|
end
|
1233
|
-
def collection
|
1233
|
+
def collection(team_project_collection_url)
|
1234
1234
|
@builder.append " /collection:#{@builder.format team_project_collection_url}"
|
1235
1235
|
yield @builder if block_given?
|
1236
1236
|
self
|
@@ -1245,7 +1245,7 @@ module FluentCommandBuilder
|
|
1245
1245
|
yield @builder if block_given?
|
1246
1246
|
self
|
1247
1247
|
end
|
1248
|
-
def login
|
1248
|
+
def login(username, password=nil)
|
1249
1249
|
@builder.append " /login:#{@builder.format username}"
|
1250
1250
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
1251
1251
|
yield @builder if block_given?
|
@@ -1253,11 +1253,11 @@ module FluentCommandBuilder
|
|
1253
1253
|
end
|
1254
1254
|
end
|
1255
1255
|
class Properties < CommandBase
|
1256
|
-
def initialize
|
1256
|
+
def initialize(builder, item_spec)
|
1257
1257
|
super builder
|
1258
1258
|
@builder.append " properties #{@builder.format item_spec}"
|
1259
1259
|
end
|
1260
|
-
def collection
|
1260
|
+
def collection(team_project_collection_url)
|
1261
1261
|
@builder.append " /collection:#{@builder.format team_project_collection_url}"
|
1262
1262
|
yield @builder if block_given?
|
1263
1263
|
self
|
@@ -1267,18 +1267,18 @@ module FluentCommandBuilder
|
|
1267
1267
|
yield @builder if block_given?
|
1268
1268
|
self
|
1269
1269
|
end
|
1270
|
-
def login
|
1270
|
+
def login(username, password=nil)
|
1271
1271
|
@builder.append " /login:#{@builder.format username}"
|
1272
1272
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
1273
1273
|
yield @builder if block_given?
|
1274
1274
|
self
|
1275
1275
|
end
|
1276
|
-
def version
|
1276
|
+
def version(version_spec)
|
1277
1277
|
@builder.append " /version:#{@builder.format version_spec}"
|
1278
1278
|
yield @builder if block_given?
|
1279
1279
|
self
|
1280
1280
|
end
|
1281
|
-
def workspace
|
1281
|
+
def workspace(workspace_name, workspace_owner=nil)
|
1282
1282
|
@builder.append " /workspace:#{@builder.format workspace_name}"
|
1283
1283
|
@builder.append ";#{@builder.format workspace_owner}" unless workspace_owner.nil?
|
1284
1284
|
yield @builder if block_given?
|
@@ -1286,16 +1286,16 @@ module FluentCommandBuilder
|
|
1286
1286
|
end
|
1287
1287
|
end
|
1288
1288
|
class ConfigureProxy < CommandBase
|
1289
|
-
def initialize
|
1289
|
+
def initialize(builder, url)
|
1290
1290
|
super builder
|
1291
1291
|
@builder.append " proxy /configure #{@builder.format url}"
|
1292
1292
|
end
|
1293
|
-
def collection
|
1293
|
+
def collection(team_project_collection_url)
|
1294
1294
|
@builder.append " /collection:#{@builder.format team_project_collection_url}"
|
1295
1295
|
yield @builder if block_given?
|
1296
1296
|
self
|
1297
1297
|
end
|
1298
|
-
def login
|
1298
|
+
def login(username, password=nil)
|
1299
1299
|
@builder.append " /login:#{@builder.format username}"
|
1300
1300
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
1301
1301
|
yield @builder if block_given?
|
@@ -1303,36 +1303,36 @@ module FluentCommandBuilder
|
|
1303
1303
|
end
|
1304
1304
|
end
|
1305
1305
|
class AddProxyRecord < CommandBase
|
1306
|
-
def initialize
|
1306
|
+
def initialize(builder, url)
|
1307
1307
|
super builder
|
1308
1308
|
@builder.append " proxy /add #{@builder.format url}"
|
1309
1309
|
end
|
1310
|
-
def name
|
1310
|
+
def name(name)
|
1311
1311
|
@builder.append " /name:#{@builder.format name}"
|
1312
1312
|
yield @builder if block_given?
|
1313
1313
|
self
|
1314
1314
|
end
|
1315
|
-
def site
|
1315
|
+
def site(site_name)
|
1316
1316
|
@builder.append " /site:#{@builder.format site_name}"
|
1317
1317
|
yield @builder if block_given?
|
1318
1318
|
self
|
1319
1319
|
end
|
1320
|
-
def description
|
1320
|
+
def description(description)
|
1321
1321
|
@builder.append " /description:#{@builder.format description}"
|
1322
1322
|
yield @builder if block_given?
|
1323
1323
|
self
|
1324
1324
|
end
|
1325
|
-
def default
|
1325
|
+
def default(scope)
|
1326
1326
|
@builder.append " /default:#{@builder.format scope}"
|
1327
1327
|
yield @builder if block_given?
|
1328
1328
|
self
|
1329
1329
|
end
|
1330
|
-
def collection
|
1330
|
+
def collection(team_project_collection_url)
|
1331
1331
|
@builder.append " /collection:#{@builder.format team_project_collection_url}"
|
1332
1332
|
yield @builder if block_given?
|
1333
1333
|
self
|
1334
1334
|
end
|
1335
|
-
def login
|
1335
|
+
def login(username, password=nil)
|
1336
1336
|
@builder.append " /login:#{@builder.format username}"
|
1337
1337
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
1338
1338
|
yield @builder if block_given?
|
@@ -1340,16 +1340,16 @@ module FluentCommandBuilder
|
|
1340
1340
|
end
|
1341
1341
|
end
|
1342
1342
|
class DeleteProxyRecord < CommandBase
|
1343
|
-
def initialize
|
1343
|
+
def initialize(builder, url)
|
1344
1344
|
super builder
|
1345
1345
|
@builder.append " proxy /delete #{@builder.format url}"
|
1346
1346
|
end
|
1347
|
-
def collection
|
1347
|
+
def collection(team_project_collection_url)
|
1348
1348
|
@builder.append " /collection:#{@builder.format team_project_collection_url}"
|
1349
1349
|
yield @builder if block_given?
|
1350
1350
|
self
|
1351
1351
|
end
|
1352
|
-
def login
|
1352
|
+
def login(username, password=nil)
|
1353
1353
|
@builder.append " /login:#{@builder.format username}"
|
1354
1354
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
1355
1355
|
yield @builder if block_given?
|
@@ -1357,16 +1357,16 @@ module FluentCommandBuilder
|
|
1357
1357
|
end
|
1358
1358
|
end
|
1359
1359
|
class ListProxyRecords < CommandBase
|
1360
|
-
def initialize
|
1360
|
+
def initialize(builder, url)
|
1361
1361
|
super builder
|
1362
1362
|
@builder.append " proxy /list #{@builder.format url, ' '}"
|
1363
1363
|
end
|
1364
|
-
def collection
|
1364
|
+
def collection(team_project_collection_url)
|
1365
1365
|
@builder.append " /collection:#{@builder.format team_project_collection_url}"
|
1366
1366
|
yield @builder if block_given?
|
1367
1367
|
self
|
1368
1368
|
end
|
1369
|
-
def login
|
1369
|
+
def login(username, password=nil)
|
1370
1370
|
@builder.append " /login:#{@builder.format username}"
|
1371
1371
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
1372
1372
|
yield @builder if block_given?
|
@@ -1374,16 +1374,16 @@ module FluentCommandBuilder
|
|
1374
1374
|
end
|
1375
1375
|
end
|
1376
1376
|
class Rename < CommandBase
|
1377
|
-
def initialize
|
1377
|
+
def initialize(builder, old_item, new_item)
|
1378
1378
|
super builder
|
1379
1379
|
@builder.append " rename #{@builder.format old_item} #{@builder.format new_item}"
|
1380
1380
|
end
|
1381
|
-
def lock
|
1381
|
+
def lock(lock_type)
|
1382
1382
|
@builder.append " /lock:#{@builder.format lock_type}"
|
1383
1383
|
yield @builder if block_given?
|
1384
1384
|
self
|
1385
1385
|
end
|
1386
|
-
def login
|
1386
|
+
def login(username, password=nil)
|
1387
1387
|
@builder.append " /login:#{@builder.format username}"
|
1388
1388
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
1389
1389
|
yield @builder if block_given?
|
@@ -1391,12 +1391,12 @@ module FluentCommandBuilder
|
|
1391
1391
|
end
|
1392
1392
|
end
|
1393
1393
|
class Resolve < CommandBase
|
1394
|
-
def initialize
|
1394
|
+
def initialize(builder, item_spec=nil)
|
1395
1395
|
super builder
|
1396
1396
|
@builder.append ' resolve'
|
1397
1397
|
@builder.append " #{@builder.format item_spec}" unless item_spec.nil?
|
1398
1398
|
end
|
1399
|
-
def auto
|
1399
|
+
def auto(resolution)
|
1400
1400
|
@builder.append " /auto:#{@builder.format resolution}"
|
1401
1401
|
yield @builder if block_given?
|
1402
1402
|
self
|
@@ -1406,12 +1406,12 @@ module FluentCommandBuilder
|
|
1406
1406
|
yield @builder if block_given?
|
1407
1407
|
self
|
1408
1408
|
end
|
1409
|
-
def override_type
|
1409
|
+
def override_type(override_type)
|
1410
1410
|
@builder.append " /overrideType:#{@builder.format override_type}"
|
1411
1411
|
yield @builder if block_given?
|
1412
1412
|
self
|
1413
1413
|
end
|
1414
|
-
def convert_to_type
|
1414
|
+
def convert_to_type(convert_type)
|
1415
1415
|
@builder.append " /convertToType:#{@builder.format convert_type}"
|
1416
1416
|
yield @builder if block_given?
|
1417
1417
|
self
|
@@ -1421,7 +1421,7 @@ module FluentCommandBuilder
|
|
1421
1421
|
yield @builder if block_given?
|
1422
1422
|
self
|
1423
1423
|
end
|
1424
|
-
def new_name
|
1424
|
+
def new_name(path)
|
1425
1425
|
@builder.append " /newName:#{@builder.format path}"
|
1426
1426
|
yield @builder if block_given?
|
1427
1427
|
self
|
@@ -1431,7 +1431,7 @@ module FluentCommandBuilder
|
|
1431
1431
|
yield @builder if block_given?
|
1432
1432
|
self
|
1433
1433
|
end
|
1434
|
-
def login
|
1434
|
+
def login(username, password=nil)
|
1435
1435
|
@builder.append " /login:#{@builder.format username}"
|
1436
1436
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
1437
1437
|
yield @builder if block_given?
|
@@ -1439,7 +1439,7 @@ module FluentCommandBuilder
|
|
1439
1439
|
end
|
1440
1440
|
end
|
1441
1441
|
class RollbackToVersion < CommandBase
|
1442
|
-
def initialize
|
1442
|
+
def initialize(builder, version_spec, item_spec)
|
1443
1443
|
super builder
|
1444
1444
|
@builder.append " rollback /toVersion:#{@builder.format version_spec} #{@builder.format item_spec}"
|
1445
1445
|
end
|
@@ -1448,12 +1448,12 @@ module FluentCommandBuilder
|
|
1448
1448
|
yield @builder if block_given?
|
1449
1449
|
self
|
1450
1450
|
end
|
1451
|
-
def lock
|
1451
|
+
def lock(lock_type)
|
1452
1452
|
@builder.append " /lock:#{@builder.format lock_type}"
|
1453
1453
|
yield @builder if block_given?
|
1454
1454
|
self
|
1455
1455
|
end
|
1456
|
-
def version
|
1456
|
+
def version(version_spec)
|
1457
1457
|
@builder.append " /version:#{@builder.format version_spec}"
|
1458
1458
|
yield @builder if block_given?
|
1459
1459
|
self
|
@@ -1463,7 +1463,7 @@ module FluentCommandBuilder
|
|
1463
1463
|
yield @builder if block_given?
|
1464
1464
|
self
|
1465
1465
|
end
|
1466
|
-
def login
|
1466
|
+
def login(username, password=nil)
|
1467
1467
|
@builder.append " /login:#{@builder.format username}"
|
1468
1468
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
1469
1469
|
yield @builder if block_given?
|
@@ -1476,7 +1476,7 @@ module FluentCommandBuilder
|
|
1476
1476
|
end
|
1477
1477
|
end
|
1478
1478
|
class RollbackChangeset < CommandBase
|
1479
|
-
def initialize
|
1479
|
+
def initialize(builder, changeset_from, changeset_to=nil, item_spec=nil)
|
1480
1480
|
super builder
|
1481
1481
|
@builder.append " rollback /changeset:#{@builder.format changeset_from}"
|
1482
1482
|
@builder.append "~#{@builder.format changeset_to}" unless changeset_to.nil?
|
@@ -1487,12 +1487,12 @@ module FluentCommandBuilder
|
|
1487
1487
|
yield @builder if block_given?
|
1488
1488
|
self
|
1489
1489
|
end
|
1490
|
-
def lock
|
1490
|
+
def lock(lock_type)
|
1491
1491
|
@builder.append " /lock:#{@builder.format lock_type}"
|
1492
1492
|
yield @builder if block_given?
|
1493
1493
|
self
|
1494
1494
|
end
|
1495
|
-
def version
|
1495
|
+
def version(version_spec)
|
1496
1496
|
@builder.append " /version:#{@builder.format version_spec}"
|
1497
1497
|
yield @builder if block_given?
|
1498
1498
|
self
|
@@ -1502,7 +1502,7 @@ module FluentCommandBuilder
|
|
1502
1502
|
yield @builder if block_given?
|
1503
1503
|
self
|
1504
1504
|
end
|
1505
|
-
def login
|
1505
|
+
def login(username, password=nil)
|
1506
1506
|
@builder.append " /login:#{@builder.format username}"
|
1507
1507
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
1508
1508
|
yield @builder if block_given?
|
@@ -1515,11 +1515,11 @@ module FluentCommandBuilder
|
|
1515
1515
|
end
|
1516
1516
|
end
|
1517
1517
|
class ReplaceShelveset < CommandBase
|
1518
|
-
def initialize
|
1518
|
+
def initialize(builder, shelveset_name)
|
1519
1519
|
super builder
|
1520
1520
|
@builder.append " shelve /replace #{@builder.format shelveset_name}"
|
1521
1521
|
end
|
1522
|
-
def comment
|
1522
|
+
def comment(comment)
|
1523
1523
|
@builder.append " /comment:#{@builder.format comment}"
|
1524
1524
|
yield @builder if block_given?
|
1525
1525
|
self
|
@@ -1534,7 +1534,7 @@ module FluentCommandBuilder
|
|
1534
1534
|
yield @builder if block_given?
|
1535
1535
|
self
|
1536
1536
|
end
|
1537
|
-
def login
|
1537
|
+
def login(username, password=nil)
|
1538
1538
|
@builder.append " /login:#{@builder.format username}"
|
1539
1539
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
1540
1540
|
yield @builder if block_given?
|
@@ -1542,7 +1542,7 @@ module FluentCommandBuilder
|
|
1542
1542
|
end
|
1543
1543
|
end
|
1544
1544
|
class Shelve < CommandBase
|
1545
|
-
def initialize
|
1545
|
+
def initialize(builder, shelveset_name, item_spec)
|
1546
1546
|
super builder
|
1547
1547
|
@builder.append " shelve #{@builder.format shelveset_name} #{@builder.format item_spec}"
|
1548
1548
|
end
|
@@ -1556,7 +1556,7 @@ module FluentCommandBuilder
|
|
1556
1556
|
yield @builder if block_given?
|
1557
1557
|
self
|
1558
1558
|
end
|
1559
|
-
def comment
|
1559
|
+
def comment(comment)
|
1560
1560
|
@builder.append " /comment:#{@builder.format comment}"
|
1561
1561
|
yield @builder if block_given?
|
1562
1562
|
self
|
@@ -1576,7 +1576,7 @@ module FluentCommandBuilder
|
|
1576
1576
|
yield @builder if block_given?
|
1577
1577
|
self
|
1578
1578
|
end
|
1579
|
-
def login
|
1579
|
+
def login(username, password=nil)
|
1580
1580
|
@builder.append " /login:#{@builder.format username}"
|
1581
1581
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
1582
1582
|
yield @builder if block_given?
|
@@ -1584,45 +1584,45 @@ module FluentCommandBuilder
|
|
1584
1584
|
end
|
1585
1585
|
end
|
1586
1586
|
class DeleteShelveset < CommandBase
|
1587
|
-
def initialize
|
1587
|
+
def initialize(builder, shelveset_name, shelveset_owner=nil)
|
1588
1588
|
super builder
|
1589
1589
|
@builder.append " shelve /delete #{@builder.format shelveset_name}"
|
1590
1590
|
@builder.append ";#{@builder.format shelveset_owner}" unless shelveset_owner.nil?
|
1591
1591
|
end
|
1592
|
-
def login
|
1592
|
+
def login(username, password=nil)
|
1593
1593
|
@builder.append " /login:#{@builder.format username}"
|
1594
1594
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
1595
1595
|
yield @builder if block_given?
|
1596
1596
|
self
|
1597
1597
|
end
|
1598
|
-
def collection
|
1598
|
+
def collection(team_project_collection_url)
|
1599
1599
|
@builder.append " /collection:#{@builder.format team_project_collection_url}"
|
1600
1600
|
yield @builder if block_given?
|
1601
1601
|
self
|
1602
1602
|
end
|
1603
1603
|
end
|
1604
1604
|
class Shelvesets < CommandBase
|
1605
|
-
def initialize
|
1605
|
+
def initialize(builder, shelveset_name=nil)
|
1606
1606
|
super builder
|
1607
1607
|
@builder.append ' shelvesets'
|
1608
1608
|
@builder.append " #{@builder.format shelveset_name}" unless shelveset_name.nil?
|
1609
1609
|
end
|
1610
|
-
def owner
|
1610
|
+
def owner(owner_name)
|
1611
1611
|
@builder.append " /owner:#{@builder.format owner_name}"
|
1612
1612
|
yield @builder if block_given?
|
1613
1613
|
self
|
1614
1614
|
end
|
1615
|
-
def format
|
1615
|
+
def format(format)
|
1616
1616
|
@builder.append " /format:#{@builder.format format}"
|
1617
1617
|
yield @builder if block_given?
|
1618
1618
|
self
|
1619
1619
|
end
|
1620
|
-
def collection
|
1620
|
+
def collection(team_project_collection_url)
|
1621
1621
|
@builder.append " /collection:#{@builder.format team_project_collection_url}"
|
1622
1622
|
yield @builder if block_given?
|
1623
1623
|
self
|
1624
1624
|
end
|
1625
|
-
def login
|
1625
|
+
def login(username, password=nil)
|
1626
1626
|
@builder.append " /login:#{@builder.format username}"
|
1627
1627
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
1628
1628
|
yield @builder if block_given?
|
@@ -1630,34 +1630,34 @@ module FluentCommandBuilder
|
|
1630
1630
|
end
|
1631
1631
|
end
|
1632
1632
|
class Status < CommandBase
|
1633
|
-
def initialize
|
1633
|
+
def initialize(builder, item_spec)
|
1634
1634
|
super builder
|
1635
1635
|
@builder.append " status #{@builder.format item_spec}"
|
1636
1636
|
end
|
1637
|
-
def collection
|
1637
|
+
def collection(team_project_collection_url)
|
1638
1638
|
@builder.append " /collection:#{@builder.format team_project_collection_url}"
|
1639
1639
|
yield @builder if block_given?
|
1640
1640
|
self
|
1641
1641
|
end
|
1642
|
-
def login
|
1642
|
+
def login(username, password=nil)
|
1643
1643
|
@builder.append " /login:#{@builder.format username}"
|
1644
1644
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
1645
1645
|
yield @builder if block_given?
|
1646
1646
|
self
|
1647
1647
|
end
|
1648
|
-
def workspace
|
1648
|
+
def workspace(workspace_name, workspace_owner=nil)
|
1649
1649
|
@builder.append " /workspace:#{@builder.format workspace_name}"
|
1650
1650
|
@builder.append ";#{@builder.format workspace_owner}" unless workspace_owner.nil?
|
1651
1651
|
yield @builder if block_given?
|
1652
1652
|
self
|
1653
1653
|
end
|
1654
|
-
def shelveset
|
1654
|
+
def shelveset(shelveset_name, shelveset_owner=nil)
|
1655
1655
|
@builder.append " /shelveset:#{@builder.format shelveset_name}"
|
1656
1656
|
@builder.append ";#{@builder.format shelveset_owner}" unless shelveset_owner.nil?
|
1657
1657
|
yield @builder if block_given?
|
1658
1658
|
self
|
1659
1659
|
end
|
1660
|
-
def format
|
1660
|
+
def format(format)
|
1661
1661
|
@builder.append " /format:#{@builder.format format}"
|
1662
1662
|
yield @builder if block_given?
|
1663
1663
|
self
|
@@ -1667,14 +1667,14 @@ module FluentCommandBuilder
|
|
1667
1667
|
yield @builder if block_given?
|
1668
1668
|
self
|
1669
1669
|
end
|
1670
|
-
def user
|
1670
|
+
def user(user_name)
|
1671
1671
|
@builder.append " /user:#{@builder.format user_name}"
|
1672
1672
|
yield @builder if block_given?
|
1673
1673
|
self
|
1674
1674
|
end
|
1675
1675
|
end
|
1676
1676
|
class Undelete < CommandBase
|
1677
|
-
def initialize
|
1677
|
+
def initialize(builder, item_spec, deletion_id=nil)
|
1678
1678
|
super builder
|
1679
1679
|
@builder.append " undelete #{@builder.format item_spec}"
|
1680
1680
|
@builder.append ";#{@builder.format deletion_id}" unless deletion_id.nil?
|
@@ -1684,7 +1684,7 @@ module FluentCommandBuilder
|
|
1684
1684
|
yield @builder if block_given?
|
1685
1685
|
self
|
1686
1686
|
end
|
1687
|
-
def lock
|
1687
|
+
def lock(lock_type)
|
1688
1688
|
@builder.append " /lock:#{@builder.format lock_type}"
|
1689
1689
|
yield @builder if block_given?
|
1690
1690
|
self
|
@@ -1694,7 +1694,7 @@ module FluentCommandBuilder
|
|
1694
1694
|
yield @builder if block_given?
|
1695
1695
|
self
|
1696
1696
|
end
|
1697
|
-
def login
|
1697
|
+
def login(username, password=nil)
|
1698
1698
|
@builder.append " /login:#{@builder.format username}"
|
1699
1699
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
1700
1700
|
yield @builder if block_given?
|
@@ -1702,11 +1702,11 @@ module FluentCommandBuilder
|
|
1702
1702
|
end
|
1703
1703
|
end
|
1704
1704
|
class Undo < CommandBase
|
1705
|
-
def initialize
|
1705
|
+
def initialize(builder, item_spec)
|
1706
1706
|
super builder
|
1707
1707
|
@builder.append " undo #{@builder.format item_spec}"
|
1708
1708
|
end
|
1709
|
-
def workspace
|
1709
|
+
def workspace(workspace_name, workspace_owner=nil)
|
1710
1710
|
@builder.append " /workspace:#{@builder.format workspace_name}"
|
1711
1711
|
@builder.append ";#{@builder.format workspace_owner}" unless workspace_owner.nil?
|
1712
1712
|
yield @builder if block_given?
|
@@ -1722,24 +1722,24 @@ module FluentCommandBuilder
|
|
1722
1722
|
yield @builder if block_given?
|
1723
1723
|
self
|
1724
1724
|
end
|
1725
|
-
def login
|
1725
|
+
def login(username, password=nil)
|
1726
1726
|
@builder.append " /login:#{@builder.format username}"
|
1727
1727
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
1728
1728
|
yield @builder if block_given?
|
1729
1729
|
self
|
1730
1730
|
end
|
1731
|
-
def collection
|
1731
|
+
def collection(team_project_collection_url)
|
1732
1732
|
@builder.append " /collection:#{@builder.format team_project_collection_url}"
|
1733
1733
|
yield @builder if block_given?
|
1734
1734
|
self
|
1735
1735
|
end
|
1736
1736
|
end
|
1737
1737
|
class Unlabel < CommandBase
|
1738
|
-
def initialize
|
1738
|
+
def initialize(builder, label_name, item_spec)
|
1739
1739
|
super builder
|
1740
1740
|
@builder.append " unlabel #{@builder.format label_name} #{@builder.format item_spec}"
|
1741
1741
|
end
|
1742
|
-
def collection
|
1742
|
+
def collection(team_project_collection_url)
|
1743
1743
|
@builder.append " /collection:#{@builder.format team_project_collection_url}"
|
1744
1744
|
yield @builder if block_given?
|
1745
1745
|
self
|
@@ -1749,7 +1749,7 @@ module FluentCommandBuilder
|
|
1749
1749
|
yield @builder if block_given?
|
1750
1750
|
self
|
1751
1751
|
end
|
1752
|
-
def login
|
1752
|
+
def login(username, password=nil)
|
1753
1753
|
@builder.append " /login:#{@builder.format username}"
|
1754
1754
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
1755
1755
|
yield @builder if block_given?
|
@@ -1757,7 +1757,7 @@ module FluentCommandBuilder
|
|
1757
1757
|
end
|
1758
1758
|
end
|
1759
1759
|
class Unshelve < CommandBase
|
1760
|
-
def initialize
|
1760
|
+
def initialize(builder, shelveset_name=nil, username=nil, item_spec=nil)
|
1761
1761
|
super builder
|
1762
1762
|
@builder.append ' unshelve'
|
1763
1763
|
@builder.append " #{@builder.format shelveset_name}" unless shelveset_name.nil?
|
@@ -1779,7 +1779,7 @@ module FluentCommandBuilder
|
|
1779
1779
|
yield @builder if block_given?
|
1780
1780
|
self
|
1781
1781
|
end
|
1782
|
-
def login
|
1782
|
+
def login(username, password=nil)
|
1783
1783
|
@builder.append " /login:#{@builder.format username}"
|
1784
1784
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
1785
1785
|
yield @builder if block_given?
|
@@ -1787,11 +1787,11 @@ module FluentCommandBuilder
|
|
1787
1787
|
end
|
1788
1788
|
end
|
1789
1789
|
class View < CommandBase
|
1790
|
-
def initialize
|
1790
|
+
def initialize(builder, item_spec)
|
1791
1791
|
super builder
|
1792
1792
|
@builder.append " view #{@builder.format item_spec}"
|
1793
1793
|
end
|
1794
|
-
def collection
|
1794
|
+
def collection(team_project_collection_url)
|
1795
1795
|
@builder.append " /collection:#{@builder.format team_project_collection_url}"
|
1796
1796
|
yield @builder if block_given?
|
1797
1797
|
self
|
@@ -1806,12 +1806,12 @@ module FluentCommandBuilder
|
|
1806
1806
|
yield @builder if block_given?
|
1807
1807
|
self
|
1808
1808
|
end
|
1809
|
-
def output
|
1809
|
+
def output(local_file)
|
1810
1810
|
@builder.append " /output:#{@builder.format local_file}"
|
1811
1811
|
yield @builder if block_given?
|
1812
1812
|
self
|
1813
1813
|
end
|
1814
|
-
def shelveset
|
1814
|
+
def shelveset(shelveset_name, shelveset_owner=nil)
|
1815
1815
|
@builder.append " /shelveset:#{@builder.format shelveset_name}"
|
1816
1816
|
@builder.append ";#{@builder.format shelveset_owner}" unless shelveset_owner.nil?
|
1817
1817
|
yield @builder if block_given?
|
@@ -1822,12 +1822,12 @@ module FluentCommandBuilder
|
|
1822
1822
|
yield @builder if block_given?
|
1823
1823
|
self
|
1824
1824
|
end
|
1825
|
-
def version
|
1825
|
+
def version(version_spec)
|
1826
1826
|
@builder.append " /version:#{@builder.format version_spec}"
|
1827
1827
|
yield @builder if block_given?
|
1828
1828
|
self
|
1829
1829
|
end
|
1830
|
-
def login
|
1830
|
+
def login(username, password=nil)
|
1831
1831
|
@builder.append " /login:#{@builder.format username}"
|
1832
1832
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
1833
1833
|
yield @builder if block_given?
|
@@ -1835,11 +1835,11 @@ module FluentCommandBuilder
|
|
1835
1835
|
end
|
1836
1836
|
end
|
1837
1837
|
class ShowLocalFolderMapping < CommandBase
|
1838
|
-
def initialize
|
1838
|
+
def initialize(builder, local_folder)
|
1839
1839
|
super builder
|
1840
1840
|
@builder.append " workfold #{@builder.format local_folder}"
|
1841
1841
|
end
|
1842
|
-
def login
|
1842
|
+
def login(username, password=nil)
|
1843
1843
|
@builder.append " /login:#{@builder.format username}"
|
1844
1844
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
1845
1845
|
yield @builder if block_given?
|
@@ -1847,11 +1847,11 @@ module FluentCommandBuilder
|
|
1847
1847
|
end
|
1848
1848
|
end
|
1849
1849
|
class ShowWorkspaceMappings < CommandBase
|
1850
|
-
def initialize
|
1850
|
+
def initialize(builder, workspace_name)
|
1851
1851
|
super builder
|
1852
1852
|
@builder.append " workfold /workspace:#{@builder.format workspace_name}"
|
1853
1853
|
end
|
1854
|
-
def login
|
1854
|
+
def login(username, password=nil)
|
1855
1855
|
@builder.append " /login:#{@builder.format username}"
|
1856
1856
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
1857
1857
|
yield @builder if block_given?
|
@@ -1859,69 +1859,69 @@ module FluentCommandBuilder
|
|
1859
1859
|
end
|
1860
1860
|
end
|
1861
1861
|
class ShowServerFolderMappings < CommandBase
|
1862
|
-
def initialize
|
1862
|
+
def initialize(builder, server_folder)
|
1863
1863
|
super builder
|
1864
1864
|
@builder.append " workfold #{@builder.format server_folder}"
|
1865
1865
|
end
|
1866
|
-
def login
|
1866
|
+
def login(username, password=nil)
|
1867
1867
|
@builder.append " /login:#{@builder.format username}"
|
1868
1868
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
1869
1869
|
yield @builder if block_given?
|
1870
1870
|
self
|
1871
1871
|
end
|
1872
|
-
def workspace
|
1872
|
+
def workspace(workspace_name, workspace_owner=nil)
|
1873
1873
|
@builder.append " /workspace:#{@builder.format workspace_name}"
|
1874
1874
|
@builder.append ";#{@builder.format workspace_owner}" unless workspace_owner.nil?
|
1875
1875
|
yield @builder if block_given?
|
1876
1876
|
self
|
1877
1877
|
end
|
1878
|
-
def collection
|
1878
|
+
def collection(team_project_collection_url)
|
1879
1879
|
@builder.append " /collection:#{@builder.format team_project_collection_url}"
|
1880
1880
|
yield @builder if block_given?
|
1881
1881
|
self
|
1882
1882
|
end
|
1883
1883
|
end
|
1884
1884
|
class MapFolder < CommandBase
|
1885
|
-
def initialize
|
1885
|
+
def initialize(builder, server_folder, local_folder)
|
1886
1886
|
super builder
|
1887
1887
|
@builder.append " workfold /map #{@builder.format server_folder} #{@builder.format local_folder}"
|
1888
1888
|
end
|
1889
|
-
def login
|
1889
|
+
def login(username, password=nil)
|
1890
1890
|
@builder.append " /login:#{@builder.format username}"
|
1891
1891
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
1892
1892
|
yield @builder if block_given?
|
1893
1893
|
self
|
1894
1894
|
end
|
1895
|
-
def workspace
|
1895
|
+
def workspace(workspace_name, workspace_owner=nil)
|
1896
1896
|
@builder.append " /workspace:#{@builder.format workspace_name}"
|
1897
1897
|
@builder.append ";#{@builder.format workspace_owner}" unless workspace_owner.nil?
|
1898
1898
|
yield @builder if block_given?
|
1899
1899
|
self
|
1900
1900
|
end
|
1901
|
-
def collection
|
1901
|
+
def collection(team_project_collection_url)
|
1902
1902
|
@builder.append " /collection:#{@builder.format team_project_collection_url}"
|
1903
1903
|
yield @builder if block_given?
|
1904
1904
|
self
|
1905
1905
|
end
|
1906
1906
|
end
|
1907
1907
|
class UnmapFolder < CommandBase
|
1908
|
-
def initialize
|
1908
|
+
def initialize(builder)
|
1909
1909
|
super builder
|
1910
1910
|
@builder.append ' workfold /unmap'
|
1911
1911
|
end
|
1912
|
-
def login
|
1912
|
+
def login(username, password=nil)
|
1913
1913
|
@builder.append " /login:#{@builder.format username}"
|
1914
1914
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
1915
1915
|
yield @builder if block_given?
|
1916
1916
|
self
|
1917
1917
|
end
|
1918
|
-
def workspace
|
1918
|
+
def workspace(workspace_name, workspace_owner=nil)
|
1919
1919
|
@builder.append " /workspace:#{@builder.format workspace_name}"
|
1920
1920
|
@builder.append ";#{@builder.format workspace_owner}" unless workspace_owner.nil?
|
1921
1921
|
yield @builder if block_given?
|
1922
1922
|
self
|
1923
1923
|
end
|
1924
|
-
def collection
|
1924
|
+
def collection(team_project_collection_url)
|
1925
1925
|
@builder.append " /collection:#{@builder.format team_project_collection_url}"
|
1926
1926
|
yield @builder if block_given?
|
1927
1927
|
self
|
@@ -1933,53 +1933,53 @@ module FluentCommandBuilder
|
|
1933
1933
|
end
|
1934
1934
|
end
|
1935
1935
|
class CloakFolder < CommandBase
|
1936
|
-
def initialize
|
1936
|
+
def initialize(builder, server_folder)
|
1937
1937
|
super builder
|
1938
1938
|
@builder.append " workfold /cloak #{@builder.format server_folder}"
|
1939
1939
|
end
|
1940
|
-
def login
|
1940
|
+
def login(username, password=nil)
|
1941
1941
|
@builder.append " /login:#{@builder.format username}"
|
1942
1942
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
1943
1943
|
yield @builder if block_given?
|
1944
1944
|
self
|
1945
1945
|
end
|
1946
|
-
def workspace
|
1946
|
+
def workspace(workspace_name, workspace_owner=nil)
|
1947
1947
|
@builder.append " /workspace:#{@builder.format workspace_name}"
|
1948
1948
|
@builder.append ";#{@builder.format workspace_owner}" unless workspace_owner.nil?
|
1949
1949
|
yield @builder if block_given?
|
1950
1950
|
self
|
1951
1951
|
end
|
1952
|
-
def collection
|
1952
|
+
def collection(team_project_collection_url)
|
1953
1953
|
@builder.append " /collection:#{@builder.format team_project_collection_url}"
|
1954
1954
|
yield @builder if block_given?
|
1955
1955
|
self
|
1956
1956
|
end
|
1957
1957
|
end
|
1958
1958
|
class DecloakFolder < CommandBase
|
1959
|
-
def initialize
|
1959
|
+
def initialize(builder, server_folder)
|
1960
1960
|
super builder
|
1961
1961
|
@builder.append " workfold /decloak #{@builder.format server_folder}"
|
1962
1962
|
end
|
1963
|
-
def login
|
1963
|
+
def login(username, password=nil)
|
1964
1964
|
@builder.append " /login:#{@builder.format username}"
|
1965
1965
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
1966
1966
|
yield @builder if block_given?
|
1967
1967
|
self
|
1968
1968
|
end
|
1969
|
-
def workspace
|
1969
|
+
def workspace(workspace_name, workspace_owner=nil)
|
1970
1970
|
@builder.append " /workspace:#{@builder.format workspace_name}"
|
1971
1971
|
@builder.append ";#{@builder.format workspace_owner}" unless workspace_owner.nil?
|
1972
1972
|
yield @builder if block_given?
|
1973
1973
|
self
|
1974
1974
|
end
|
1975
|
-
def collection
|
1975
|
+
def collection(team_project_collection_url)
|
1976
1976
|
@builder.append " /collection:#{@builder.format team_project_collection_url}"
|
1977
1977
|
yield @builder if block_given?
|
1978
1978
|
self
|
1979
1979
|
end
|
1980
1980
|
end
|
1981
1981
|
class CreateWorkspace < CommandBase
|
1982
|
-
def initialize
|
1982
|
+
def initialize(builder, workspace_name, workspace_owner=nil)
|
1983
1983
|
super builder
|
1984
1984
|
@builder.append " workspace /new #{@builder.format workspace_name}"
|
1985
1985
|
@builder.append ";#{@builder.format workspace_owner}" unless workspace_owner.nil?
|
@@ -1989,33 +1989,33 @@ module FluentCommandBuilder
|
|
1989
1989
|
yield @builder if block_given?
|
1990
1990
|
self
|
1991
1991
|
end
|
1992
|
-
def template
|
1992
|
+
def template(workspace_name, workspace_owner=nil)
|
1993
1993
|
@builder.append " /template:#{@builder.format workspace_name}"
|
1994
1994
|
@builder.append ";#{@builder.format workspace_owner}" unless workspace_owner.nil?
|
1995
1995
|
yield @builder if block_given?
|
1996
1996
|
self
|
1997
1997
|
end
|
1998
|
-
def computer
|
1998
|
+
def computer(computer_name)
|
1999
1999
|
@builder.append " /computer:#{@builder.format computer_name}"
|
2000
2000
|
yield @builder if block_given?
|
2001
2001
|
self
|
2002
2002
|
end
|
2003
|
-
def comment
|
2003
|
+
def comment(comment)
|
2004
2004
|
@builder.append " /comment:#{@builder.format comment}"
|
2005
2005
|
yield @builder if block_given?
|
2006
2006
|
self
|
2007
2007
|
end
|
2008
|
-
def collection
|
2008
|
+
def collection(team_project_collection_url)
|
2009
2009
|
@builder.append " /collection:#{@builder.format team_project_collection_url}"
|
2010
2010
|
yield @builder if block_given?
|
2011
2011
|
self
|
2012
2012
|
end
|
2013
|
-
def permission
|
2013
|
+
def permission(permission)
|
2014
2014
|
@builder.append " /permission:#{@builder.format permission}"
|
2015
2015
|
yield @builder if block_given?
|
2016
2016
|
self
|
2017
2017
|
end
|
2018
|
-
def login
|
2018
|
+
def login(username, password=nil)
|
2019
2019
|
@builder.append " /login:#{@builder.format username}"
|
2020
2020
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
2021
2021
|
yield @builder if block_given?
|
@@ -2023,17 +2023,17 @@ module FluentCommandBuilder
|
|
2023
2023
|
end
|
2024
2024
|
end
|
2025
2025
|
class DeleteWorkspace < CommandBase
|
2026
|
-
def initialize
|
2026
|
+
def initialize(builder, workspace_name, workspace_owner=nil)
|
2027
2027
|
super builder
|
2028
2028
|
@builder.append " workspace /delete #{@builder.format workspace_name}"
|
2029
2029
|
@builder.append ";#{@builder.format workspace_owner}" unless workspace_owner.nil?
|
2030
2030
|
end
|
2031
|
-
def collection
|
2031
|
+
def collection(team_project_collection_url)
|
2032
2032
|
@builder.append " /collection:#{@builder.format team_project_collection_url}"
|
2033
2033
|
yield @builder if block_given?
|
2034
2034
|
self
|
2035
2035
|
end
|
2036
|
-
def login
|
2036
|
+
def login(username, password=nil)
|
2037
2037
|
@builder.append " /login:#{@builder.format username}"
|
2038
2038
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
2039
2039
|
yield @builder if block_given?
|
@@ -2041,86 +2041,86 @@ module FluentCommandBuilder
|
|
2041
2041
|
end
|
2042
2042
|
end
|
2043
2043
|
class ModifyWorkspace < CommandBase
|
2044
|
-
def initialize
|
2044
|
+
def initialize(builder, workspace_name=nil, workspace_owner=nil)
|
2045
2045
|
super builder
|
2046
2046
|
@builder.append ' workspace '
|
2047
2047
|
@builder.append "#{@builder.format workspace_name}" unless workspace_name.nil?
|
2048
2048
|
@builder.append ";#{@builder.format workspace_owner}" unless workspace_owner.nil?
|
2049
2049
|
end
|
2050
|
-
def computer
|
2050
|
+
def computer(computer_name)
|
2051
2051
|
@builder.append " /computer:#{@builder.format computer_name}"
|
2052
2052
|
yield @builder if block_given?
|
2053
2053
|
self
|
2054
2054
|
end
|
2055
|
-
def comment
|
2055
|
+
def comment(comment)
|
2056
2056
|
@builder.append " /comment:#{@builder.format comment}"
|
2057
2057
|
yield @builder if block_given?
|
2058
2058
|
self
|
2059
2059
|
end
|
2060
|
-
def collection
|
2060
|
+
def collection(team_project_collection_url)
|
2061
2061
|
@builder.append " /collection:#{@builder.format team_project_collection_url}"
|
2062
2062
|
yield @builder if block_given?
|
2063
2063
|
self
|
2064
2064
|
end
|
2065
|
-
def permission
|
2065
|
+
def permission(permission)
|
2066
2066
|
@builder.append " /permission:#{@builder.format permission}"
|
2067
2067
|
yield @builder if block_given?
|
2068
2068
|
self
|
2069
2069
|
end
|
2070
|
-
def login
|
2070
|
+
def login(username, password=nil)
|
2071
2071
|
@builder.append " /login:#{@builder.format username}"
|
2072
2072
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
2073
2073
|
yield @builder if block_given?
|
2074
2074
|
self
|
2075
2075
|
end
|
2076
|
-
def new_name
|
2076
|
+
def new_name(workspace_name)
|
2077
2077
|
@builder.append " /newName:#{@builder.format workspace_name}"
|
2078
2078
|
yield @builder if block_given?
|
2079
2079
|
self
|
2080
2080
|
end
|
2081
|
-
def new_owner
|
2081
|
+
def new_owner(owner_name)
|
2082
2082
|
@builder.append " /newOwner:#{@builder.format owner_name}"
|
2083
2083
|
yield @builder if block_given?
|
2084
2084
|
self
|
2085
2085
|
end
|
2086
2086
|
end
|
2087
2087
|
class Workspaces < CommandBase
|
2088
|
-
def initialize
|
2088
|
+
def initialize(builder, workspace_name=nil)
|
2089
2089
|
super builder
|
2090
2090
|
@builder.append ' workspaces'
|
2091
2091
|
@builder.append " #{@builder.format workspace_name}" unless workspace_name.nil?
|
2092
2092
|
end
|
2093
|
-
def owner
|
2093
|
+
def owner(owner_name)
|
2094
2094
|
@builder.append " /owner:#{@builder.format owner_name}"
|
2095
2095
|
yield @builder if block_given?
|
2096
2096
|
self
|
2097
2097
|
end
|
2098
|
-
def computer
|
2098
|
+
def computer(computer_name)
|
2099
2099
|
@builder.append " /computer:#{@builder.format computer_name}"
|
2100
2100
|
yield @builder if block_given?
|
2101
2101
|
self
|
2102
2102
|
end
|
2103
|
-
def collection
|
2103
|
+
def collection(team_project_collection_url)
|
2104
2104
|
@builder.append " /collection:#{@builder.format team_project_collection_url}"
|
2105
2105
|
yield @builder if block_given?
|
2106
2106
|
self
|
2107
2107
|
end
|
2108
|
-
def format
|
2108
|
+
def format(format)
|
2109
2109
|
@builder.append " /format:#{@builder.format format}"
|
2110
2110
|
yield @builder if block_given?
|
2111
2111
|
self
|
2112
2112
|
end
|
2113
|
-
def update_user_name
|
2113
|
+
def update_user_name(old_user_name)
|
2114
2114
|
@builder.append " /updateUserName:#{@builder.format old_user_name}"
|
2115
2115
|
yield @builder if block_given?
|
2116
2116
|
self
|
2117
2117
|
end
|
2118
|
-
def update_computer_name
|
2118
|
+
def update_computer_name(old_computer_name)
|
2119
2119
|
@builder.append " /updateComputerName:#{@builder.format old_computer_name}"
|
2120
2120
|
yield @builder if block_given?
|
2121
2121
|
self
|
2122
2122
|
end
|
2123
|
-
def login
|
2123
|
+
def login(username, password=nil)
|
2124
2124
|
@builder.append " /login:#{@builder.format username}"
|
2125
2125
|
@builder.append ",#{@builder.format password}" unless password.nil?
|
2126
2126
|
yield @builder if block_given?
|
@@ -2128,11 +2128,11 @@ module FluentCommandBuilder
|
|
2128
2128
|
end
|
2129
2129
|
end
|
2130
2130
|
class RemoveWorkspace < CommandBase
|
2131
|
-
def initialize
|
2131
|
+
def initialize(builder, workspace_name)
|
2132
2132
|
super builder
|
2133
2133
|
@builder.append " workspaces /remove:#{@builder.format workspace_name, ','}"
|
2134
2134
|
end
|
2135
|
-
def collection
|
2135
|
+
def collection(team_project_collection_url)
|
2136
2136
|
@builder.append " /collection:#{@builder.format team_project_collection_url}"
|
2137
2137
|
yield @builder if block_given?
|
2138
2138
|
self
|