fluent_command_builder 0.9.7 → 0.9.8

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