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