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