fluent_command_builder 0.5.2 → 0.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,6 +10,7 @@ require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/comma
|
|
10
10
|
require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/dotcover_10.rb')
|
11
11
|
require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/dotcover_11.rb')
|
12
12
|
require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/dotcover_12.rb')
|
13
|
+
require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/dotcover_20.rb')
|
13
14
|
require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/installutil_11.rb')
|
14
15
|
require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/installutil_20.rb')
|
15
16
|
require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/installutil_35.rb')
|
@@ -0,0 +1,304 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/../command_base')
|
2
|
+
require File.expand_path(File.dirname(__FILE__) + '/../command_builder')
|
3
|
+
|
4
|
+
module FluentCommandBuilder
|
5
|
+
module DotCover
|
6
|
+
module V20
|
7
|
+
COMMAND_NAME = 'dotCover'
|
8
|
+
class DotCover < CommandBase
|
9
|
+
def initialize(builder)
|
10
|
+
super builder
|
11
|
+
end
|
12
|
+
def analyse(configuration_file=nil)
|
13
|
+
Analyse.new @builder, configuration_file
|
14
|
+
end
|
15
|
+
def cover(configuration_file=nil)
|
16
|
+
Cover.new @builder, configuration_file
|
17
|
+
end
|
18
|
+
def delete(configuration_file=nil)
|
19
|
+
Delete.new @builder, configuration_file
|
20
|
+
end
|
21
|
+
def help(command=nil, file_name=nil)
|
22
|
+
@builder.append ' help'
|
23
|
+
@builder.append " #{@builder.format command}" unless command.nil?
|
24
|
+
@builder.append " #{@builder.format file_name}" unless file_name.nil?
|
25
|
+
yield @builder if block_given?
|
26
|
+
self
|
27
|
+
end
|
28
|
+
def list(configuration_file=nil)
|
29
|
+
List.new @builder, configuration_file
|
30
|
+
end
|
31
|
+
def merge(configuration_file=nil)
|
32
|
+
Merge.new @builder, configuration_file
|
33
|
+
end
|
34
|
+
def report(configuration_file=nil)
|
35
|
+
Report.new @builder, configuration_file
|
36
|
+
end
|
37
|
+
def version(output_file_name=nil)
|
38
|
+
Version.new @builder, output_file_name
|
39
|
+
end
|
40
|
+
def zip(configuration_file=nil)
|
41
|
+
Zip.new @builder, configuration_file
|
42
|
+
end
|
43
|
+
end
|
44
|
+
class Analyse < CommandBase
|
45
|
+
def initialize(builder, configuration_file=nil)
|
46
|
+
super builder
|
47
|
+
@builder.append ' analyse'
|
48
|
+
@builder.append " #{@builder.format configuration_file}" unless configuration_file.nil?
|
49
|
+
end
|
50
|
+
def analyse_target_arguments(bool)
|
51
|
+
@builder.append " /analyseTargetArguments=#{@builder.format bool}"
|
52
|
+
yield @builder if block_given?
|
53
|
+
self
|
54
|
+
end
|
55
|
+
def attribute_filters(filters)
|
56
|
+
@builder.append " /attributeFilters=#{@builder.format filters, ';'}"
|
57
|
+
yield @builder if block_given?
|
58
|
+
self
|
59
|
+
end
|
60
|
+
def filters(filters)
|
61
|
+
@builder.append " /filters=#{@builder.format filters, ';'}"
|
62
|
+
yield @builder if block_given?
|
63
|
+
self
|
64
|
+
end
|
65
|
+
def inherit_console(bool)
|
66
|
+
@builder.append " /inheritConsole=#{@builder.format bool}"
|
67
|
+
yield @builder if block_given?
|
68
|
+
self
|
69
|
+
end
|
70
|
+
def log_file(log_file)
|
71
|
+
@builder.append " /logFile=#{@builder.format log_file}"
|
72
|
+
yield @builder if block_given?
|
73
|
+
self
|
74
|
+
end
|
75
|
+
def output(snapshot_path)
|
76
|
+
@builder.append " /output=#{@builder.format snapshot_path}"
|
77
|
+
yield @builder if block_given?
|
78
|
+
self
|
79
|
+
end
|
80
|
+
def report_type(report_type)
|
81
|
+
@builder.append " /reportType=#{@builder.format report_type}"
|
82
|
+
yield @builder if block_given?
|
83
|
+
self
|
84
|
+
end
|
85
|
+
def target_arguments(target_arguments)
|
86
|
+
@builder.append " /targetArguments=#{@builder.format target_arguments}"
|
87
|
+
yield @builder if block_given?
|
88
|
+
self
|
89
|
+
end
|
90
|
+
def target_executable(target_executable)
|
91
|
+
@builder.append " /targetExecutable=#{@builder.format target_executable}"
|
92
|
+
yield @builder if block_given?
|
93
|
+
self
|
94
|
+
end
|
95
|
+
def target_working_dir(target_working_dir)
|
96
|
+
@builder.append " /targetWorkingDir=#{@builder.format target_working_dir}"
|
97
|
+
yield @builder if block_given?
|
98
|
+
self
|
99
|
+
end
|
100
|
+
def temp_dir(temp_dir)
|
101
|
+
@builder.append " /tempDir=#{@builder.format temp_dir}"
|
102
|
+
yield @builder if block_given?
|
103
|
+
self
|
104
|
+
end
|
105
|
+
end
|
106
|
+
class Cover < CommandBase
|
107
|
+
def initialize(builder, configuration_file=nil)
|
108
|
+
super builder
|
109
|
+
@builder.append ' cover'
|
110
|
+
@builder.append " #{@builder.format configuration_file}" unless configuration_file.nil?
|
111
|
+
end
|
112
|
+
def analyse_target_arguments(bool)
|
113
|
+
@builder.append " /analyseTargetArguments=#{@builder.format bool}"
|
114
|
+
yield @builder if block_given?
|
115
|
+
self
|
116
|
+
end
|
117
|
+
def attribute_filters(filters)
|
118
|
+
@builder.append " /attributeFilters=#{@builder.format filters, ';'}"
|
119
|
+
yield @builder if block_given?
|
120
|
+
self
|
121
|
+
end
|
122
|
+
def filters(filters)
|
123
|
+
@builder.append " /filters=#{@builder.format filters, ';'}"
|
124
|
+
yield @builder if block_given?
|
125
|
+
self
|
126
|
+
end
|
127
|
+
def inherit_console(bool)
|
128
|
+
@builder.append " /inheritConsole=#{@builder.format bool}"
|
129
|
+
yield @builder if block_given?
|
130
|
+
self
|
131
|
+
end
|
132
|
+
def log_file(log_file)
|
133
|
+
@builder.append " /logFile=#{@builder.format log_file}"
|
134
|
+
yield @builder if block_given?
|
135
|
+
self
|
136
|
+
end
|
137
|
+
def output(snapshot_path)
|
138
|
+
@builder.append " /output=#{@builder.format snapshot_path}"
|
139
|
+
yield @builder if block_given?
|
140
|
+
self
|
141
|
+
end
|
142
|
+
def target_arguments(target_arguments)
|
143
|
+
@builder.append " /targetArguments=#{@builder.format target_arguments}"
|
144
|
+
yield @builder if block_given?
|
145
|
+
self
|
146
|
+
end
|
147
|
+
def target_executable(target_executable)
|
148
|
+
@builder.append " /targetExecutable=#{@builder.format target_executable}"
|
149
|
+
yield @builder if block_given?
|
150
|
+
self
|
151
|
+
end
|
152
|
+
def target_working_dir(target_working_dir)
|
153
|
+
@builder.append " /targetWorkingDir=#{@builder.format target_working_dir}"
|
154
|
+
yield @builder if block_given?
|
155
|
+
self
|
156
|
+
end
|
157
|
+
def temp_dir(temp_dir)
|
158
|
+
@builder.append " /tempDir=#{@builder.format temp_dir}"
|
159
|
+
yield @builder if block_given?
|
160
|
+
self
|
161
|
+
end
|
162
|
+
end
|
163
|
+
class Delete < CommandBase
|
164
|
+
def initialize(builder, configuration_file=nil)
|
165
|
+
super builder
|
166
|
+
@builder.append ' delete'
|
167
|
+
@builder.append " #{@builder.format configuration_file}" unless configuration_file.nil?
|
168
|
+
end
|
169
|
+
def log_file(log_file)
|
170
|
+
@builder.append " /logFile=#{@builder.format log_file}"
|
171
|
+
yield @builder if block_given?
|
172
|
+
self
|
173
|
+
end
|
174
|
+
def source(source)
|
175
|
+
@builder.append " /source=#{@builder.format source}"
|
176
|
+
yield @builder if block_given?
|
177
|
+
self
|
178
|
+
end
|
179
|
+
end
|
180
|
+
class List < CommandBase
|
181
|
+
def initialize(builder, configuration_file=nil)
|
182
|
+
super builder
|
183
|
+
@builder.append ' list'
|
184
|
+
@builder.append " #{@builder.format configuration_file}" unless configuration_file.nil?
|
185
|
+
end
|
186
|
+
def log_file(log_file)
|
187
|
+
@builder.append " /logFile=#{@builder.format log_file}"
|
188
|
+
yield @builder if block_given?
|
189
|
+
self
|
190
|
+
end
|
191
|
+
def output(snapshot_path)
|
192
|
+
@builder.append " /output=#{@builder.format snapshot_path}"
|
193
|
+
yield @builder if block_given?
|
194
|
+
self
|
195
|
+
end
|
196
|
+
def source(source)
|
197
|
+
@builder.append " /source=#{@builder.format source}"
|
198
|
+
yield @builder if block_given?
|
199
|
+
self
|
200
|
+
end
|
201
|
+
end
|
202
|
+
class Merge < CommandBase
|
203
|
+
def initialize(builder, configuration_file=nil)
|
204
|
+
super builder
|
205
|
+
@builder.append ' merge'
|
206
|
+
@builder.append " #{@builder.format configuration_file}" unless configuration_file.nil?
|
207
|
+
end
|
208
|
+
def log_file(log_file)
|
209
|
+
@builder.append " /logFile=#{@builder.format log_file}"
|
210
|
+
yield @builder if block_given?
|
211
|
+
self
|
212
|
+
end
|
213
|
+
def output(snapshot_path)
|
214
|
+
@builder.append " /output=#{@builder.format snapshot_path}"
|
215
|
+
yield @builder if block_given?
|
216
|
+
self
|
217
|
+
end
|
218
|
+
def source(source)
|
219
|
+
@builder.append " /source=#{@builder.format source}"
|
220
|
+
yield @builder if block_given?
|
221
|
+
self
|
222
|
+
end
|
223
|
+
def temp_dir(temp_dir)
|
224
|
+
@builder.append " /tempDir=#{@builder.format temp_dir}"
|
225
|
+
yield @builder if block_given?
|
226
|
+
self
|
227
|
+
end
|
228
|
+
end
|
229
|
+
class Report < CommandBase
|
230
|
+
def initialize(builder, configuration_file=nil)
|
231
|
+
super builder
|
232
|
+
@builder.append ' report'
|
233
|
+
@builder.append " #{@builder.format configuration_file}" unless configuration_file.nil?
|
234
|
+
end
|
235
|
+
def log_file(log_file)
|
236
|
+
@builder.append " /logFile=#{@builder.format log_file}"
|
237
|
+
yield @builder if block_given?
|
238
|
+
self
|
239
|
+
end
|
240
|
+
def output(snapshot_path)
|
241
|
+
@builder.append " /output=#{@builder.format snapshot_path}"
|
242
|
+
yield @builder if block_given?
|
243
|
+
self
|
244
|
+
end
|
245
|
+
def report_type(report_type)
|
246
|
+
@builder.append " /reportType=#{@builder.format report_type}"
|
247
|
+
yield @builder if block_given?
|
248
|
+
self
|
249
|
+
end
|
250
|
+
def source(source)
|
251
|
+
@builder.append " /source=#{@builder.format source}"
|
252
|
+
yield @builder if block_given?
|
253
|
+
self
|
254
|
+
end
|
255
|
+
end
|
256
|
+
class Version < CommandBase
|
257
|
+
def initialize(builder, output_file_name=nil)
|
258
|
+
super builder
|
259
|
+
@builder.append ' version'
|
260
|
+
@builder.append " #{@builder.format output_file_name}" unless output_file_name.nil?
|
261
|
+
end
|
262
|
+
def log_file(log_file)
|
263
|
+
@builder.append " /logFile=#{@builder.format log_file}"
|
264
|
+
yield @builder if block_given?
|
265
|
+
self
|
266
|
+
end
|
267
|
+
end
|
268
|
+
class Zip < CommandBase
|
269
|
+
def initialize(builder, configuration_file=nil)
|
270
|
+
super builder
|
271
|
+
@builder.append ' zip'
|
272
|
+
@builder.append " #{@builder.format configuration_file}" unless configuration_file.nil?
|
273
|
+
end
|
274
|
+
def log_file(log_file)
|
275
|
+
@builder.append " /logFile=#{@builder.format log_file}"
|
276
|
+
yield @builder if block_given?
|
277
|
+
self
|
278
|
+
end
|
279
|
+
def output(snapshot_path)
|
280
|
+
@builder.append " /output=#{@builder.format snapshot_path}"
|
281
|
+
yield @builder if block_given?
|
282
|
+
self
|
283
|
+
end
|
284
|
+
def source(source)
|
285
|
+
@builder.append " /source=#{@builder.format source}"
|
286
|
+
yield @builder if block_given?
|
287
|
+
self
|
288
|
+
end
|
289
|
+
end
|
290
|
+
def dotcover
|
291
|
+
builder = CommandBuilder.new COMMAND_NAME
|
292
|
+
command = DotCover.new builder
|
293
|
+
yield builder if block_given?
|
294
|
+
command
|
295
|
+
end
|
296
|
+
end
|
297
|
+
end
|
298
|
+
def dotcover_20
|
299
|
+
builder = CommandBuilder.new DotCover::V20::COMMAND_NAME
|
300
|
+
command = DotCover::V20::DotCover.new builder
|
301
|
+
yield builder if block_given?
|
302
|
+
command
|
303
|
+
end
|
304
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent_command_builder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-07-16 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
16
|
-
requirement: &
|
16
|
+
requirement: &70255208659160 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,8 +21,8 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
25
|
-
description:
|
24
|
+
version_requirements: *70255208659160
|
25
|
+
description: Fluent Command Builder makes building command lines easy and intuitive.
|
26
26
|
email: matthew-github@matthewriley.name
|
27
27
|
executables: []
|
28
28
|
extensions: []
|
@@ -42,6 +42,7 @@ files:
|
|
42
42
|
- lib/fluent_command_builder/command_builders/dotcover_10.rb
|
43
43
|
- lib/fluent_command_builder/command_builders/dotcover_11.rb
|
44
44
|
- lib/fluent_command_builder/command_builders/dotcover_12.rb
|
45
|
+
- lib/fluent_command_builder/command_builders/dotcover_20.rb
|
45
46
|
- lib/fluent_command_builder/command_builders/installutil_11.rb
|
46
47
|
- lib/fluent_command_builder/command_builders/installutil_20.rb
|
47
48
|
- lib/fluent_command_builder/command_builders/installutil_35.rb
|
@@ -88,5 +89,5 @@ rubyforge_project:
|
|
88
89
|
rubygems_version: 1.8.15
|
89
90
|
signing_key:
|
90
91
|
specification_version: 3
|
91
|
-
summary:
|
92
|
+
summary: An intuitive command line builder with a fluent interface.
|
92
93
|
test_files: []
|