fluent_command_builder 0.5.6 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/command_version_detector.rb +1 -0
- data/lib/fluent_command_builder/command_base.rb +20 -11
- data/lib/fluent_command_builder/command_builders/appcfg_python.rb +17 -0
- data/lib/fluent_command_builder/command_builders/appcfg_python_16.rb +1059 -1059
- data/lib/fluent_command_builder/command_builders/appcfg_python_17.rb +1055 -1055
- data/lib/fluent_command_builder/command_builders/aspnet_compiler.rb +17 -0
- data/lib/fluent_command_builder/command_builders/aspnet_compiler_20.rb +46 -46
- data/lib/fluent_command_builder/command_builders/aspnet_compiler_40.rb +46 -46
- data/lib/fluent_command_builder/command_builders/bundle.rb +17 -0
- data/lib/fluent_command_builder/command_builders/bundle_11.rb +140 -140
- data/lib/fluent_command_builder/command_builders/cucumber.rb +17 -0
- data/lib/fluent_command_builder/command_builders/cucumber_11.rb +76 -76
- data/lib/fluent_command_builder/command_builders/cucumber_12.rb +78 -78
- data/lib/fluent_command_builder/command_builders/dev_appserver_python.rb +17 -0
- data/lib/fluent_command_builder/command_builders/dev_appserver_python_16.rb +91 -86
- data/lib/fluent_command_builder/command_builders/dev_appserver_python_17.rb +91 -86
- data/lib/fluent_command_builder/command_builders/dotcover.rb +17 -0
- data/lib/fluent_command_builder/command_builders/dotcover_10.rb +33 -33
- data/lib/fluent_command_builder/command_builders/dotcover_11.rb +133 -133
- data/lib/fluent_command_builder/command_builders/dotcover_12.rb +133 -133
- data/lib/fluent_command_builder/command_builders/dotcover_20.rb +137 -137
- data/lib/fluent_command_builder/command_builders/installutil.rb +17 -0
- data/lib/fluent_command_builder/command_builders/installutil_11.rb +31 -31
- data/lib/fluent_command_builder/command_builders/installutil_20.rb +33 -33
- data/lib/fluent_command_builder/command_builders/installutil_35.rb +33 -33
- data/lib/fluent_command_builder/command_builders/installutil_40.rb +36 -36
- data/lib/fluent_command_builder/command_builders/msbuild.rb +17 -0
- data/lib/fluent_command_builder/command_builders/msbuild_20.rb +43 -43
- data/lib/fluent_command_builder/command_builders/msbuild_30.rb +43 -43
- data/lib/fluent_command_builder/command_builders/msbuild_35.rb +59 -59
- data/lib/fluent_command_builder/command_builders/msbuild_40.rb +62 -62
- data/lib/fluent_command_builder/command_builders/msdeploy.rb +17 -0
- data/lib/fluent_command_builder/command_builders/msdeploy_71.rb +177 -0
- data/lib/fluent_command_builder/command_builders/mstest.rb +17 -0
- data/lib/fluent_command_builder/command_builders/mstest_100.rb +127 -0
- data/lib/fluent_command_builder/command_builders/mstest_80.rb +107 -0
- data/lib/fluent_command_builder/command_builders/mstest_90.rb +112 -0
- data/lib/fluent_command_builder/command_builders/netsh.rb +17 -0
- data/lib/fluent_command_builder/command_builders/netsh_61.rb +408 -0
- data/lib/fluent_command_builder/command_builders/nunit.rb +17 -0
- data/lib/fluent_command_builder/command_builders/nunit_25.rb +69 -64
- data/lib/fluent_command_builder/command_builders/nunit_26.rb +85 -80
- data/lib/fluent_command_builder/command_builders/rake.rb +17 -0
- data/lib/fluent_command_builder/command_builders/rake_09.rb +64 -64
- data/lib/fluent_command_builder/command_builders/security_osx.rb +17 -0
- data/lib/fluent_command_builder/command_builders/security_osx_107.rb +82 -82
- data/lib/fluent_command_builder/command_builders/sevenzip.rb +17 -0
- data/lib/fluent_command_builder/command_builders/sevenzip_92.rb +243 -243
- data/lib/fluent_command_builder/command_builders/simian.rb +17 -0
- data/lib/fluent_command_builder/command_builders/simian_23.rb +63 -63
- data/lib/fluent_command_builder/command_builders/team_foundation.rb +17 -0
- data/lib/fluent_command_builder/command_builders/team_foundation_100.rb +2155 -0
- data/lib/fluent_command_builder/command_builders/team_foundation_tee.rb +17 -0
- data/lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb +1978 -0
- data/lib/fluent_command_builder/command_builders/xcodebuild.rb +17 -0
- data/lib/fluent_command_builder/command_builders/xcodebuild_43.rb +112 -112
- data/lib/fluent_command_builder/command_builders/xcodebuild_44.rb +132 -132
- data/lib/fluent_command_builder/{command_builder.rb → underlying_builder.rb} +2 -2
- data/lib/fluent_command_builder/util.rb +18 -0
- data/lib/fluent_command_builder/version_detectors/appcfg_python.rb +9 -0
- data/lib/fluent_command_builder/version_detectors/aspnet_compiler.rb +9 -0
- data/lib/fluent_command_builder/version_detectors/bundle.rb +9 -0
- data/lib/fluent_command_builder/version_detectors/cucumber.rb +9 -0
- data/lib/fluent_command_builder/version_detectors/dev_appserver_python.rb +9 -0
- data/lib/fluent_command_builder/version_detectors/dotcover.rb +9 -0
- data/lib/fluent_command_builder/version_detectors/installutil.rb +9 -0
- data/lib/fluent_command_builder/version_detectors/lib/appengine_python_version_detector.rb +16 -0
- data/lib/fluent_command_builder/version_detectors/lib/path_finder.rb +43 -0
- data/lib/fluent_command_builder/version_detectors/lib/standard_version_detector.rb +14 -0
- data/lib/fluent_command_builder/version_detectors/msbuild.rb +9 -0
- data/lib/fluent_command_builder/version_detectors/msdeploy.rb +9 -0
- data/lib/fluent_command_builder/version_detectors/mstest.rb +9 -0
- data/lib/fluent_command_builder/version_detectors/nuget.rb +9 -0
- data/lib/fluent_command_builder/version_detectors/nunit.rb +9 -0
- data/lib/fluent_command_builder/version_detectors/rake.rb +9 -0
- data/lib/fluent_command_builder/version_detectors/security_osx.rb +9 -0
- data/lib/fluent_command_builder/version_detectors/sevenzip.rb +9 -0
- data/lib/fluent_command_builder/version_detectors/team_foundation.rb +9 -0
- data/lib/fluent_command_builder/version_detectors/xcodebuild.rb +9 -0
- data/lib/fluent_command_builder.rb +26 -7
- metadata +53 -12
- data/lib/fluent_command_builder/command_builders/msdeploy_40.rb +0 -177
- data/lib/fluent_command_builder/command_builders/mstest_2005.rb +0 -107
- data/lib/fluent_command_builder/command_builders/mstest_2008.rb +0 -112
- data/lib/fluent_command_builder/command_builders/mstest_2010.rb +0 -127
- data/lib/fluent_command_builder/command_builders/netsh_2008.rb +0 -408
- data/lib/fluent_command_builder/command_builders/tf_2010.rb +0 -2155
- data/lib/fluent_command_builder/command_builders/tf_tee_2010.rb +0 -1978
@@ -1,64 +1,64 @@
|
|
1
1
|
require File.expand_path(File.dirname(__FILE__) + '/../command_base')
|
2
|
-
require File.expand_path(File.dirname(__FILE__) + '/../
|
2
|
+
require File.expand_path(File.dirname(__FILE__) + '/../underlying_builder')
|
3
3
|
|
4
4
|
module FluentCommandBuilder
|
5
|
+
def dotcover_10
|
6
|
+
FluentCommandBuilder::DotCover::V10.create { |b| yield b if block_given? }
|
7
|
+
end
|
5
8
|
module DotCover
|
6
9
|
module V10
|
7
|
-
|
10
|
+
def self.create
|
11
|
+
b = UnderlyingBuilder.new FluentCommandBuilder::DotCover::COMMAND_NAME
|
12
|
+
c = DotCover.new(b)
|
13
|
+
yield b if block_given?
|
14
|
+
c
|
15
|
+
end
|
16
|
+
def dotcover
|
17
|
+
FluentCommandBuilder::DotCover::V10.create { |b| yield b if block_given? }
|
18
|
+
end
|
8
19
|
class DotCover < CommandBase
|
9
|
-
def initialize(
|
10
|
-
super
|
20
|
+
def initialize(underlying_builder)
|
21
|
+
super underlying_builder
|
11
22
|
end
|
12
23
|
def analyse(configuration_file)
|
13
|
-
|
14
|
-
yield
|
24
|
+
b.append " analyse #{b.format configuration_file}"
|
25
|
+
yield b if block_given?
|
15
26
|
self
|
16
27
|
end
|
17
28
|
def cover(configuration_file)
|
18
|
-
|
19
|
-
yield
|
29
|
+
b.append " cover #{b.format configuration_file}"
|
30
|
+
yield b if block_given?
|
20
31
|
self
|
21
32
|
end
|
22
33
|
def delete(configuration_file)
|
23
|
-
|
24
|
-
yield
|
34
|
+
b.append " delete #{b.format configuration_file}"
|
35
|
+
yield b if block_given?
|
25
36
|
self
|
26
37
|
end
|
27
38
|
def help(command=nil, file_name=nil)
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
yield
|
39
|
+
b.append ' help'
|
40
|
+
b.append " #{b.format command}" unless command.nil?
|
41
|
+
b.append " #{b.format file_name}" unless file_name.nil?
|
42
|
+
yield b if block_given?
|
32
43
|
self
|
33
44
|
end
|
34
45
|
def list(configuration_file)
|
35
|
-
|
36
|
-
yield
|
46
|
+
b.append " list #{b.format configuration_file}"
|
47
|
+
yield b if block_given?
|
37
48
|
self
|
38
49
|
end
|
39
50
|
def merge(configuration_file)
|
40
|
-
|
41
|
-
yield
|
51
|
+
b.append " merge #{b.format configuration_file}"
|
52
|
+
yield b if block_given?
|
42
53
|
self
|
43
54
|
end
|
44
55
|
def report(configuration_file)
|
45
|
-
|
46
|
-
yield
|
56
|
+
b.append " report #{b.format configuration_file}"
|
57
|
+
yield b if block_given?
|
47
58
|
self
|
48
59
|
end
|
49
60
|
end
|
50
|
-
|
51
|
-
builder = CommandBuilder.new COMMAND_NAME
|
52
|
-
command = DotCover.new builder
|
53
|
-
yield builder if block_given?
|
54
|
-
command
|
55
|
-
end
|
61
|
+
|
56
62
|
end
|
57
63
|
end
|
58
|
-
|
59
|
-
builder = CommandBuilder.new DotCover::V10::COMMAND_NAME
|
60
|
-
command = DotCover::V10::DotCover.new builder
|
61
|
-
yield builder if block_given?
|
62
|
-
command
|
63
|
-
end
|
64
|
-
end
|
64
|
+
end
|
@@ -1,294 +1,294 @@
|
|
1
1
|
require File.expand_path(File.dirname(__FILE__) + '/../command_base')
|
2
|
-
require File.expand_path(File.dirname(__FILE__) + '/../
|
2
|
+
require File.expand_path(File.dirname(__FILE__) + '/../underlying_builder')
|
3
3
|
|
4
4
|
module FluentCommandBuilder
|
5
|
+
def dotcover_11
|
6
|
+
FluentCommandBuilder::DotCover::V11.create { |b| yield b if block_given? }
|
7
|
+
end
|
5
8
|
module DotCover
|
6
9
|
module V11
|
7
|
-
|
10
|
+
def self.create
|
11
|
+
b = UnderlyingBuilder.new FluentCommandBuilder::DotCover::COMMAND_NAME
|
12
|
+
c = DotCover.new(b)
|
13
|
+
yield b if block_given?
|
14
|
+
c
|
15
|
+
end
|
16
|
+
def dotcover
|
17
|
+
FluentCommandBuilder::DotCover::V11.create { |b| yield b if block_given? }
|
18
|
+
end
|
8
19
|
class DotCover < CommandBase
|
9
|
-
def initialize(
|
10
|
-
super
|
20
|
+
def initialize(underlying_builder)
|
21
|
+
super underlying_builder
|
11
22
|
end
|
12
23
|
def analyse(configuration_file=nil)
|
13
|
-
Analyse.new
|
24
|
+
Analyse.new b, configuration_file
|
14
25
|
end
|
15
26
|
def cover(configuration_file=nil)
|
16
|
-
Cover.new
|
27
|
+
Cover.new b, configuration_file
|
17
28
|
end
|
18
29
|
def delete(configuration_file=nil)
|
19
|
-
Delete.new
|
30
|
+
Delete.new b, configuration_file
|
20
31
|
end
|
21
32
|
def help(command=nil, file_name=nil)
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
yield
|
33
|
+
b.append ' help'
|
34
|
+
b.append " #{b.format command}" unless command.nil?
|
35
|
+
b.append " #{b.format file_name}" unless file_name.nil?
|
36
|
+
yield b if block_given?
|
26
37
|
self
|
27
38
|
end
|
28
39
|
def list(configuration_file=nil)
|
29
|
-
List.new
|
40
|
+
List.new b, configuration_file
|
30
41
|
end
|
31
42
|
def merge(configuration_file=nil)
|
32
|
-
Merge.new
|
43
|
+
Merge.new b, configuration_file
|
33
44
|
end
|
34
45
|
def report(configuration_file=nil)
|
35
|
-
Report.new
|
46
|
+
Report.new b, configuration_file
|
36
47
|
end
|
37
48
|
def version(output_file_name=nil)
|
38
|
-
Version.new
|
49
|
+
Version.new b, output_file_name
|
39
50
|
end
|
40
51
|
def zip(configuration_file=nil)
|
41
|
-
Zip.new
|
52
|
+
Zip.new b, configuration_file
|
42
53
|
end
|
43
54
|
end
|
44
55
|
class Analyse < CommandBase
|
45
|
-
def initialize(
|
46
|
-
super
|
47
|
-
|
48
|
-
|
56
|
+
def initialize(underlying_builder, configuration_file=nil)
|
57
|
+
super underlying_builder
|
58
|
+
b.append ' analyse'
|
59
|
+
b.append " #{b.format configuration_file}" unless configuration_file.nil?
|
49
60
|
end
|
50
61
|
def analyse_target_arguments(bool)
|
51
|
-
|
52
|
-
yield
|
62
|
+
b.append " /analyseTargetArguments=#{b.format bool}"
|
63
|
+
yield b if block_given?
|
53
64
|
self
|
54
65
|
end
|
55
66
|
def filters(filters)
|
56
|
-
|
57
|
-
yield
|
67
|
+
b.append " /filters=#{b.format filters, ';'}"
|
68
|
+
yield b if block_given?
|
58
69
|
self
|
59
70
|
end
|
60
71
|
def inherit_console(bool)
|
61
|
-
|
62
|
-
yield
|
72
|
+
b.append " /inheritConsole=#{b.format bool}"
|
73
|
+
yield b if block_given?
|
63
74
|
self
|
64
75
|
end
|
65
76
|
def log_file(log_file)
|
66
|
-
|
67
|
-
yield
|
77
|
+
b.append " /logFile=#{b.format log_file}"
|
78
|
+
yield b if block_given?
|
68
79
|
self
|
69
80
|
end
|
70
81
|
def output(snapshot_path)
|
71
|
-
|
72
|
-
yield
|
82
|
+
b.append " /output=#{b.format snapshot_path}"
|
83
|
+
yield b if block_given?
|
73
84
|
self
|
74
85
|
end
|
75
86
|
def report_type(report_type)
|
76
|
-
|
77
|
-
yield
|
87
|
+
b.append " /reportType=#{b.format report_type}"
|
88
|
+
yield b if block_given?
|
78
89
|
self
|
79
90
|
end
|
80
91
|
def target_arguments(target_arguments)
|
81
|
-
|
82
|
-
yield
|
92
|
+
b.append " /targetArguments=#{b.format target_arguments}"
|
93
|
+
yield b if block_given?
|
83
94
|
self
|
84
95
|
end
|
85
96
|
def target_executable(target_executable)
|
86
|
-
|
87
|
-
yield
|
97
|
+
b.append " /targetExecutable=#{b.format target_executable}"
|
98
|
+
yield b if block_given?
|
88
99
|
self
|
89
100
|
end
|
90
101
|
def target_working_dir(target_working_dir)
|
91
|
-
|
92
|
-
yield
|
102
|
+
b.append " /targetWorkingDir=#{b.format target_working_dir}"
|
103
|
+
yield b if block_given?
|
93
104
|
self
|
94
105
|
end
|
95
106
|
def temp_dir(temp_dir)
|
96
|
-
|
97
|
-
yield
|
107
|
+
b.append " /tempDir=#{b.format temp_dir}"
|
108
|
+
yield b if block_given?
|
98
109
|
self
|
99
110
|
end
|
100
111
|
end
|
101
112
|
class Cover < CommandBase
|
102
|
-
def initialize(
|
103
|
-
super
|
104
|
-
|
105
|
-
|
113
|
+
def initialize(underlying_builder, configuration_file=nil)
|
114
|
+
super underlying_builder
|
115
|
+
b.append ' cover'
|
116
|
+
b.append " #{b.format configuration_file}" unless configuration_file.nil?
|
106
117
|
end
|
107
118
|
def analyse_target_arguments(bool)
|
108
|
-
|
109
|
-
yield
|
119
|
+
b.append " /analyseTargetArguments=#{b.format bool}"
|
120
|
+
yield b if block_given?
|
110
121
|
self
|
111
122
|
end
|
112
123
|
def filters(filters)
|
113
|
-
|
114
|
-
yield
|
124
|
+
b.append " /filters=#{b.format filters, ';'}"
|
125
|
+
yield b if block_given?
|
115
126
|
self
|
116
127
|
end
|
117
128
|
def inherit_console(bool)
|
118
|
-
|
119
|
-
yield
|
129
|
+
b.append " /inheritConsole=#{b.format bool}"
|
130
|
+
yield b if block_given?
|
120
131
|
self
|
121
132
|
end
|
122
133
|
def log_file(log_file)
|
123
|
-
|
124
|
-
yield
|
134
|
+
b.append " /logFile=#{b.format log_file}"
|
135
|
+
yield b if block_given?
|
125
136
|
self
|
126
137
|
end
|
127
138
|
def output(snapshot_path)
|
128
|
-
|
129
|
-
yield
|
139
|
+
b.append " /output=#{b.format snapshot_path}"
|
140
|
+
yield b if block_given?
|
130
141
|
self
|
131
142
|
end
|
132
143
|
def target_arguments(target_arguments)
|
133
|
-
|
134
|
-
yield
|
144
|
+
b.append " /targetArguments=#{b.format target_arguments}"
|
145
|
+
yield b if block_given?
|
135
146
|
self
|
136
147
|
end
|
137
148
|
def target_executable(target_executable)
|
138
|
-
|
139
|
-
yield
|
149
|
+
b.append " /targetExecutable=#{b.format target_executable}"
|
150
|
+
yield b if block_given?
|
140
151
|
self
|
141
152
|
end
|
142
153
|
def target_working_dir(target_working_dir)
|
143
|
-
|
144
|
-
yield
|
154
|
+
b.append " /targetWorkingDir=#{b.format target_working_dir}"
|
155
|
+
yield b if block_given?
|
145
156
|
self
|
146
157
|
end
|
147
158
|
def temp_dir(temp_dir)
|
148
|
-
|
149
|
-
yield
|
159
|
+
b.append " /tempDir=#{b.format temp_dir}"
|
160
|
+
yield b if block_given?
|
150
161
|
self
|
151
162
|
end
|
152
163
|
end
|
153
164
|
class Delete < CommandBase
|
154
|
-
def initialize(
|
155
|
-
super
|
156
|
-
|
157
|
-
|
165
|
+
def initialize(underlying_builder, configuration_file=nil)
|
166
|
+
super underlying_builder
|
167
|
+
b.append ' delete'
|
168
|
+
b.append " #{b.format configuration_file}" unless configuration_file.nil?
|
158
169
|
end
|
159
170
|
def log_file(log_file)
|
160
|
-
|
161
|
-
yield
|
171
|
+
b.append " /logFile=#{b.format log_file}"
|
172
|
+
yield b if block_given?
|
162
173
|
self
|
163
174
|
end
|
164
175
|
def source(source)
|
165
|
-
|
166
|
-
yield
|
176
|
+
b.append " /source=#{b.format source}"
|
177
|
+
yield b if block_given?
|
167
178
|
self
|
168
179
|
end
|
169
180
|
end
|
170
181
|
class List < CommandBase
|
171
|
-
def initialize(
|
172
|
-
super
|
173
|
-
|
174
|
-
|
182
|
+
def initialize(underlying_builder, configuration_file=nil)
|
183
|
+
super underlying_builder
|
184
|
+
b.append ' list'
|
185
|
+
b.append " #{b.format configuration_file}" unless configuration_file.nil?
|
175
186
|
end
|
176
187
|
def log_file(log_file)
|
177
|
-
|
178
|
-
yield
|
188
|
+
b.append " /logFile=#{b.format log_file}"
|
189
|
+
yield b if block_given?
|
179
190
|
self
|
180
191
|
end
|
181
192
|
def output(snapshot_path)
|
182
|
-
|
183
|
-
yield
|
193
|
+
b.append " /output=#{b.format snapshot_path}"
|
194
|
+
yield b if block_given?
|
184
195
|
self
|
185
196
|
end
|
186
197
|
def source(source)
|
187
|
-
|
188
|
-
yield
|
198
|
+
b.append " /source=#{b.format source}"
|
199
|
+
yield b if block_given?
|
189
200
|
self
|
190
201
|
end
|
191
202
|
end
|
192
203
|
class Merge < CommandBase
|
193
|
-
def initialize(
|
194
|
-
super
|
195
|
-
|
196
|
-
|
204
|
+
def initialize(underlying_builder, configuration_file=nil)
|
205
|
+
super underlying_builder
|
206
|
+
b.append ' merge'
|
207
|
+
b.append " #{b.format configuration_file}" unless configuration_file.nil?
|
197
208
|
end
|
198
209
|
def log_file(log_file)
|
199
|
-
|
200
|
-
yield
|
210
|
+
b.append " /logFile=#{b.format log_file}"
|
211
|
+
yield b if block_given?
|
201
212
|
self
|
202
213
|
end
|
203
214
|
def output(snapshot_path)
|
204
|
-
|
205
|
-
yield
|
215
|
+
b.append " /output=#{b.format snapshot_path}"
|
216
|
+
yield b if block_given?
|
206
217
|
self
|
207
218
|
end
|
208
219
|
def source(source)
|
209
|
-
|
210
|
-
yield
|
220
|
+
b.append " /source=#{b.format source}"
|
221
|
+
yield b if block_given?
|
211
222
|
self
|
212
223
|
end
|
213
224
|
def temp_dir(temp_dir)
|
214
|
-
|
215
|
-
yield
|
225
|
+
b.append " /tempDir=#{b.format temp_dir}"
|
226
|
+
yield b if block_given?
|
216
227
|
self
|
217
228
|
end
|
218
229
|
end
|
219
230
|
class Report < CommandBase
|
220
|
-
def initialize(
|
221
|
-
super
|
222
|
-
|
223
|
-
|
231
|
+
def initialize(underlying_builder, configuration_file=nil)
|
232
|
+
super underlying_builder
|
233
|
+
b.append ' report'
|
234
|
+
b.append " #{b.format configuration_file}" unless configuration_file.nil?
|
224
235
|
end
|
225
236
|
def log_file(log_file)
|
226
|
-
|
227
|
-
yield
|
237
|
+
b.append " /logFile=#{b.format log_file}"
|
238
|
+
yield b if block_given?
|
228
239
|
self
|
229
240
|
end
|
230
241
|
def output(snapshot_path)
|
231
|
-
|
232
|
-
yield
|
242
|
+
b.append " /output=#{b.format snapshot_path}"
|
243
|
+
yield b if block_given?
|
233
244
|
self
|
234
245
|
end
|
235
246
|
def report_type(report_type)
|
236
|
-
|
237
|
-
yield
|
247
|
+
b.append " /reportType=#{b.format report_type}"
|
248
|
+
yield b if block_given?
|
238
249
|
self
|
239
250
|
end
|
240
251
|
def source(source)
|
241
|
-
|
242
|
-
yield
|
252
|
+
b.append " /source=#{b.format source}"
|
253
|
+
yield b if block_given?
|
243
254
|
self
|
244
255
|
end
|
245
256
|
end
|
246
257
|
class Version < CommandBase
|
247
|
-
def initialize(
|
248
|
-
super
|
249
|
-
|
250
|
-
|
258
|
+
def initialize(underlying_builder, output_file_name=nil)
|
259
|
+
super underlying_builder
|
260
|
+
b.append ' version'
|
261
|
+
b.append " #{b.format output_file_name}" unless output_file_name.nil?
|
251
262
|
end
|
252
263
|
def log_file(log_file)
|
253
|
-
|
254
|
-
yield
|
264
|
+
b.append " /logFile=#{b.format log_file}"
|
265
|
+
yield b if block_given?
|
255
266
|
self
|
256
267
|
end
|
257
268
|
end
|
258
269
|
class Zip < CommandBase
|
259
|
-
def initialize(
|
260
|
-
super
|
261
|
-
|
262
|
-
|
270
|
+
def initialize(underlying_builder, configuration_file=nil)
|
271
|
+
super underlying_builder
|
272
|
+
b.append ' zip'
|
273
|
+
b.append " #{b.format configuration_file}" unless configuration_file.nil?
|
263
274
|
end
|
264
275
|
def log_file(log_file)
|
265
|
-
|
266
|
-
yield
|
276
|
+
b.append " /logFile=#{b.format log_file}"
|
277
|
+
yield b if block_given?
|
267
278
|
self
|
268
279
|
end
|
269
280
|
def output(snapshot_path)
|
270
|
-
|
271
|
-
yield
|
281
|
+
b.append " /output=#{b.format snapshot_path}"
|
282
|
+
yield b if block_given?
|
272
283
|
self
|
273
284
|
end
|
274
285
|
def source(source)
|
275
|
-
|
276
|
-
yield
|
286
|
+
b.append " /source=#{b.format source}"
|
287
|
+
yield b if block_given?
|
277
288
|
self
|
278
289
|
end
|
279
290
|
end
|
280
|
-
|
281
|
-
builder = CommandBuilder.new COMMAND_NAME
|
282
|
-
command = DotCover.new builder
|
283
|
-
yield builder if block_given?
|
284
|
-
command
|
285
|
-
end
|
291
|
+
|
286
292
|
end
|
287
293
|
end
|
288
|
-
|
289
|
-
builder = CommandBuilder.new DotCover::V11::COMMAND_NAME
|
290
|
-
command = DotCover::V11::DotCover.new builder
|
291
|
-
yield builder if block_given?
|
292
|
-
command
|
293
|
-
end
|
294
|
-
end
|
294
|
+
end
|