fluent_command_builder 0.1.18 → 0.1.19
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/fluent_command_builder/command_base.rb +11 -1
- data/lib/fluent_command_builder/command_builder.rb +6 -1
- data/lib/fluent_command_builder/command_builders/aspnet_compiler_20.rb +24 -7
- data/lib/fluent_command_builder/command_builders/aspnet_compiler_35.rb +24 -7
- data/lib/fluent_command_builder/command_builders/aspnet_compiler_40.rb +24 -7
- data/lib/fluent_command_builder/command_builders/bundle_11.rb +58 -51
- data/lib/fluent_command_builder/command_builders/cucumber_11.rb +39 -7
- data/lib/fluent_command_builder/command_builders/dotcover_11.rb +47 -35
- data/lib/fluent_command_builder/command_builders/installutil_11.rb +16 -7
- data/lib/fluent_command_builder/command_builders/installutil_20.rb +16 -7
- data/lib/fluent_command_builder/command_builders/installutil_35.rb +16 -7
- data/lib/fluent_command_builder/command_builders/installutil_40.rb +17 -7
- data/lib/fluent_command_builder/command_builders/msbuild_20.rb +22 -7
- data/lib/fluent_command_builder/command_builders/msbuild_30.rb +22 -7
- data/lib/fluent_command_builder/command_builders/msbuild_35.rb +30 -7
- data/lib/fluent_command_builder/command_builders/msbuild_40.rb +30 -7
- data/lib/fluent_command_builder/command_builders/msdeploy_40.rb +40 -7
- data/lib/fluent_command_builder/command_builders/mstest_2005.rb +26 -7
- data/lib/fluent_command_builder/command_builders/mstest_2008.rb +27 -7
- data/lib/fluent_command_builder/command_builders/mstest_2010.rb +30 -7
- data/lib/fluent_command_builder/command_builders/netsh_2008.rb +79 -43
- data/lib/fluent_command_builder/command_builders/nunit_25.rb +31 -7
- data/lib/fluent_command_builder/command_builders/rake_09.rb +34 -8
- data/lib/fluent_command_builder/command_builders/sevenzip_92.rb +93 -39
- data/lib/fluent_command_builder/command_builders/simian_23.rb +33 -7
- data/lib/fluent_command_builder/command_builders/tf_2010.rb +372 -235
- data/lib/fluent_command_builder/command_builders/tf_tee_2010.rb +339 -278
- metadata +2 -2
@@ -4,138 +4,170 @@ require File.expand_path(File.dirname(__FILE__) + '/../command_builder')
|
|
4
4
|
module FluentCommandBuilder
|
5
5
|
module Cucumber
|
6
6
|
module V11
|
7
|
+
COMMAND_NAME = 'cucumber'
|
7
8
|
class Cucumber < CommandBase
|
8
9
|
def initialize builder, feature=nil
|
9
|
-
|
10
|
-
@builder.append 'cucumber'
|
10
|
+
super builder
|
11
11
|
@builder.append " #{@builder.format feature}" unless feature.nil?
|
12
12
|
end
|
13
13
|
def require library
|
14
14
|
@builder.append " --require #{@builder.format library}"
|
15
|
+
yield @builder if block_given?
|
15
16
|
self
|
16
17
|
end
|
17
18
|
def i18n lang
|
18
19
|
@builder.append " --i18n #{@builder.format lang}"
|
20
|
+
yield @builder if block_given?
|
19
21
|
self
|
20
22
|
end
|
21
23
|
def format format
|
22
24
|
@builder.append " --format #{@builder.format format}"
|
25
|
+
yield @builder if block_given?
|
23
26
|
self
|
24
27
|
end
|
25
28
|
def out file
|
26
29
|
@builder.append " --out #{@builder.format file}"
|
30
|
+
yield @builder if block_given?
|
27
31
|
self
|
28
32
|
end
|
29
33
|
def tags tag_expression
|
30
34
|
@builder.append " --tags #{@builder.format tag_expression, ','}"
|
35
|
+
yield @builder if block_given?
|
31
36
|
self
|
32
37
|
end
|
33
38
|
def name name
|
34
39
|
@builder.append " --name #{@builder.format name}"
|
40
|
+
yield @builder if block_given?
|
35
41
|
self
|
36
42
|
end
|
37
43
|
def exclude pattern
|
38
44
|
@builder.append " --exclude #{@builder.format pattern}"
|
45
|
+
yield @builder if block_given?
|
39
46
|
self
|
40
47
|
end
|
41
48
|
def profile profile
|
42
49
|
@builder.append " --profile #{@builder.format profile}"
|
50
|
+
yield @builder if block_given?
|
43
51
|
self
|
44
52
|
end
|
45
53
|
def no_profile
|
46
54
|
@builder.append ' --no-profile'
|
55
|
+
yield @builder if block_given?
|
47
56
|
self
|
48
57
|
end
|
49
58
|
def color
|
50
59
|
@builder.append ' --color'
|
60
|
+
yield @builder if block_given?
|
51
61
|
self
|
52
62
|
end
|
53
63
|
def no_color
|
54
64
|
@builder.append ' --no-color'
|
65
|
+
yield @builder if block_given?
|
55
66
|
self
|
56
67
|
end
|
57
68
|
def dry_run
|
58
69
|
@builder.append ' --dry-run'
|
70
|
+
yield @builder if block_given?
|
59
71
|
self
|
60
72
|
end
|
61
73
|
def autoformat dir
|
62
74
|
@builder.append " --autoformat #{@builder.format dir}"
|
75
|
+
yield @builder if block_given?
|
63
76
|
self
|
64
77
|
end
|
65
78
|
def no_multiline
|
66
79
|
@builder.append ' --no-multiline'
|
80
|
+
yield @builder if block_given?
|
67
81
|
self
|
68
82
|
end
|
69
83
|
def no_source
|
70
84
|
@builder.append ' --no-source'
|
85
|
+
yield @builder if block_given?
|
71
86
|
self
|
72
87
|
end
|
73
88
|
def no_snippets
|
74
89
|
@builder.append ' --no-snippets'
|
90
|
+
yield @builder if block_given?
|
75
91
|
self
|
76
92
|
end
|
77
93
|
def quiet
|
78
94
|
@builder.append ' --quiet'
|
95
|
+
yield @builder if block_given?
|
79
96
|
self
|
80
97
|
end
|
81
98
|
def backtrace
|
82
99
|
@builder.append ' --backtrace'
|
100
|
+
yield @builder if block_given?
|
83
101
|
self
|
84
102
|
end
|
85
103
|
def strict
|
86
104
|
@builder.append ' --strict'
|
105
|
+
yield @builder if block_given?
|
87
106
|
self
|
88
107
|
end
|
89
108
|
def wip
|
90
109
|
@builder.append ' --wip'
|
110
|
+
yield @builder if block_given?
|
91
111
|
self
|
92
112
|
end
|
93
113
|
def verbose
|
94
114
|
@builder.append ' --verbose'
|
115
|
+
yield @builder if block_given?
|
95
116
|
self
|
96
117
|
end
|
97
118
|
def guess
|
98
119
|
@builder.append ' --guess'
|
120
|
+
yield @builder if block_given?
|
99
121
|
self
|
100
122
|
end
|
101
123
|
def lines lines
|
102
124
|
@builder.append " --lines #{@builder.format lines}"
|
125
|
+
yield @builder if block_given?
|
103
126
|
self
|
104
127
|
end
|
105
128
|
def expand
|
106
129
|
@builder.append ' --expand'
|
130
|
+
yield @builder if block_given?
|
107
131
|
self
|
108
132
|
end
|
109
133
|
def drb
|
110
134
|
@builder.append ' --drb'
|
135
|
+
yield @builder if block_given?
|
111
136
|
self
|
112
137
|
end
|
113
138
|
def port port
|
114
139
|
@builder.append " --port #{@builder.format port}"
|
140
|
+
yield @builder if block_given?
|
115
141
|
self
|
116
142
|
end
|
117
143
|
def dotcucumber dir
|
118
144
|
@builder.append " --dotcucumber #{@builder.format dir}"
|
145
|
+
yield @builder if block_given?
|
119
146
|
self
|
120
147
|
end
|
121
148
|
def version
|
122
149
|
@builder.append ' --version'
|
150
|
+
yield @builder if block_given?
|
123
151
|
self
|
124
152
|
end
|
125
153
|
def help
|
126
154
|
@builder.append ' --help'
|
155
|
+
yield @builder if block_given?
|
127
156
|
self
|
128
157
|
end
|
129
|
-
def to_s
|
130
|
-
@builder.to_s
|
131
|
-
end
|
132
158
|
end
|
133
159
|
def cucumber feature=nil
|
134
|
-
|
160
|
+
builder = CommandBuilder.new COMMAND_NAME
|
161
|
+
command = Cucumber.new builder, feature
|
162
|
+
yield builder if block_given?
|
163
|
+
command
|
135
164
|
end
|
136
165
|
end
|
137
166
|
end
|
138
167
|
def cucumber_11 feature=nil
|
139
|
-
|
168
|
+
builder = CommandBuilder.new Cucumber::V11::COMMAND_NAME
|
169
|
+
command = Cucumber::V11::Cucumber.new builder, feature
|
170
|
+
yield builder if block_given?
|
171
|
+
command
|
140
172
|
end
|
141
173
|
end
|
@@ -4,10 +4,10 @@ require File.expand_path(File.dirname(__FILE__) + '/../command_builder')
|
|
4
4
|
module FluentCommandBuilder
|
5
5
|
module DotCover
|
6
6
|
module V11
|
7
|
+
COMMAND_NAME = 'dotCover'
|
7
8
|
class DotCover < CommandBase
|
8
9
|
def initialize builder
|
9
|
-
|
10
|
-
@builder.append 'dotCover'
|
10
|
+
super builder
|
11
11
|
end
|
12
12
|
def cover configuration_file=nil
|
13
13
|
Cover.new @builder, configuration_file
|
@@ -30,206 +30,218 @@ module FluentCommandBuilder
|
|
30
30
|
def zip configuration_file=nil
|
31
31
|
Zip.new @builder, configuration_file
|
32
32
|
end
|
33
|
-
def to_s
|
34
|
-
@builder.to_s
|
35
|
-
end
|
36
33
|
end
|
37
34
|
class Cover < CommandBase
|
38
35
|
def initialize builder, configuration_file=nil
|
39
|
-
|
36
|
+
super builder
|
40
37
|
@builder.append ' cover'
|
41
38
|
@builder.append " #{@builder.format configuration_file}" unless configuration_file.nil?
|
42
39
|
end
|
43
40
|
def analyse_target_arguments bool
|
44
41
|
@builder.append " /analyseTargetArguments=#{@builder.format bool}"
|
42
|
+
yield @builder if block_given?
|
45
43
|
self
|
46
44
|
end
|
47
45
|
def filters filters
|
48
46
|
@builder.append " /filters=#{@builder.format filters, ';'}"
|
47
|
+
yield @builder if block_given?
|
49
48
|
self
|
50
49
|
end
|
51
50
|
def inherit_console bool
|
52
51
|
@builder.append " /inheritConsole=#{@builder.format bool}"
|
52
|
+
yield @builder if block_given?
|
53
53
|
self
|
54
54
|
end
|
55
55
|
def log_file log_file
|
56
56
|
@builder.append " /logFile=#{@builder.format log_file}"
|
57
|
+
yield @builder if block_given?
|
57
58
|
self
|
58
59
|
end
|
59
60
|
def output snapshot_path
|
60
61
|
@builder.append " /output=#{@builder.format snapshot_path}"
|
62
|
+
yield @builder if block_given?
|
61
63
|
self
|
62
64
|
end
|
63
65
|
def target_arguments target_arguments
|
64
66
|
@builder.append " /targetArguments=#{@builder.format target_arguments}"
|
67
|
+
yield @builder if block_given?
|
65
68
|
self
|
66
69
|
end
|
67
70
|
def target_executable target_executable
|
68
71
|
@builder.append " /targetExecutable=#{@builder.format target_executable}"
|
72
|
+
yield @builder if block_given?
|
69
73
|
self
|
70
74
|
end
|
71
75
|
def target_working_dir target_working_dir
|
72
76
|
@builder.append " /targetWorkingDir=#{@builder.format target_working_dir}"
|
77
|
+
yield @builder if block_given?
|
73
78
|
self
|
74
79
|
end
|
75
80
|
def temp_dir temp_dir
|
76
81
|
@builder.append " /tempDir=#{@builder.format temp_dir}"
|
82
|
+
yield @builder if block_given?
|
77
83
|
self
|
78
84
|
end
|
79
|
-
def to_s
|
80
|
-
@builder.to_s
|
81
|
-
end
|
82
85
|
end
|
83
86
|
class Merge < CommandBase
|
84
87
|
def initialize builder, configuration_file=nil
|
85
|
-
|
88
|
+
super builder
|
86
89
|
@builder.append ' merge'
|
87
90
|
@builder.append " #{@builder.format configuration_file}" unless configuration_file.nil?
|
88
91
|
end
|
89
92
|
def output snapshot_path
|
90
93
|
@builder.append " /output=#{@builder.format snapshot_path}"
|
94
|
+
yield @builder if block_given?
|
91
95
|
self
|
92
96
|
end
|
93
97
|
def source source
|
94
98
|
@builder.append " /source=#{@builder.format source}"
|
99
|
+
yield @builder if block_given?
|
95
100
|
self
|
96
101
|
end
|
97
102
|
def temp_dir temp_dir
|
98
103
|
@builder.append " /tempDir=#{@builder.format temp_dir}"
|
104
|
+
yield @builder if block_given?
|
99
105
|
self
|
100
106
|
end
|
101
|
-
def to_s
|
102
|
-
@builder.to_s
|
103
|
-
end
|
104
107
|
end
|
105
108
|
class Report < CommandBase
|
106
109
|
def initialize builder, configuration_file=nil
|
107
|
-
|
110
|
+
super builder
|
108
111
|
@builder.append ' report'
|
109
112
|
@builder.append " #{@builder.format configuration_file}" unless configuration_file.nil?
|
110
113
|
end
|
111
114
|
def output snapshot_path
|
112
115
|
@builder.append " /output=#{@builder.format snapshot_path}"
|
116
|
+
yield @builder if block_given?
|
113
117
|
self
|
114
118
|
end
|
115
119
|
def report_type report_type
|
116
120
|
@builder.append " /reportType=#{@builder.format report_type}"
|
121
|
+
yield @builder if block_given?
|
117
122
|
self
|
118
123
|
end
|
119
124
|
def source source
|
120
125
|
@builder.append " /source=#{@builder.format source}"
|
126
|
+
yield @builder if block_given?
|
121
127
|
self
|
122
128
|
end
|
123
|
-
def to_s
|
124
|
-
@builder.to_s
|
125
|
-
end
|
126
129
|
end
|
127
130
|
class List < CommandBase
|
128
131
|
def initialize builder, configuration_file=nil
|
129
|
-
|
132
|
+
super builder
|
130
133
|
@builder.append ' list'
|
131
134
|
@builder.append " #{@builder.format configuration_file}" unless configuration_file.nil?
|
132
135
|
end
|
133
136
|
def output snapshot_path
|
134
137
|
@builder.append " /output=#{@builder.format snapshot_path}"
|
138
|
+
yield @builder if block_given?
|
135
139
|
self
|
136
140
|
end
|
137
141
|
def source source
|
138
142
|
@builder.append " /source=#{@builder.format source}"
|
143
|
+
yield @builder if block_given?
|
139
144
|
self
|
140
145
|
end
|
141
|
-
def to_s
|
142
|
-
@builder.to_s
|
143
|
-
end
|
144
146
|
end
|
145
147
|
class Delete < CommandBase
|
146
148
|
def initialize builder, configuration_file=nil
|
147
|
-
|
149
|
+
super builder
|
148
150
|
@builder.append ' delete'
|
149
151
|
@builder.append " #{@builder.format configuration_file}" unless configuration_file.nil?
|
150
152
|
end
|
151
153
|
def source source
|
152
154
|
@builder.append " /source=#{@builder.format source}"
|
155
|
+
yield @builder if block_given?
|
153
156
|
self
|
154
157
|
end
|
155
|
-
def to_s
|
156
|
-
@builder.to_s
|
157
|
-
end
|
158
158
|
end
|
159
159
|
class Analyse < CommandBase
|
160
160
|
def initialize builder, configuration_file=nil
|
161
|
-
|
161
|
+
super builder
|
162
162
|
@builder.append ' analyse'
|
163
163
|
@builder.append " #{@builder.format configuration_file}" unless configuration_file.nil?
|
164
164
|
end
|
165
165
|
def analyse_target_arguments bool
|
166
166
|
@builder.append " /analyseTargetArguments=#{@builder.format bool}"
|
167
|
+
yield @builder if block_given?
|
167
168
|
self
|
168
169
|
end
|
169
170
|
def filters filters
|
170
171
|
@builder.append " /filters=#{@builder.format filters, ';'}"
|
172
|
+
yield @builder if block_given?
|
171
173
|
self
|
172
174
|
end
|
173
175
|
def inherit_console bool
|
174
176
|
@builder.append " /inheritConsole=#{@builder.format bool}"
|
177
|
+
yield @builder if block_given?
|
175
178
|
self
|
176
179
|
end
|
177
180
|
def log_file log_file
|
178
181
|
@builder.append " /logFile=#{@builder.format log_file}"
|
182
|
+
yield @builder if block_given?
|
179
183
|
self
|
180
184
|
end
|
181
185
|
def output snapshot_path
|
182
186
|
@builder.append " /output=#{@builder.format snapshot_path}"
|
187
|
+
yield @builder if block_given?
|
183
188
|
self
|
184
189
|
end
|
185
190
|
def report_type report_type
|
186
191
|
@builder.append " /reportType=#{@builder.format report_type}"
|
192
|
+
yield @builder if block_given?
|
187
193
|
self
|
188
194
|
end
|
189
195
|
def target_arguments target_arguments
|
190
196
|
@builder.append " /targetArguments=#{@builder.format target_arguments}"
|
197
|
+
yield @builder if block_given?
|
191
198
|
self
|
192
199
|
end
|
193
200
|
def target_executable target_executable
|
194
201
|
@builder.append " /targetExecutable=#{@builder.format target_executable}"
|
202
|
+
yield @builder if block_given?
|
195
203
|
self
|
196
204
|
end
|
197
205
|
def target_working_dir target_working_dir
|
198
206
|
@builder.append " /targetWorkingDir=#{@builder.format target_working_dir}"
|
207
|
+
yield @builder if block_given?
|
199
208
|
self
|
200
209
|
end
|
201
210
|
def temp_dir temp_dir
|
202
211
|
@builder.append " /tempDir=#{@builder.format temp_dir}"
|
212
|
+
yield @builder if block_given?
|
203
213
|
self
|
204
214
|
end
|
205
|
-
def to_s
|
206
|
-
@builder.to_s
|
207
|
-
end
|
208
215
|
end
|
209
216
|
class Zip < CommandBase
|
210
217
|
def initialize builder, configuration_file=nil
|
211
|
-
|
218
|
+
super builder
|
212
219
|
@builder.append ' zip'
|
213
220
|
@builder.append " #{@builder.format configuration_file}" unless configuration_file.nil?
|
214
221
|
end
|
215
222
|
def output snapshot_path
|
216
223
|
@builder.append " /output=#{@builder.format snapshot_path}"
|
224
|
+
yield @builder if block_given?
|
217
225
|
self
|
218
226
|
end
|
219
227
|
def source source
|
220
228
|
@builder.append " /source=#{@builder.format source}"
|
229
|
+
yield @builder if block_given?
|
221
230
|
self
|
222
231
|
end
|
223
|
-
def to_s
|
224
|
-
@builder.to_s
|
225
|
-
end
|
226
232
|
end
|
227
233
|
def dotcover
|
228
|
-
|
234
|
+
builder = CommandBuilder.new COMMAND_NAME
|
235
|
+
command = DotCover.new builder
|
236
|
+
yield builder if block_given?
|
237
|
+
command
|
229
238
|
end
|
230
239
|
end
|
231
240
|
end
|
232
241
|
def dotcover_11
|
233
|
-
DotCover::V11::
|
242
|
+
builder = CommandBuilder.new DotCover::V11::COMMAND_NAME
|
243
|
+
command = DotCover::V11::DotCover.new builder
|
244
|
+
yield builder if block_given?
|
245
|
+
command
|
234
246
|
end
|
235
247
|
end
|
@@ -4,43 +4,52 @@ require File.expand_path(File.dirname(__FILE__) + '/../command_builder')
|
|
4
4
|
module FluentCommandBuilder
|
5
5
|
module InstallUtil
|
6
6
|
module V11
|
7
|
+
COMMAND_NAME = 'installUtil'
|
7
8
|
class InstallUtil < CommandBase
|
8
9
|
def initialize builder, assembly_name
|
9
|
-
|
10
|
-
@builder.append "
|
10
|
+
super builder
|
11
|
+
@builder.append " #{@builder.format assembly_name}"
|
11
12
|
end
|
12
13
|
def help assembly_path=nil
|
13
14
|
@builder.append ' /help'
|
14
15
|
@builder.append " #{@builder.format assembly_path}" unless assembly_path.nil?
|
16
|
+
yield @builder if block_given?
|
15
17
|
self
|
16
18
|
end
|
17
19
|
def log_file file_name=nil
|
18
20
|
@builder.append ' /logFile'
|
19
21
|
@builder.append "=#{@builder.format file_name}" unless file_name.nil?
|
22
|
+
yield @builder if block_given?
|
20
23
|
self
|
21
24
|
end
|
22
25
|
def log_to_console bool
|
23
26
|
@builder.append " /logToConsole=#{@builder.format bool}"
|
27
|
+
yield @builder if block_given?
|
24
28
|
self
|
25
29
|
end
|
26
30
|
def show_call_stack
|
27
31
|
@builder.append ' /showCallStack'
|
32
|
+
yield @builder if block_given?
|
28
33
|
self
|
29
34
|
end
|
30
35
|
def uninstall
|
31
36
|
@builder.append ' /uninstall'
|
37
|
+
yield @builder if block_given?
|
32
38
|
self
|
33
39
|
end
|
34
|
-
def to_s
|
35
|
-
@builder.to_s
|
36
|
-
end
|
37
40
|
end
|
38
41
|
def installutil assembly_name
|
39
|
-
|
42
|
+
builder = CommandBuilder.new COMMAND_NAME
|
43
|
+
command = InstallUtil.new builder, assembly_name
|
44
|
+
yield builder if block_given?
|
45
|
+
command
|
40
46
|
end
|
41
47
|
end
|
42
48
|
end
|
43
49
|
def installutil_11 assembly_name
|
44
|
-
|
50
|
+
builder = CommandBuilder.new InstallUtil::V11::COMMAND_NAME
|
51
|
+
command = InstallUtil::V11::InstallUtil.new builder, assembly_name
|
52
|
+
yield builder if block_given?
|
53
|
+
command
|
45
54
|
end
|
46
55
|
end
|