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 DotCover
|
9
9
|
module V10
|
10
|
+
VERSION = '1.0'
|
10
11
|
def self.create
|
11
12
|
b = UnderlyingBuilder.new FluentCommandBuilder::DotCover::COMMAND_NAME
|
12
13
|
c = DotCover.new(b)
|
@@ -21,40 +22,40 @@ module FluentCommandBuilder
|
|
21
22
|
super underlying_builder
|
22
23
|
end
|
23
24
|
def analyse(configuration_file)
|
24
|
-
b.append " analyse #{b.format configuration_file}"
|
25
|
-
yield b if block_given?
|
25
|
+
@b.append " analyse #{@b.format configuration_file}"
|
26
|
+
yield @b if block_given?
|
26
27
|
self
|
27
28
|
end
|
28
29
|
def cover(configuration_file)
|
29
|
-
b.append " cover #{b.format configuration_file}"
|
30
|
-
yield b if block_given?
|
30
|
+
@b.append " cover #{@b.format configuration_file}"
|
31
|
+
yield @b if block_given?
|
31
32
|
self
|
32
33
|
end
|
33
34
|
def delete(configuration_file)
|
34
|
-
b.append " delete #{b.format configuration_file}"
|
35
|
-
yield b if block_given?
|
35
|
+
@b.append " delete #{@b.format configuration_file}"
|
36
|
+
yield @b if block_given?
|
36
37
|
self
|
37
38
|
end
|
38
39
|
def help(command=nil, file_name=nil)
|
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?
|
40
|
+
@b.append ' help'
|
41
|
+
@b.append " #{@b.format command}" unless command.nil?
|
42
|
+
@b.append " #{@b.format file_name}" unless file_name.nil?
|
43
|
+
yield @b if block_given?
|
43
44
|
self
|
44
45
|
end
|
45
46
|
def list(configuration_file)
|
46
|
-
b.append " list #{b.format configuration_file}"
|
47
|
-
yield b if block_given?
|
47
|
+
@b.append " list #{@b.format configuration_file}"
|
48
|
+
yield @b if block_given?
|
48
49
|
self
|
49
50
|
end
|
50
51
|
def merge(configuration_file)
|
51
|
-
b.append " merge #{b.format configuration_file}"
|
52
|
-
yield b if block_given?
|
52
|
+
@b.append " merge #{@b.format configuration_file}"
|
53
|
+
yield @b if block_given?
|
53
54
|
self
|
54
55
|
end
|
55
56
|
def report(configuration_file)
|
56
|
-
b.append " report #{b.format configuration_file}"
|
57
|
-
yield b if block_given?
|
57
|
+
@b.append " report #{@b.format configuration_file}"
|
58
|
+
yield @b if block_given?
|
58
59
|
self
|
59
60
|
end
|
60
61
|
end
|
@@ -7,6 +7,7 @@ module FluentCommandBuilder
|
|
7
7
|
end
|
8
8
|
module DotCover
|
9
9
|
module V11
|
10
|
+
VERSION = '1.1'
|
10
11
|
def self.create
|
11
12
|
b = UnderlyingBuilder.new FluentCommandBuilder::DotCover::COMMAND_NAME
|
12
13
|
c = DotCover.new(b)
|
@@ -21,270 +22,270 @@ module FluentCommandBuilder
|
|
21
22
|
super underlying_builder
|
22
23
|
end
|
23
24
|
def analyse(configuration_file=nil)
|
24
|
-
Analyse.new b, configuration_file
|
25
|
+
Analyse.new @b, configuration_file
|
25
26
|
end
|
26
27
|
def cover(configuration_file=nil)
|
27
|
-
Cover.new b, configuration_file
|
28
|
+
Cover.new @b, configuration_file
|
28
29
|
end
|
29
30
|
def delete(configuration_file=nil)
|
30
|
-
Delete.new b, configuration_file
|
31
|
+
Delete.new @b, configuration_file
|
31
32
|
end
|
32
33
|
def help(command=nil, file_name=nil)
|
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?
|
34
|
+
@b.append ' help'
|
35
|
+
@b.append " #{@b.format command}" unless command.nil?
|
36
|
+
@b.append " #{@b.format file_name}" unless file_name.nil?
|
37
|
+
yield @b if block_given?
|
37
38
|
self
|
38
39
|
end
|
39
40
|
def list(configuration_file=nil)
|
40
|
-
List.new b, configuration_file
|
41
|
+
List.new @b, configuration_file
|
41
42
|
end
|
42
43
|
def merge(configuration_file=nil)
|
43
|
-
Merge.new b, configuration_file
|
44
|
+
Merge.new @b, configuration_file
|
44
45
|
end
|
45
46
|
def report(configuration_file=nil)
|
46
|
-
Report.new b, configuration_file
|
47
|
+
Report.new @b, configuration_file
|
47
48
|
end
|
48
49
|
def version(output_file_name=nil)
|
49
|
-
Version.new b, output_file_name
|
50
|
+
Version.new @b, output_file_name
|
50
51
|
end
|
51
52
|
def zip(configuration_file=nil)
|
52
|
-
Zip.new b, configuration_file
|
53
|
+
Zip.new @b, configuration_file
|
53
54
|
end
|
54
55
|
end
|
55
56
|
class Analyse < CommandBase
|
56
57
|
def initialize(underlying_builder, configuration_file=nil)
|
57
58
|
super underlying_builder
|
58
|
-
b.append ' analyse'
|
59
|
-
b.append " #{b.format configuration_file}" unless configuration_file.nil?
|
59
|
+
@b.append ' analyse'
|
60
|
+
@b.append " #{@b.format configuration_file}" unless configuration_file.nil?
|
60
61
|
end
|
61
62
|
def analyse_target_arguments(bool)
|
62
|
-
b.append " /analyseTargetArguments=#{b.format bool}"
|
63
|
-
yield b if block_given?
|
63
|
+
@b.append " /analyseTargetArguments=#{@b.format bool}"
|
64
|
+
yield @b if block_given?
|
64
65
|
self
|
65
66
|
end
|
66
67
|
def filters(filters)
|
67
|
-
b.append " /filters=#{b.format filters, ';'}"
|
68
|
-
yield b if block_given?
|
68
|
+
@b.append " /filters=#{@b.format filters, ';'}"
|
69
|
+
yield @b if block_given?
|
69
70
|
self
|
70
71
|
end
|
71
72
|
def inherit_console(bool)
|
72
|
-
b.append " /inheritConsole=#{b.format bool}"
|
73
|
-
yield b if block_given?
|
73
|
+
@b.append " /inheritConsole=#{@b.format bool}"
|
74
|
+
yield @b if block_given?
|
74
75
|
self
|
75
76
|
end
|
76
77
|
def log_file(log_file)
|
77
|
-
b.append " /logFile=#{b.format log_file}"
|
78
|
-
yield b if block_given?
|
78
|
+
@b.append " /logFile=#{@b.format log_file}"
|
79
|
+
yield @b if block_given?
|
79
80
|
self
|
80
81
|
end
|
81
82
|
def output(snapshot_path)
|
82
|
-
b.append " /output=#{b.format snapshot_path}"
|
83
|
-
yield b if block_given?
|
83
|
+
@b.append " /output=#{@b.format snapshot_path}"
|
84
|
+
yield @b if block_given?
|
84
85
|
self
|
85
86
|
end
|
86
87
|
def report_type(report_type)
|
87
|
-
b.append " /reportType=#{b.format report_type}"
|
88
|
-
yield b if block_given?
|
88
|
+
@b.append " /reportType=#{@b.format report_type}"
|
89
|
+
yield @b if block_given?
|
89
90
|
self
|
90
91
|
end
|
91
92
|
def target_arguments(target_arguments)
|
92
|
-
b.append " /targetArguments=#{b.format target_arguments}"
|
93
|
-
yield b if block_given?
|
93
|
+
@b.append " /targetArguments=#{@b.format target_arguments}"
|
94
|
+
yield @b if block_given?
|
94
95
|
self
|
95
96
|
end
|
96
97
|
def target_executable(target_executable)
|
97
|
-
b.append " /targetExecutable=#{b.format target_executable}"
|
98
|
-
yield b if block_given?
|
98
|
+
@b.append " /targetExecutable=#{@b.format target_executable}"
|
99
|
+
yield @b if block_given?
|
99
100
|
self
|
100
101
|
end
|
101
102
|
def target_working_dir(target_working_dir)
|
102
|
-
b.append " /targetWorkingDir=#{b.format target_working_dir}"
|
103
|
-
yield b if block_given?
|
103
|
+
@b.append " /targetWorkingDir=#{@b.format target_working_dir}"
|
104
|
+
yield @b if block_given?
|
104
105
|
self
|
105
106
|
end
|
106
107
|
def temp_dir(temp_dir)
|
107
|
-
b.append " /tempDir=#{b.format temp_dir}"
|
108
|
-
yield b if block_given?
|
108
|
+
@b.append " /tempDir=#{@b.format temp_dir}"
|
109
|
+
yield @b if block_given?
|
109
110
|
self
|
110
111
|
end
|
111
112
|
end
|
112
113
|
class Cover < CommandBase
|
113
114
|
def initialize(underlying_builder, configuration_file=nil)
|
114
115
|
super underlying_builder
|
115
|
-
b.append ' cover'
|
116
|
-
b.append " #{b.format configuration_file}" unless configuration_file.nil?
|
116
|
+
@b.append ' cover'
|
117
|
+
@b.append " #{@b.format configuration_file}" unless configuration_file.nil?
|
117
118
|
end
|
118
119
|
def analyse_target_arguments(bool)
|
119
|
-
b.append " /analyseTargetArguments=#{b.format bool}"
|
120
|
-
yield b if block_given?
|
120
|
+
@b.append " /analyseTargetArguments=#{@b.format bool}"
|
121
|
+
yield @b if block_given?
|
121
122
|
self
|
122
123
|
end
|
123
124
|
def filters(filters)
|
124
|
-
b.append " /filters=#{b.format filters, ';'}"
|
125
|
-
yield b if block_given?
|
125
|
+
@b.append " /filters=#{@b.format filters, ';'}"
|
126
|
+
yield @b if block_given?
|
126
127
|
self
|
127
128
|
end
|
128
129
|
def inherit_console(bool)
|
129
|
-
b.append " /inheritConsole=#{b.format bool}"
|
130
|
-
yield b if block_given?
|
130
|
+
@b.append " /inheritConsole=#{@b.format bool}"
|
131
|
+
yield @b if block_given?
|
131
132
|
self
|
132
133
|
end
|
133
134
|
def log_file(log_file)
|
134
|
-
b.append " /logFile=#{b.format log_file}"
|
135
|
-
yield b if block_given?
|
135
|
+
@b.append " /logFile=#{@b.format log_file}"
|
136
|
+
yield @b if block_given?
|
136
137
|
self
|
137
138
|
end
|
138
139
|
def output(snapshot_path)
|
139
|
-
b.append " /output=#{b.format snapshot_path}"
|
140
|
-
yield b if block_given?
|
140
|
+
@b.append " /output=#{@b.format snapshot_path}"
|
141
|
+
yield @b if block_given?
|
141
142
|
self
|
142
143
|
end
|
143
144
|
def target_arguments(target_arguments)
|
144
|
-
b.append " /targetArguments=#{b.format target_arguments}"
|
145
|
-
yield b if block_given?
|
145
|
+
@b.append " /targetArguments=#{@b.format target_arguments}"
|
146
|
+
yield @b if block_given?
|
146
147
|
self
|
147
148
|
end
|
148
149
|
def target_executable(target_executable)
|
149
|
-
b.append " /targetExecutable=#{b.format target_executable}"
|
150
|
-
yield b if block_given?
|
150
|
+
@b.append " /targetExecutable=#{@b.format target_executable}"
|
151
|
+
yield @b if block_given?
|
151
152
|
self
|
152
153
|
end
|
153
154
|
def target_working_dir(target_working_dir)
|
154
|
-
b.append " /targetWorkingDir=#{b.format target_working_dir}"
|
155
|
-
yield b if block_given?
|
155
|
+
@b.append " /targetWorkingDir=#{@b.format target_working_dir}"
|
156
|
+
yield @b if block_given?
|
156
157
|
self
|
157
158
|
end
|
158
159
|
def temp_dir(temp_dir)
|
159
|
-
b.append " /tempDir=#{b.format temp_dir}"
|
160
|
-
yield b if block_given?
|
160
|
+
@b.append " /tempDir=#{@b.format temp_dir}"
|
161
|
+
yield @b if block_given?
|
161
162
|
self
|
162
163
|
end
|
163
164
|
end
|
164
165
|
class Delete < CommandBase
|
165
166
|
def initialize(underlying_builder, configuration_file=nil)
|
166
167
|
super underlying_builder
|
167
|
-
b.append ' delete'
|
168
|
-
b.append " #{b.format configuration_file}" unless configuration_file.nil?
|
168
|
+
@b.append ' delete'
|
169
|
+
@b.append " #{@b.format configuration_file}" unless configuration_file.nil?
|
169
170
|
end
|
170
171
|
def log_file(log_file)
|
171
|
-
b.append " /logFile=#{b.format log_file}"
|
172
|
-
yield b if block_given?
|
172
|
+
@b.append " /logFile=#{@b.format log_file}"
|
173
|
+
yield @b if block_given?
|
173
174
|
self
|
174
175
|
end
|
175
176
|
def source(source)
|
176
|
-
b.append " /source=#{b.format source}"
|
177
|
-
yield b if block_given?
|
177
|
+
@b.append " /source=#{@b.format source}"
|
178
|
+
yield @b if block_given?
|
178
179
|
self
|
179
180
|
end
|
180
181
|
end
|
181
182
|
class List < CommandBase
|
182
183
|
def initialize(underlying_builder, configuration_file=nil)
|
183
184
|
super underlying_builder
|
184
|
-
b.append ' list'
|
185
|
-
b.append " #{b.format configuration_file}" unless configuration_file.nil?
|
185
|
+
@b.append ' list'
|
186
|
+
@b.append " #{@b.format configuration_file}" unless configuration_file.nil?
|
186
187
|
end
|
187
188
|
def log_file(log_file)
|
188
|
-
b.append " /logFile=#{b.format log_file}"
|
189
|
-
yield b if block_given?
|
189
|
+
@b.append " /logFile=#{@b.format log_file}"
|
190
|
+
yield @b if block_given?
|
190
191
|
self
|
191
192
|
end
|
192
193
|
def output(snapshot_path)
|
193
|
-
b.append " /output=#{b.format snapshot_path}"
|
194
|
-
yield b if block_given?
|
194
|
+
@b.append " /output=#{@b.format snapshot_path}"
|
195
|
+
yield @b if block_given?
|
195
196
|
self
|
196
197
|
end
|
197
198
|
def source(source)
|
198
|
-
b.append " /source=#{b.format source}"
|
199
|
-
yield b if block_given?
|
199
|
+
@b.append " /source=#{@b.format source}"
|
200
|
+
yield @b if block_given?
|
200
201
|
self
|
201
202
|
end
|
202
203
|
end
|
203
204
|
class Merge < CommandBase
|
204
205
|
def initialize(underlying_builder, configuration_file=nil)
|
205
206
|
super underlying_builder
|
206
|
-
b.append ' merge'
|
207
|
-
b.append " #{b.format configuration_file}" unless configuration_file.nil?
|
207
|
+
@b.append ' merge'
|
208
|
+
@b.append " #{@b.format configuration_file}" unless configuration_file.nil?
|
208
209
|
end
|
209
210
|
def log_file(log_file)
|
210
|
-
b.append " /logFile=#{b.format log_file}"
|
211
|
-
yield b if block_given?
|
211
|
+
@b.append " /logFile=#{@b.format log_file}"
|
212
|
+
yield @b if block_given?
|
212
213
|
self
|
213
214
|
end
|
214
215
|
def output(snapshot_path)
|
215
|
-
b.append " /output=#{b.format snapshot_path}"
|
216
|
-
yield b if block_given?
|
216
|
+
@b.append " /output=#{@b.format snapshot_path}"
|
217
|
+
yield @b if block_given?
|
217
218
|
self
|
218
219
|
end
|
219
220
|
def source(source)
|
220
|
-
b.append " /source=#{b.format source}"
|
221
|
-
yield b if block_given?
|
221
|
+
@b.append " /source=#{@b.format source}"
|
222
|
+
yield @b if block_given?
|
222
223
|
self
|
223
224
|
end
|
224
225
|
def temp_dir(temp_dir)
|
225
|
-
b.append " /tempDir=#{b.format temp_dir}"
|
226
|
-
yield b if block_given?
|
226
|
+
@b.append " /tempDir=#{@b.format temp_dir}"
|
227
|
+
yield @b if block_given?
|
227
228
|
self
|
228
229
|
end
|
229
230
|
end
|
230
231
|
class Report < CommandBase
|
231
232
|
def initialize(underlying_builder, configuration_file=nil)
|
232
233
|
super underlying_builder
|
233
|
-
b.append ' report'
|
234
|
-
b.append " #{b.format configuration_file}" unless configuration_file.nil?
|
234
|
+
@b.append ' report'
|
235
|
+
@b.append " #{@b.format configuration_file}" unless configuration_file.nil?
|
235
236
|
end
|
236
237
|
def log_file(log_file)
|
237
|
-
b.append " /logFile=#{b.format log_file}"
|
238
|
-
yield b if block_given?
|
238
|
+
@b.append " /logFile=#{@b.format log_file}"
|
239
|
+
yield @b if block_given?
|
239
240
|
self
|
240
241
|
end
|
241
242
|
def output(snapshot_path)
|
242
|
-
b.append " /output=#{b.format snapshot_path}"
|
243
|
-
yield b if block_given?
|
243
|
+
@b.append " /output=#{@b.format snapshot_path}"
|
244
|
+
yield @b if block_given?
|
244
245
|
self
|
245
246
|
end
|
246
247
|
def report_type(report_type)
|
247
|
-
b.append " /reportType=#{b.format report_type}"
|
248
|
-
yield b if block_given?
|
248
|
+
@b.append " /reportType=#{@b.format report_type}"
|
249
|
+
yield @b if block_given?
|
249
250
|
self
|
250
251
|
end
|
251
252
|
def source(source)
|
252
|
-
b.append " /source=#{b.format source}"
|
253
|
-
yield b if block_given?
|
253
|
+
@b.append " /source=#{@b.format source}"
|
254
|
+
yield @b if block_given?
|
254
255
|
self
|
255
256
|
end
|
256
257
|
end
|
257
258
|
class Version < CommandBase
|
258
259
|
def initialize(underlying_builder, output_file_name=nil)
|
259
260
|
super underlying_builder
|
260
|
-
b.append ' version'
|
261
|
-
b.append " #{b.format output_file_name}" unless output_file_name.nil?
|
261
|
+
@b.append ' version'
|
262
|
+
@b.append " #{@b.format output_file_name}" unless output_file_name.nil?
|
262
263
|
end
|
263
264
|
def log_file(log_file)
|
264
|
-
b.append " /logFile=#{b.format log_file}"
|
265
|
-
yield b if block_given?
|
265
|
+
@b.append " /logFile=#{@b.format log_file}"
|
266
|
+
yield @b if block_given?
|
266
267
|
self
|
267
268
|
end
|
268
269
|
end
|
269
270
|
class Zip < CommandBase
|
270
271
|
def initialize(underlying_builder, configuration_file=nil)
|
271
272
|
super underlying_builder
|
272
|
-
b.append ' zip'
|
273
|
-
b.append " #{b.format configuration_file}" unless configuration_file.nil?
|
273
|
+
@b.append ' zip'
|
274
|
+
@b.append " #{@b.format configuration_file}" unless configuration_file.nil?
|
274
275
|
end
|
275
276
|
def log_file(log_file)
|
276
|
-
b.append " /logFile=#{b.format log_file}"
|
277
|
-
yield b if block_given?
|
277
|
+
@b.append " /logFile=#{@b.format log_file}"
|
278
|
+
yield @b if block_given?
|
278
279
|
self
|
279
280
|
end
|
280
281
|
def output(snapshot_path)
|
281
|
-
b.append " /output=#{b.format snapshot_path}"
|
282
|
-
yield b if block_given?
|
282
|
+
@b.append " /output=#{@b.format snapshot_path}"
|
283
|
+
yield @b if block_given?
|
283
284
|
self
|
284
285
|
end
|
285
286
|
def source(source)
|
286
|
-
b.append " /source=#{b.format source}"
|
287
|
-
yield b if block_given?
|
287
|
+
@b.append " /source=#{@b.format source}"
|
288
|
+
yield @b if block_given?
|
288
289
|
self
|
289
290
|
end
|
290
291
|
end
|
@@ -7,6 +7,7 @@ module FluentCommandBuilder
|
|
7
7
|
end
|
8
8
|
module DotCover
|
9
9
|
module V12
|
10
|
+
VERSION = '1.2'
|
10
11
|
def self.create
|
11
12
|
b = UnderlyingBuilder.new FluentCommandBuilder::DotCover::COMMAND_NAME
|
12
13
|
c = DotCover.new(b)
|
@@ -21,270 +22,270 @@ module FluentCommandBuilder
|
|
21
22
|
super underlying_builder
|
22
23
|
end
|
23
24
|
def analyse(configuration_file=nil)
|
24
|
-
Analyse.new b, configuration_file
|
25
|
+
Analyse.new @b, configuration_file
|
25
26
|
end
|
26
27
|
def cover(configuration_file=nil)
|
27
|
-
Cover.new b, configuration_file
|
28
|
+
Cover.new @b, configuration_file
|
28
29
|
end
|
29
30
|
def delete(configuration_file=nil)
|
30
|
-
Delete.new b, configuration_file
|
31
|
+
Delete.new @b, configuration_file
|
31
32
|
end
|
32
33
|
def help(command=nil, file_name=nil)
|
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?
|
34
|
+
@b.append ' help'
|
35
|
+
@b.append " #{@b.format command}" unless command.nil?
|
36
|
+
@b.append " #{@b.format file_name}" unless file_name.nil?
|
37
|
+
yield @b if block_given?
|
37
38
|
self
|
38
39
|
end
|
39
40
|
def list(configuration_file=nil)
|
40
|
-
List.new b, configuration_file
|
41
|
+
List.new @b, configuration_file
|
41
42
|
end
|
42
43
|
def merge(configuration_file=nil)
|
43
|
-
Merge.new b, configuration_file
|
44
|
+
Merge.new @b, configuration_file
|
44
45
|
end
|
45
46
|
def report(configuration_file=nil)
|
46
|
-
Report.new b, configuration_file
|
47
|
+
Report.new @b, configuration_file
|
47
48
|
end
|
48
49
|
def version(output_file_name=nil)
|
49
|
-
Version.new b, output_file_name
|
50
|
+
Version.new @b, output_file_name
|
50
51
|
end
|
51
52
|
def zip(configuration_file=nil)
|
52
|
-
Zip.new b, configuration_file
|
53
|
+
Zip.new @b, configuration_file
|
53
54
|
end
|
54
55
|
end
|
55
56
|
class Analyse < CommandBase
|
56
57
|
def initialize(underlying_builder, configuration_file=nil)
|
57
58
|
super underlying_builder
|
58
|
-
b.append ' analyse'
|
59
|
-
b.append " #{b.format configuration_file}" unless configuration_file.nil?
|
59
|
+
@b.append ' analyse'
|
60
|
+
@b.append " #{@b.format configuration_file}" unless configuration_file.nil?
|
60
61
|
end
|
61
62
|
def analyse_target_arguments(bool)
|
62
|
-
b.append " /analyseTargetArguments=#{b.format bool}"
|
63
|
-
yield b if block_given?
|
63
|
+
@b.append " /analyseTargetArguments=#{@b.format bool}"
|
64
|
+
yield @b if block_given?
|
64
65
|
self
|
65
66
|
end
|
66
67
|
def filters(filters)
|
67
|
-
b.append " /filters=#{b.format filters, ';'}"
|
68
|
-
yield b if block_given?
|
68
|
+
@b.append " /filters=#{@b.format filters, ';'}"
|
69
|
+
yield @b if block_given?
|
69
70
|
self
|
70
71
|
end
|
71
72
|
def inherit_console(bool)
|
72
|
-
b.append " /inheritConsole=#{b.format bool}"
|
73
|
-
yield b if block_given?
|
73
|
+
@b.append " /inheritConsole=#{@b.format bool}"
|
74
|
+
yield @b if block_given?
|
74
75
|
self
|
75
76
|
end
|
76
77
|
def log_file(log_file)
|
77
|
-
b.append " /logFile=#{b.format log_file}"
|
78
|
-
yield b if block_given?
|
78
|
+
@b.append " /logFile=#{@b.format log_file}"
|
79
|
+
yield @b if block_given?
|
79
80
|
self
|
80
81
|
end
|
81
82
|
def output(snapshot_path)
|
82
|
-
b.append " /output=#{b.format snapshot_path}"
|
83
|
-
yield b if block_given?
|
83
|
+
@b.append " /output=#{@b.format snapshot_path}"
|
84
|
+
yield @b if block_given?
|
84
85
|
self
|
85
86
|
end
|
86
87
|
def report_type(report_type)
|
87
|
-
b.append " /reportType=#{b.format report_type}"
|
88
|
-
yield b if block_given?
|
88
|
+
@b.append " /reportType=#{@b.format report_type}"
|
89
|
+
yield @b if block_given?
|
89
90
|
self
|
90
91
|
end
|
91
92
|
def target_arguments(target_arguments)
|
92
|
-
b.append " /targetArguments=#{b.format target_arguments}"
|
93
|
-
yield b if block_given?
|
93
|
+
@b.append " /targetArguments=#{@b.format target_arguments}"
|
94
|
+
yield @b if block_given?
|
94
95
|
self
|
95
96
|
end
|
96
97
|
def target_executable(target_executable)
|
97
|
-
b.append " /targetExecutable=#{b.format target_executable}"
|
98
|
-
yield b if block_given?
|
98
|
+
@b.append " /targetExecutable=#{@b.format target_executable}"
|
99
|
+
yield @b if block_given?
|
99
100
|
self
|
100
101
|
end
|
101
102
|
def target_working_dir(target_working_dir)
|
102
|
-
b.append " /targetWorkingDir=#{b.format target_working_dir}"
|
103
|
-
yield b if block_given?
|
103
|
+
@b.append " /targetWorkingDir=#{@b.format target_working_dir}"
|
104
|
+
yield @b if block_given?
|
104
105
|
self
|
105
106
|
end
|
106
107
|
def temp_dir(temp_dir)
|
107
|
-
b.append " /tempDir=#{b.format temp_dir}"
|
108
|
-
yield b if block_given?
|
108
|
+
@b.append " /tempDir=#{@b.format temp_dir}"
|
109
|
+
yield @b if block_given?
|
109
110
|
self
|
110
111
|
end
|
111
112
|
end
|
112
113
|
class Cover < CommandBase
|
113
114
|
def initialize(underlying_builder, configuration_file=nil)
|
114
115
|
super underlying_builder
|
115
|
-
b.append ' cover'
|
116
|
-
b.append " #{b.format configuration_file}" unless configuration_file.nil?
|
116
|
+
@b.append ' cover'
|
117
|
+
@b.append " #{@b.format configuration_file}" unless configuration_file.nil?
|
117
118
|
end
|
118
119
|
def analyse_target_arguments(bool)
|
119
|
-
b.append " /analyseTargetArguments=#{b.format bool}"
|
120
|
-
yield b if block_given?
|
120
|
+
@b.append " /analyseTargetArguments=#{@b.format bool}"
|
121
|
+
yield @b if block_given?
|
121
122
|
self
|
122
123
|
end
|
123
124
|
def filters(filters)
|
124
|
-
b.append " /filters=#{b.format filters, ';'}"
|
125
|
-
yield b if block_given?
|
125
|
+
@b.append " /filters=#{@b.format filters, ';'}"
|
126
|
+
yield @b if block_given?
|
126
127
|
self
|
127
128
|
end
|
128
129
|
def inherit_console(bool)
|
129
|
-
b.append " /inheritConsole=#{b.format bool}"
|
130
|
-
yield b if block_given?
|
130
|
+
@b.append " /inheritConsole=#{@b.format bool}"
|
131
|
+
yield @b if block_given?
|
131
132
|
self
|
132
133
|
end
|
133
134
|
def log_file(log_file)
|
134
|
-
b.append " /logFile=#{b.format log_file}"
|
135
|
-
yield b if block_given?
|
135
|
+
@b.append " /logFile=#{@b.format log_file}"
|
136
|
+
yield @b if block_given?
|
136
137
|
self
|
137
138
|
end
|
138
139
|
def output(snapshot_path)
|
139
|
-
b.append " /output=#{b.format snapshot_path}"
|
140
|
-
yield b if block_given?
|
140
|
+
@b.append " /output=#{@b.format snapshot_path}"
|
141
|
+
yield @b if block_given?
|
141
142
|
self
|
142
143
|
end
|
143
144
|
def target_arguments(target_arguments)
|
144
|
-
b.append " /targetArguments=#{b.format target_arguments}"
|
145
|
-
yield b if block_given?
|
145
|
+
@b.append " /targetArguments=#{@b.format target_arguments}"
|
146
|
+
yield @b if block_given?
|
146
147
|
self
|
147
148
|
end
|
148
149
|
def target_executable(target_executable)
|
149
|
-
b.append " /targetExecutable=#{b.format target_executable}"
|
150
|
-
yield b if block_given?
|
150
|
+
@b.append " /targetExecutable=#{@b.format target_executable}"
|
151
|
+
yield @b if block_given?
|
151
152
|
self
|
152
153
|
end
|
153
154
|
def target_working_dir(target_working_dir)
|
154
|
-
b.append " /targetWorkingDir=#{b.format target_working_dir}"
|
155
|
-
yield b if block_given?
|
155
|
+
@b.append " /targetWorkingDir=#{@b.format target_working_dir}"
|
156
|
+
yield @b if block_given?
|
156
157
|
self
|
157
158
|
end
|
158
159
|
def temp_dir(temp_dir)
|
159
|
-
b.append " /tempDir=#{b.format temp_dir}"
|
160
|
-
yield b if block_given?
|
160
|
+
@b.append " /tempDir=#{@b.format temp_dir}"
|
161
|
+
yield @b if block_given?
|
161
162
|
self
|
162
163
|
end
|
163
164
|
end
|
164
165
|
class Delete < CommandBase
|
165
166
|
def initialize(underlying_builder, configuration_file=nil)
|
166
167
|
super underlying_builder
|
167
|
-
b.append ' delete'
|
168
|
-
b.append " #{b.format configuration_file}" unless configuration_file.nil?
|
168
|
+
@b.append ' delete'
|
169
|
+
@b.append " #{@b.format configuration_file}" unless configuration_file.nil?
|
169
170
|
end
|
170
171
|
def log_file(log_file)
|
171
|
-
b.append " /logFile=#{b.format log_file}"
|
172
|
-
yield b if block_given?
|
172
|
+
@b.append " /logFile=#{@b.format log_file}"
|
173
|
+
yield @b if block_given?
|
173
174
|
self
|
174
175
|
end
|
175
176
|
def source(source)
|
176
|
-
b.append " /source=#{b.format source}"
|
177
|
-
yield b if block_given?
|
177
|
+
@b.append " /source=#{@b.format source}"
|
178
|
+
yield @b if block_given?
|
178
179
|
self
|
179
180
|
end
|
180
181
|
end
|
181
182
|
class List < CommandBase
|
182
183
|
def initialize(underlying_builder, configuration_file=nil)
|
183
184
|
super underlying_builder
|
184
|
-
b.append ' list'
|
185
|
-
b.append " #{b.format configuration_file}" unless configuration_file.nil?
|
185
|
+
@b.append ' list'
|
186
|
+
@b.append " #{@b.format configuration_file}" unless configuration_file.nil?
|
186
187
|
end
|
187
188
|
def log_file(log_file)
|
188
|
-
b.append " /logFile=#{b.format log_file}"
|
189
|
-
yield b if block_given?
|
189
|
+
@b.append " /logFile=#{@b.format log_file}"
|
190
|
+
yield @b if block_given?
|
190
191
|
self
|
191
192
|
end
|
192
193
|
def output(snapshot_path)
|
193
|
-
b.append " /output=#{b.format snapshot_path}"
|
194
|
-
yield b if block_given?
|
194
|
+
@b.append " /output=#{@b.format snapshot_path}"
|
195
|
+
yield @b if block_given?
|
195
196
|
self
|
196
197
|
end
|
197
198
|
def source(source)
|
198
|
-
b.append " /source=#{b.format source}"
|
199
|
-
yield b if block_given?
|
199
|
+
@b.append " /source=#{@b.format source}"
|
200
|
+
yield @b if block_given?
|
200
201
|
self
|
201
202
|
end
|
202
203
|
end
|
203
204
|
class Merge < CommandBase
|
204
205
|
def initialize(underlying_builder, configuration_file=nil)
|
205
206
|
super underlying_builder
|
206
|
-
b.append ' merge'
|
207
|
-
b.append " #{b.format configuration_file}" unless configuration_file.nil?
|
207
|
+
@b.append ' merge'
|
208
|
+
@b.append " #{@b.format configuration_file}" unless configuration_file.nil?
|
208
209
|
end
|
209
210
|
def log_file(log_file)
|
210
|
-
b.append " /logFile=#{b.format log_file}"
|
211
|
-
yield b if block_given?
|
211
|
+
@b.append " /logFile=#{@b.format log_file}"
|
212
|
+
yield @b if block_given?
|
212
213
|
self
|
213
214
|
end
|
214
215
|
def output(snapshot_path)
|
215
|
-
b.append " /output=#{b.format snapshot_path}"
|
216
|
-
yield b if block_given?
|
216
|
+
@b.append " /output=#{@b.format snapshot_path}"
|
217
|
+
yield @b if block_given?
|
217
218
|
self
|
218
219
|
end
|
219
220
|
def source(source)
|
220
|
-
b.append " /source=#{b.format source}"
|
221
|
-
yield b if block_given?
|
221
|
+
@b.append " /source=#{@b.format source}"
|
222
|
+
yield @b if block_given?
|
222
223
|
self
|
223
224
|
end
|
224
225
|
def temp_dir(temp_dir)
|
225
|
-
b.append " /tempDir=#{b.format temp_dir}"
|
226
|
-
yield b if block_given?
|
226
|
+
@b.append " /tempDir=#{@b.format temp_dir}"
|
227
|
+
yield @b if block_given?
|
227
228
|
self
|
228
229
|
end
|
229
230
|
end
|
230
231
|
class Report < CommandBase
|
231
232
|
def initialize(underlying_builder, configuration_file=nil)
|
232
233
|
super underlying_builder
|
233
|
-
b.append ' report'
|
234
|
-
b.append " #{b.format configuration_file}" unless configuration_file.nil?
|
234
|
+
@b.append ' report'
|
235
|
+
@b.append " #{@b.format configuration_file}" unless configuration_file.nil?
|
235
236
|
end
|
236
237
|
def log_file(log_file)
|
237
|
-
b.append " /logFile=#{b.format log_file}"
|
238
|
-
yield b if block_given?
|
238
|
+
@b.append " /logFile=#{@b.format log_file}"
|
239
|
+
yield @b if block_given?
|
239
240
|
self
|
240
241
|
end
|
241
242
|
def output(snapshot_path)
|
242
|
-
b.append " /output=#{b.format snapshot_path}"
|
243
|
-
yield b if block_given?
|
243
|
+
@b.append " /output=#{@b.format snapshot_path}"
|
244
|
+
yield @b if block_given?
|
244
245
|
self
|
245
246
|
end
|
246
247
|
def report_type(report_type)
|
247
|
-
b.append " /reportType=#{b.format report_type}"
|
248
|
-
yield b if block_given?
|
248
|
+
@b.append " /reportType=#{@b.format report_type}"
|
249
|
+
yield @b if block_given?
|
249
250
|
self
|
250
251
|
end
|
251
252
|
def source(source)
|
252
|
-
b.append " /source=#{b.format source}"
|
253
|
-
yield b if block_given?
|
253
|
+
@b.append " /source=#{@b.format source}"
|
254
|
+
yield @b if block_given?
|
254
255
|
self
|
255
256
|
end
|
256
257
|
end
|
257
258
|
class Version < CommandBase
|
258
259
|
def initialize(underlying_builder, output_file_name=nil)
|
259
260
|
super underlying_builder
|
260
|
-
b.append ' version'
|
261
|
-
b.append " #{b.format output_file_name}" unless output_file_name.nil?
|
261
|
+
@b.append ' version'
|
262
|
+
@b.append " #{@b.format output_file_name}" unless output_file_name.nil?
|
262
263
|
end
|
263
264
|
def log_file(log_file)
|
264
|
-
b.append " /logFile=#{b.format log_file}"
|
265
|
-
yield b if block_given?
|
265
|
+
@b.append " /logFile=#{@b.format log_file}"
|
266
|
+
yield @b if block_given?
|
266
267
|
self
|
267
268
|
end
|
268
269
|
end
|
269
270
|
class Zip < CommandBase
|
270
271
|
def initialize(underlying_builder, configuration_file=nil)
|
271
272
|
super underlying_builder
|
272
|
-
b.append ' zip'
|
273
|
-
b.append " #{b.format configuration_file}" unless configuration_file.nil?
|
273
|
+
@b.append ' zip'
|
274
|
+
@b.append " #{@b.format configuration_file}" unless configuration_file.nil?
|
274
275
|
end
|
275
276
|
def log_file(log_file)
|
276
|
-
b.append " /logFile=#{b.format log_file}"
|
277
|
-
yield b if block_given?
|
277
|
+
@b.append " /logFile=#{@b.format log_file}"
|
278
|
+
yield @b if block_given?
|
278
279
|
self
|
279
280
|
end
|
280
281
|
def output(snapshot_path)
|
281
|
-
b.append " /output=#{b.format snapshot_path}"
|
282
|
-
yield b if block_given?
|
282
|
+
@b.append " /output=#{@b.format snapshot_path}"
|
283
|
+
yield @b if block_given?
|
283
284
|
self
|
284
285
|
end
|
285
286
|
def source(source)
|
286
|
-
b.append " /source=#{b.format source}"
|
287
|
-
yield b if block_given?
|
287
|
+
@b.append " /source=#{@b.format source}"
|
288
|
+
yield @b if block_given?
|
288
289
|
self
|
289
290
|
end
|
290
291
|
end
|