fluent_command_builder 0.1.2 → 0.1.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.
- data/lib/fluent_command_builder/command_builder.rb +47 -38
- data/lib/fluent_command_builder/command_builders/cucumber_11.rb +1 -1
- data/lib/fluent_command_builder/command_builders/installutil_11.rb +62 -0
- data/lib/fluent_command_builder/command_builders/installutil_20.rb +67 -0
- data/lib/fluent_command_builder/command_builders/installutil_35.rb +67 -0
- data/lib/fluent_command_builder/command_builders/installutil_40.rb +22 -7
- data/lib/fluent_command_builder/command_builders/msbuild_20.rb +2 -2
- data/lib/fluent_command_builder/command_builders/msbuild_30.rb +2 -2
- data/lib/fluent_command_builder/command_builders/msbuild_35.rb +4 -4
- data/lib/fluent_command_builder/command_builders/msbuild_40.rb +13 -13
- data/lib/fluent_command_builder/command_builders/msdeploy_40.rb +4 -4
- data/lib/fluent_command_builder/command_builders/mstest_2005.rb +112 -0
- data/lib/fluent_command_builder/command_builders/mstest_2008.rb +117 -0
- data/lib/fluent_command_builder/command_builders/mstest_2010.rb +132 -0
- data/lib/fluent_command_builder/command_builders/simian_23.rb +147 -0
- data/lib/fluent_command_builder.rb +7 -0
- metadata +9 -2
@@ -1,39 +1,48 @@
|
|
1
|
-
module FluentCommandBuilder
|
2
|
-
class CommandBuilder
|
3
|
-
|
4
|
-
def initialize command
|
5
|
-
@command = command.to_s
|
6
|
-
end
|
7
|
-
|
8
|
-
def append value
|
9
|
-
@command << value + ' '
|
10
|
-
end
|
11
|
-
|
12
|
-
def
|
13
|
-
yield
|
14
|
-
end
|
15
|
-
|
16
|
-
def to_s
|
17
|
-
@command
|
18
|
-
end
|
19
|
-
|
20
|
-
private
|
21
|
-
|
22
|
-
def format_value value, delimiter=nil, key_value_separator=nil
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
1
|
+
module FluentCommandBuilder
|
2
|
+
class CommandBuilder
|
3
|
+
|
4
|
+
def initialize command=nil
|
5
|
+
@command = command.to_s
|
6
|
+
end
|
7
|
+
|
8
|
+
def append value
|
9
|
+
@command << value + ' '
|
10
|
+
end
|
11
|
+
|
12
|
+
def append_format value, delimiter=nil, key_value_separator=nil
|
13
|
+
append yield format_value(value, delimiter, key_value_separator)
|
14
|
+
end
|
15
|
+
|
16
|
+
def to_s
|
17
|
+
@command.strip
|
18
|
+
end
|
19
|
+
|
20
|
+
private
|
21
|
+
|
22
|
+
def format_value value, delimiter=nil, key_value_separator=nil
|
23
|
+
value_as_array = case
|
24
|
+
when value.kind_of?(Hash)
|
25
|
+
hash_to_array value, key_value_separator
|
26
|
+
when value.kind_of?(Array)
|
27
|
+
value
|
28
|
+
else
|
29
|
+
[value.to_s]
|
30
|
+
end
|
31
|
+
value_as_string = array_to_s value_as_array, delimiter
|
32
|
+
quote_if_includes_space value_as_string
|
33
|
+
end
|
34
|
+
|
35
|
+
def hash_to_array hash, key_value_separator
|
36
|
+
hash.map { |k, v| k.to_s + key_value_separator + v.to_s }
|
37
|
+
end
|
38
|
+
|
39
|
+
def array_to_s array, delimiter
|
40
|
+
array.join delimiter
|
41
|
+
end
|
42
|
+
|
43
|
+
def quote_if_includes_space value
|
44
|
+
value.to_s.include?(' ') ? %Q["#{value}"] : value
|
45
|
+
end
|
46
|
+
|
47
|
+
end
|
39
48
|
end
|
@@ -0,0 +1,62 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/../command_builder')
|
2
|
+
|
3
|
+
module FluentCommandBuilder
|
4
|
+
module InstallUtil
|
5
|
+
module V11
|
6
|
+
class InstallUtil
|
7
|
+
def initialize command=nil
|
8
|
+
@builder = CommandBuilder.new command
|
9
|
+
@builder.append 'installUtil'
|
10
|
+
self
|
11
|
+
end
|
12
|
+
|
13
|
+
def assembly_file_name assembly_file_name
|
14
|
+
@builder.append "#{assembly_file_name}"
|
15
|
+
self
|
16
|
+
end
|
17
|
+
|
18
|
+
def help
|
19
|
+
@builder.append "/help"
|
20
|
+
self
|
21
|
+
end
|
22
|
+
|
23
|
+
def log_file file_name
|
24
|
+
@builder.append "/logFile=#{file_name}"
|
25
|
+
self
|
26
|
+
end
|
27
|
+
|
28
|
+
def log_to_console bool
|
29
|
+
@builder.append "/logToConsole=#{bool}"
|
30
|
+
self
|
31
|
+
end
|
32
|
+
|
33
|
+
def show_call_stack
|
34
|
+
@builder.append "/showCallStack"
|
35
|
+
self
|
36
|
+
end
|
37
|
+
|
38
|
+
def uninstall
|
39
|
+
@builder.append "/uninstall"
|
40
|
+
self
|
41
|
+
end
|
42
|
+
|
43
|
+
def to_s
|
44
|
+
@builder.to_s
|
45
|
+
end
|
46
|
+
|
47
|
+
end
|
48
|
+
|
49
|
+
def installutil
|
50
|
+
InstallUtil.new
|
51
|
+
end
|
52
|
+
|
53
|
+
end
|
54
|
+
|
55
|
+
end
|
56
|
+
|
57
|
+
def installutil11
|
58
|
+
InstallUtil::V11::InstallUtil.new
|
59
|
+
end
|
60
|
+
|
61
|
+
end
|
62
|
+
|
@@ -0,0 +1,67 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/../command_builder')
|
2
|
+
|
3
|
+
module FluentCommandBuilder
|
4
|
+
module InstallUtil
|
5
|
+
module V20
|
6
|
+
class InstallUtil
|
7
|
+
def initialize command=nil
|
8
|
+
@builder = CommandBuilder.new command
|
9
|
+
@builder.append 'installUtil'
|
10
|
+
self
|
11
|
+
end
|
12
|
+
|
13
|
+
def assembly_file_name assembly_file_name
|
14
|
+
@builder.append "#{assembly_file_name}"
|
15
|
+
self
|
16
|
+
end
|
17
|
+
|
18
|
+
def help
|
19
|
+
@builder.append "/help"
|
20
|
+
self
|
21
|
+
end
|
22
|
+
|
23
|
+
def log_file file_name
|
24
|
+
@builder.append "/logFile=#{file_name}"
|
25
|
+
self
|
26
|
+
end
|
27
|
+
|
28
|
+
def assembly_name assembly_strong_name
|
29
|
+
@builder.append "/assemblyName=#{assembly_strong_name}"
|
30
|
+
self
|
31
|
+
end
|
32
|
+
|
33
|
+
def log_to_console bool
|
34
|
+
@builder.append "/logToConsole=#{bool}"
|
35
|
+
self
|
36
|
+
end
|
37
|
+
|
38
|
+
def show_call_stack
|
39
|
+
@builder.append "/showCallStack"
|
40
|
+
self
|
41
|
+
end
|
42
|
+
|
43
|
+
def uninstall
|
44
|
+
@builder.append "/uninstall"
|
45
|
+
self
|
46
|
+
end
|
47
|
+
|
48
|
+
def to_s
|
49
|
+
@builder.to_s
|
50
|
+
end
|
51
|
+
|
52
|
+
end
|
53
|
+
|
54
|
+
def installutil
|
55
|
+
InstallUtil.new
|
56
|
+
end
|
57
|
+
|
58
|
+
end
|
59
|
+
|
60
|
+
end
|
61
|
+
|
62
|
+
def installutil20
|
63
|
+
InstallUtil::V20::InstallUtil.new
|
64
|
+
end
|
65
|
+
|
66
|
+
end
|
67
|
+
|
@@ -0,0 +1,67 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/../command_builder')
|
2
|
+
|
3
|
+
module FluentCommandBuilder
|
4
|
+
module InstallUtil
|
5
|
+
module V35
|
6
|
+
class InstallUtil
|
7
|
+
def initialize command=nil
|
8
|
+
@builder = CommandBuilder.new command
|
9
|
+
@builder.append 'installUtil'
|
10
|
+
self
|
11
|
+
end
|
12
|
+
|
13
|
+
def assembly_file_name assembly_file_name
|
14
|
+
@builder.append "#{assembly_file_name}"
|
15
|
+
self
|
16
|
+
end
|
17
|
+
|
18
|
+
def help
|
19
|
+
@builder.append "/help"
|
20
|
+
self
|
21
|
+
end
|
22
|
+
|
23
|
+
def log_file file_name
|
24
|
+
@builder.append "/logFile=#{file_name}"
|
25
|
+
self
|
26
|
+
end
|
27
|
+
|
28
|
+
def assembly_name assembly_strong_name
|
29
|
+
@builder.append "/assemblyName=#{assembly_strong_name}"
|
30
|
+
self
|
31
|
+
end
|
32
|
+
|
33
|
+
def log_to_console bool
|
34
|
+
@builder.append "/logToConsole=#{bool}"
|
35
|
+
self
|
36
|
+
end
|
37
|
+
|
38
|
+
def show_call_stack
|
39
|
+
@builder.append "/showCallStack"
|
40
|
+
self
|
41
|
+
end
|
42
|
+
|
43
|
+
def uninstall
|
44
|
+
@builder.append "/uninstall"
|
45
|
+
self
|
46
|
+
end
|
47
|
+
|
48
|
+
def to_s
|
49
|
+
@builder.to_s
|
50
|
+
end
|
51
|
+
|
52
|
+
end
|
53
|
+
|
54
|
+
def installutil
|
55
|
+
InstallUtil.new
|
56
|
+
end
|
57
|
+
|
58
|
+
end
|
59
|
+
|
60
|
+
end
|
61
|
+
|
62
|
+
def installutil35
|
63
|
+
InstallUtil::V35::InstallUtil.new
|
64
|
+
end
|
65
|
+
|
66
|
+
end
|
67
|
+
|
@@ -10,28 +10,43 @@ module FluentCommandBuilder
|
|
10
10
|
self
|
11
11
|
end
|
12
12
|
|
13
|
-
def
|
14
|
-
@builder.append "
|
13
|
+
def assembly_file_name assembly_file_name
|
14
|
+
@builder.append "#{assembly_file_name}"
|
15
|
+
self
|
16
|
+
end
|
17
|
+
|
18
|
+
def help
|
19
|
+
@builder.append "/help"
|
15
20
|
self
|
16
21
|
end
|
17
22
|
|
18
|
-
def assembly_name
|
19
|
-
@builder.append "/
|
23
|
+
def assembly_name assembly_strong_name
|
24
|
+
@builder.append "/assemblyName=#{assembly_strong_name}"
|
25
|
+
self
|
26
|
+
end
|
27
|
+
|
28
|
+
def install_state_dir directory_name
|
29
|
+
@builder.append "/installStateDir=#{directory_name}"
|
30
|
+
self
|
31
|
+
end
|
32
|
+
|
33
|
+
def log_file file_name
|
34
|
+
@builder.append "/logFile=#{file_name}"
|
20
35
|
self
|
21
36
|
end
|
22
37
|
|
23
38
|
def log_to_console bool
|
24
|
-
@builder.append "/
|
39
|
+
@builder.append "/logToConsole=#{bool}"
|
25
40
|
self
|
26
41
|
end
|
27
42
|
|
28
43
|
def show_call_stack
|
29
|
-
@builder.append "/
|
44
|
+
@builder.append "/showCallStack"
|
30
45
|
self
|
31
46
|
end
|
32
47
|
|
33
48
|
def uninstall
|
34
|
-
@builder.append "/
|
49
|
+
@builder.append "/uninstall"
|
35
50
|
self
|
36
51
|
end
|
37
52
|
|
@@ -41,12 +41,12 @@ module FluentCommandBuilder
|
|
41
41
|
end
|
42
42
|
|
43
43
|
def target target
|
44
|
-
@builder.
|
44
|
+
@builder.append_format(target, ';') { |v| "/target:#{v}" }
|
45
45
|
self
|
46
46
|
end
|
47
47
|
|
48
48
|
def property property
|
49
|
-
@builder.
|
49
|
+
@builder.append_format(property, ';', '=') { |v| "/property:#{v}" }
|
50
50
|
self
|
51
51
|
end
|
52
52
|
|
@@ -41,12 +41,12 @@ module FluentCommandBuilder
|
|
41
41
|
end
|
42
42
|
|
43
43
|
def target target
|
44
|
-
@builder.
|
44
|
+
@builder.append_format(target, ';') { |v| "/target:#{v}" }
|
45
45
|
self
|
46
46
|
end
|
47
47
|
|
48
48
|
def property property
|
49
|
-
@builder.
|
49
|
+
@builder.append_format(property, ';', '=') { |v| "/property:#{v}" }
|
50
50
|
self
|
51
51
|
end
|
52
52
|
|
@@ -41,12 +41,12 @@ module FluentCommandBuilder
|
|
41
41
|
end
|
42
42
|
|
43
43
|
def target target
|
44
|
-
@builder.
|
44
|
+
@builder.append_format(target, ';') { |v| "/target:#{v}" }
|
45
45
|
self
|
46
46
|
end
|
47
47
|
|
48
48
|
def property property
|
49
|
-
@builder.
|
49
|
+
@builder.append_format(property, ';', '=') { |v| "/property:#{v}" }
|
50
50
|
self
|
51
51
|
end
|
52
52
|
|
@@ -86,7 +86,7 @@ module FluentCommandBuilder
|
|
86
86
|
end
|
87
87
|
|
88
88
|
def ignore_project_extensions extensions
|
89
|
-
@builder.
|
89
|
+
@builder.append_format(extensions, ';') { |v| "/ignoreProjectExtensions:#{v}" }
|
90
90
|
self
|
91
91
|
end
|
92
92
|
|
@@ -101,7 +101,7 @@ module FluentCommandBuilder
|
|
101
101
|
end
|
102
102
|
|
103
103
|
def file_logger_parameters parameters
|
104
|
-
@builder.
|
104
|
+
@builder.append_format(parameters, ';', '=') { |v| "/fileLoggerParameters:#{v}" }
|
105
105
|
self
|
106
106
|
end
|
107
107
|
|
@@ -41,12 +41,12 @@ module FluentCommandBuilder
|
|
41
41
|
end
|
42
42
|
|
43
43
|
def target target
|
44
|
-
@builder.
|
44
|
+
@builder.append_format(target, ';') { |v| "/target:#{v}" }
|
45
45
|
self
|
46
46
|
end
|
47
47
|
|
48
48
|
def property property
|
49
|
-
@builder.
|
49
|
+
@builder.append_format(property, ';', '=') { |v| "/property:#{v}" }
|
50
50
|
self
|
51
51
|
end
|
52
52
|
|
@@ -86,7 +86,7 @@ module FluentCommandBuilder
|
|
86
86
|
end
|
87
87
|
|
88
88
|
def ignore_project_extensions extensions
|
89
|
-
@builder.
|
89
|
+
@builder.append_format(extensions, ';') { |v| "/ignoreProjectExtensions:#{v}" }
|
90
90
|
self
|
91
91
|
end
|
92
92
|
|
@@ -146,52 +146,52 @@ module FluentCommandBuilder
|
|
146
146
|
end
|
147
147
|
|
148
148
|
def file_logger_parameters parameters
|
149
|
-
@builder.
|
149
|
+
@builder.append_format(parameters, ';', '=') { |v| "/fileLoggerParameters:#{v}" }
|
150
150
|
self
|
151
151
|
end
|
152
152
|
|
153
153
|
def file_logger_parameters1 parameters
|
154
|
-
@builder.
|
154
|
+
@builder.append_format(parameters, ';', '=') { |v| "/fileLoggerParameters1:#{v}" }
|
155
155
|
self
|
156
156
|
end
|
157
157
|
|
158
158
|
def file_logger_parameters2 parameters
|
159
|
-
@builder.
|
159
|
+
@builder.append_format(parameters, ';', '=') { |v| "/fileLoggerParameters2:#{v}" }
|
160
160
|
self
|
161
161
|
end
|
162
162
|
|
163
163
|
def file_logger_parameters3 parameters
|
164
|
-
@builder.
|
164
|
+
@builder.append_format(parameters, ';', '=') { |v| "/fileLoggerParameters3:#{v}" }
|
165
165
|
self
|
166
166
|
end
|
167
167
|
|
168
168
|
def file_logger_parameters4 parameters
|
169
|
-
@builder.
|
169
|
+
@builder.append_format(parameters, ';', '=') { |v| "/fileLoggerParameters4:#{v}" }
|
170
170
|
self
|
171
171
|
end
|
172
172
|
|
173
173
|
def file_logger_parameters5 parameters
|
174
|
-
@builder.
|
174
|
+
@builder.append_format(parameters, ';', '=') { |v| "/fileLoggerParameters5:#{v}" }
|
175
175
|
self
|
176
176
|
end
|
177
177
|
|
178
178
|
def file_logger_parameters6 parameters
|
179
|
-
@builder.
|
179
|
+
@builder.append_format(parameters, ';', '=') { |v| "/fileLoggerParameters6:#{v}" }
|
180
180
|
self
|
181
181
|
end
|
182
182
|
|
183
183
|
def file_logger_parameters7 parameters
|
184
|
-
@builder.
|
184
|
+
@builder.append_format(parameters, ';', '=') { |v| "/fileLoggerParameters7:#{v}" }
|
185
185
|
self
|
186
186
|
end
|
187
187
|
|
188
188
|
def file_logger_parameters8 parameters
|
189
|
-
@builder.
|
189
|
+
@builder.append_format(parameters, ';', '=') { |v| "/fileLoggerParameters8:#{v}" }
|
190
190
|
self
|
191
191
|
end
|
192
192
|
|
193
193
|
def file_logger_parameters9 parameters
|
194
|
-
@builder.
|
194
|
+
@builder.append_format(parameters, ';', '=') { |v| "/fileLoggerParameters9:#{v}" }
|
195
195
|
self
|
196
196
|
end
|
197
197
|
|
@@ -21,7 +21,7 @@ module FluentCommandBuilder
|
|
21
21
|
end
|
22
22
|
|
23
23
|
def declare_param param
|
24
|
-
@builder.
|
24
|
+
@builder.append_format(param, ',', '=') { |v| "-declareParam:#{v}" }
|
25
25
|
self
|
26
26
|
end
|
27
27
|
|
@@ -41,7 +41,7 @@ module FluentCommandBuilder
|
|
41
41
|
end
|
42
42
|
|
43
43
|
def disable_rule rule
|
44
|
-
@builder.
|
44
|
+
@builder.append_format(rule, ',') { |v| "-disableRule:#{v}" }
|
45
45
|
self
|
46
46
|
end
|
47
47
|
|
@@ -56,7 +56,7 @@ module FluentCommandBuilder
|
|
56
56
|
end
|
57
57
|
|
58
58
|
def enable_rule rule
|
59
|
-
@builder.
|
59
|
+
@builder.append_format(rule, ',') { |v| "-enableRule:#{v}" }
|
60
60
|
self
|
61
61
|
end
|
62
62
|
|
@@ -96,7 +96,7 @@ module FluentCommandBuilder
|
|
96
96
|
end
|
97
97
|
|
98
98
|
def set_param param
|
99
|
-
@builder.
|
99
|
+
@builder.append_format(param, ',', '=') { |v| "-setParam:#{v}" }
|
100
100
|
self
|
101
101
|
end
|
102
102
|
|
@@ -0,0 +1,112 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/../command_builder')
|
2
|
+
|
3
|
+
module FluentCommandBuilder
|
4
|
+
module MSTest
|
5
|
+
module V2005
|
6
|
+
class MSTest
|
7
|
+
def initialize command=nil
|
8
|
+
@builder = CommandBuilder.new command
|
9
|
+
@builder.append 'MSTest'
|
10
|
+
self
|
11
|
+
end
|
12
|
+
|
13
|
+
def test_container file_name
|
14
|
+
@builder.append "/testContainer:#{file_name}"
|
15
|
+
self
|
16
|
+
end
|
17
|
+
|
18
|
+
def test_metadata file_name
|
19
|
+
@builder.append "/testMetadata:#{file_name}"
|
20
|
+
self
|
21
|
+
end
|
22
|
+
|
23
|
+
def test_list list_list_path
|
24
|
+
@builder.append "/testList:#{list_list_path}"
|
25
|
+
self
|
26
|
+
end
|
27
|
+
|
28
|
+
def test test_name
|
29
|
+
@builder.append "/test:#{test_name}"
|
30
|
+
self
|
31
|
+
end
|
32
|
+
|
33
|
+
def run_config file_name
|
34
|
+
@builder.append "/runConfig:#{file_name}"
|
35
|
+
self
|
36
|
+
end
|
37
|
+
|
38
|
+
def results_file file_name
|
39
|
+
@builder.append "/resultsFile:#{file_name}"
|
40
|
+
self
|
41
|
+
end
|
42
|
+
|
43
|
+
def unique
|
44
|
+
@builder.append "/unique"
|
45
|
+
self
|
46
|
+
end
|
47
|
+
|
48
|
+
def detail property_id
|
49
|
+
@builder.append "/detail:#{property_id}"
|
50
|
+
self
|
51
|
+
end
|
52
|
+
|
53
|
+
def help
|
54
|
+
@builder.append "/help"
|
55
|
+
self
|
56
|
+
end
|
57
|
+
|
58
|
+
def no_logo
|
59
|
+
@builder.append "/noLogo"
|
60
|
+
self
|
61
|
+
end
|
62
|
+
|
63
|
+
def publish server_name
|
64
|
+
@builder.append "/publish:#{server_name}"
|
65
|
+
self
|
66
|
+
end
|
67
|
+
|
68
|
+
def publish_results_file file_name
|
69
|
+
@builder.append "/publishResultsFile:#{file_name}"
|
70
|
+
self
|
71
|
+
end
|
72
|
+
|
73
|
+
def publish_build build_id
|
74
|
+
@builder.append "/publishBuild:#{build_id}"
|
75
|
+
self
|
76
|
+
end
|
77
|
+
|
78
|
+
def team_project team_project_name
|
79
|
+
@builder.append "/teamProject:#{team_project_name}"
|
80
|
+
self
|
81
|
+
end
|
82
|
+
|
83
|
+
def platform platform
|
84
|
+
@builder.append "/platform:#{platform}"
|
85
|
+
self
|
86
|
+
end
|
87
|
+
|
88
|
+
def flavor flavor
|
89
|
+
@builder.append "/flavor:#{flavor}"
|
90
|
+
self
|
91
|
+
end
|
92
|
+
|
93
|
+
def to_s
|
94
|
+
@builder.to_s
|
95
|
+
end
|
96
|
+
|
97
|
+
end
|
98
|
+
|
99
|
+
def mstest
|
100
|
+
MSTest.new
|
101
|
+
end
|
102
|
+
|
103
|
+
end
|
104
|
+
|
105
|
+
end
|
106
|
+
|
107
|
+
def mstest2005
|
108
|
+
MSTest::V2005::MSTest.new
|
109
|
+
end
|
110
|
+
|
111
|
+
end
|
112
|
+
|
@@ -0,0 +1,117 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/../command_builder')
|
2
|
+
|
3
|
+
module FluentCommandBuilder
|
4
|
+
module MSTest
|
5
|
+
module V2008
|
6
|
+
class MSTest
|
7
|
+
def initialize command=nil
|
8
|
+
@builder = CommandBuilder.new command
|
9
|
+
@builder.append 'MSTest'
|
10
|
+
self
|
11
|
+
end
|
12
|
+
|
13
|
+
def test_container file_name
|
14
|
+
@builder.append "/testContainer:#{file_name}"
|
15
|
+
self
|
16
|
+
end
|
17
|
+
|
18
|
+
def test_metadata file_name
|
19
|
+
@builder.append "/testMetadata:#{file_name}"
|
20
|
+
self
|
21
|
+
end
|
22
|
+
|
23
|
+
def test_list list_list_path
|
24
|
+
@builder.append "/testList:#{list_list_path}"
|
25
|
+
self
|
26
|
+
end
|
27
|
+
|
28
|
+
def test test_name
|
29
|
+
@builder.append "/test:#{test_name}"
|
30
|
+
self
|
31
|
+
end
|
32
|
+
|
33
|
+
def no_isolation
|
34
|
+
@builder.append "/noIsolation"
|
35
|
+
self
|
36
|
+
end
|
37
|
+
|
38
|
+
def run_config file_name
|
39
|
+
@builder.append "/runConfig:#{file_name}"
|
40
|
+
self
|
41
|
+
end
|
42
|
+
|
43
|
+
def results_file file_name
|
44
|
+
@builder.append "/resultsFile:#{file_name}"
|
45
|
+
self
|
46
|
+
end
|
47
|
+
|
48
|
+
def unique
|
49
|
+
@builder.append "/unique"
|
50
|
+
self
|
51
|
+
end
|
52
|
+
|
53
|
+
def detail property_id
|
54
|
+
@builder.append "/detail:#{property_id}"
|
55
|
+
self
|
56
|
+
end
|
57
|
+
|
58
|
+
def help
|
59
|
+
@builder.append "/help"
|
60
|
+
self
|
61
|
+
end
|
62
|
+
|
63
|
+
def no_logo
|
64
|
+
@builder.append "/noLogo"
|
65
|
+
self
|
66
|
+
end
|
67
|
+
|
68
|
+
def publish server_name
|
69
|
+
@builder.append "/publish:#{server_name}"
|
70
|
+
self
|
71
|
+
end
|
72
|
+
|
73
|
+
def publish_results_file file_name
|
74
|
+
@builder.append "/publishResultsFile:#{file_name}"
|
75
|
+
self
|
76
|
+
end
|
77
|
+
|
78
|
+
def publish_build build_id
|
79
|
+
@builder.append "/publishBuild:#{build_id}"
|
80
|
+
self
|
81
|
+
end
|
82
|
+
|
83
|
+
def team_project team_project_name
|
84
|
+
@builder.append "/teamProject:#{team_project_name}"
|
85
|
+
self
|
86
|
+
end
|
87
|
+
|
88
|
+
def platform platform
|
89
|
+
@builder.append "/platform:#{platform}"
|
90
|
+
self
|
91
|
+
end
|
92
|
+
|
93
|
+
def flavor flavor
|
94
|
+
@builder.append "/flavor:#{flavor}"
|
95
|
+
self
|
96
|
+
end
|
97
|
+
|
98
|
+
def to_s
|
99
|
+
@builder.to_s
|
100
|
+
end
|
101
|
+
|
102
|
+
end
|
103
|
+
|
104
|
+
def mstest
|
105
|
+
MSTest.new
|
106
|
+
end
|
107
|
+
|
108
|
+
end
|
109
|
+
|
110
|
+
end
|
111
|
+
|
112
|
+
def mstest2008
|
113
|
+
MSTest::V2008::MSTest.new
|
114
|
+
end
|
115
|
+
|
116
|
+
end
|
117
|
+
|
@@ -0,0 +1,132 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/../command_builder')
|
2
|
+
|
3
|
+
module FluentCommandBuilder
|
4
|
+
module MSTest
|
5
|
+
module V2010
|
6
|
+
class MSTest
|
7
|
+
def initialize command=nil
|
8
|
+
@builder = CommandBuilder.new command
|
9
|
+
@builder.append 'MSTest'
|
10
|
+
self
|
11
|
+
end
|
12
|
+
|
13
|
+
def test_container file_name
|
14
|
+
@builder.append "/testContainer:#{file_name}"
|
15
|
+
self
|
16
|
+
end
|
17
|
+
|
18
|
+
def test_metadata file_name
|
19
|
+
@builder.append "/testMetadata:#{file_name}"
|
20
|
+
self
|
21
|
+
end
|
22
|
+
|
23
|
+
def test_list list_list_path
|
24
|
+
@builder.append "/testList:#{list_list_path}"
|
25
|
+
self
|
26
|
+
end
|
27
|
+
|
28
|
+
def category test_category_filter
|
29
|
+
@builder.append "/category:#{test_category_filter}"
|
30
|
+
self
|
31
|
+
end
|
32
|
+
|
33
|
+
def test test_name
|
34
|
+
@builder.append "/test:#{test_name}"
|
35
|
+
self
|
36
|
+
end
|
37
|
+
|
38
|
+
def no_isolation
|
39
|
+
@builder.append "/noIsolation"
|
40
|
+
self
|
41
|
+
end
|
42
|
+
|
43
|
+
def test_settings file_name
|
44
|
+
@builder.append "/testSettings:#{file_name}"
|
45
|
+
self
|
46
|
+
end
|
47
|
+
|
48
|
+
def run_config file_name
|
49
|
+
@builder.append "/runConfig:#{file_name}"
|
50
|
+
self
|
51
|
+
end
|
52
|
+
|
53
|
+
def results_file file_name
|
54
|
+
@builder.append "/resultsFile:#{file_name}"
|
55
|
+
self
|
56
|
+
end
|
57
|
+
|
58
|
+
def unique
|
59
|
+
@builder.append "/unique"
|
60
|
+
self
|
61
|
+
end
|
62
|
+
|
63
|
+
def detail property_id
|
64
|
+
@builder.append "/detail:#{property_id}"
|
65
|
+
self
|
66
|
+
end
|
67
|
+
|
68
|
+
def help
|
69
|
+
@builder.append "/help"
|
70
|
+
self
|
71
|
+
end
|
72
|
+
|
73
|
+
def no_logo
|
74
|
+
@builder.append "/noLogo"
|
75
|
+
self
|
76
|
+
end
|
77
|
+
|
78
|
+
def use_std_err
|
79
|
+
@builder.append "/useStdErr"
|
80
|
+
self
|
81
|
+
end
|
82
|
+
|
83
|
+
def publish server_name
|
84
|
+
@builder.append "/publish:#{server_name}"
|
85
|
+
self
|
86
|
+
end
|
87
|
+
|
88
|
+
def publish_results_file file_name
|
89
|
+
@builder.append "/publishResultsFile:#{file_name}"
|
90
|
+
self
|
91
|
+
end
|
92
|
+
|
93
|
+
def publish_build build_id
|
94
|
+
@builder.append "/publishBuild:#{build_id}"
|
95
|
+
self
|
96
|
+
end
|
97
|
+
|
98
|
+
def team_project team_project_name
|
99
|
+
@builder.append "/teamProject:#{team_project_name}"
|
100
|
+
self
|
101
|
+
end
|
102
|
+
|
103
|
+
def platform platform
|
104
|
+
@builder.append "/platform:#{platform}"
|
105
|
+
self
|
106
|
+
end
|
107
|
+
|
108
|
+
def flavor flavor
|
109
|
+
@builder.append "/flavor:#{flavor}"
|
110
|
+
self
|
111
|
+
end
|
112
|
+
|
113
|
+
def to_s
|
114
|
+
@builder.to_s
|
115
|
+
end
|
116
|
+
|
117
|
+
end
|
118
|
+
|
119
|
+
def mstest
|
120
|
+
MSTest.new
|
121
|
+
end
|
122
|
+
|
123
|
+
end
|
124
|
+
|
125
|
+
end
|
126
|
+
|
127
|
+
def mstest2010
|
128
|
+
MSTest::V2010::MSTest.new
|
129
|
+
end
|
130
|
+
|
131
|
+
end
|
132
|
+
|
@@ -0,0 +1,147 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/../command_builder')
|
2
|
+
|
3
|
+
module FluentCommandBuilder
|
4
|
+
module Simian
|
5
|
+
module V23
|
6
|
+
class Simian
|
7
|
+
def initialize command=nil
|
8
|
+
@builder = CommandBuilder.new command
|
9
|
+
@builder.append 'simian'
|
10
|
+
self
|
11
|
+
end
|
12
|
+
|
13
|
+
def formatter formatter
|
14
|
+
@builder.append "-formatter=#{formatter}"
|
15
|
+
self
|
16
|
+
end
|
17
|
+
|
18
|
+
def threshold threshold
|
19
|
+
@builder.append "-threshold=#{threshold}"
|
20
|
+
self
|
21
|
+
end
|
22
|
+
|
23
|
+
def language language
|
24
|
+
@builder.append "-language=#{language}"
|
25
|
+
self
|
26
|
+
end
|
27
|
+
|
28
|
+
def default_language language
|
29
|
+
@builder.append "-defaultLanguage=#{language}"
|
30
|
+
self
|
31
|
+
end
|
32
|
+
|
33
|
+
def fail_on_duplication bool
|
34
|
+
@builder.append "-failOnDuplication=#{bool}"
|
35
|
+
self
|
36
|
+
end
|
37
|
+
|
38
|
+
def report_duplicate_text bool
|
39
|
+
@builder.append "-reportDuplicateText=#{bool}"
|
40
|
+
self
|
41
|
+
end
|
42
|
+
|
43
|
+
def ignore_blocks markers
|
44
|
+
@builder.append "-ignoreBlocks=#{markers}"
|
45
|
+
self
|
46
|
+
end
|
47
|
+
|
48
|
+
def ignore_curly_braces bool
|
49
|
+
@builder.append "-ignoreCurlyBraces=#{bool}"
|
50
|
+
self
|
51
|
+
end
|
52
|
+
|
53
|
+
def ignore_identifiers bool
|
54
|
+
@builder.append "-ignoreIdentifiers=#{bool}"
|
55
|
+
self
|
56
|
+
end
|
57
|
+
|
58
|
+
def ignore_identifier_case bool
|
59
|
+
@builder.append "-ignoreIdentifierCase=#{bool}"
|
60
|
+
self
|
61
|
+
end
|
62
|
+
|
63
|
+
def ignore_regions bool
|
64
|
+
@builder.append "-ignoreRegions=#{bool}"
|
65
|
+
self
|
66
|
+
end
|
67
|
+
|
68
|
+
def ignore_strings bool
|
69
|
+
@builder.append "-ignoreStrings=#{bool}"
|
70
|
+
self
|
71
|
+
end
|
72
|
+
|
73
|
+
def ignore_string_case bool
|
74
|
+
@builder.append "-ignoreStringCase=#{bool}"
|
75
|
+
self
|
76
|
+
end
|
77
|
+
|
78
|
+
def ignore_numbers bool
|
79
|
+
@builder.append "-ignoreNumbers=#{bool}"
|
80
|
+
self
|
81
|
+
end
|
82
|
+
|
83
|
+
def ignore_characters bool
|
84
|
+
@builder.append "-ignoreCharacters=#{bool}"
|
85
|
+
self
|
86
|
+
end
|
87
|
+
|
88
|
+
def ignore_character_case bool
|
89
|
+
@builder.append "-ignoreCharacterCase=#{bool}"
|
90
|
+
self
|
91
|
+
end
|
92
|
+
|
93
|
+
def ignore_literals bool
|
94
|
+
@builder.append "-ignoreLiterals=#{bool}"
|
95
|
+
self
|
96
|
+
end
|
97
|
+
|
98
|
+
def ignore_subtype_names bool
|
99
|
+
@builder.append "-ignoreSubtypeNames=#{bool}"
|
100
|
+
self
|
101
|
+
end
|
102
|
+
|
103
|
+
def ignore_modifiers bool
|
104
|
+
@builder.append "-ignoreModifiers=#{bool}"
|
105
|
+
self
|
106
|
+
end
|
107
|
+
|
108
|
+
def ignore_variable_names bool
|
109
|
+
@builder.append "-ignoreVariableNames=#{bool}"
|
110
|
+
self
|
111
|
+
end
|
112
|
+
|
113
|
+
def balance_parentheses bool
|
114
|
+
@builder.append "-balanceParentheses=#{bool}"
|
115
|
+
self
|
116
|
+
end
|
117
|
+
|
118
|
+
def balance_curly_braces bool
|
119
|
+
@builder.append "-balanceCurlyBraces=#{bool}"
|
120
|
+
self
|
121
|
+
end
|
122
|
+
|
123
|
+
def balance_square_brackets bool
|
124
|
+
@builder.append "-balanceSquareBrackets=#{bool}"
|
125
|
+
self
|
126
|
+
end
|
127
|
+
|
128
|
+
def to_s
|
129
|
+
@builder.to_s
|
130
|
+
end
|
131
|
+
|
132
|
+
end
|
133
|
+
|
134
|
+
def simian
|
135
|
+
Simian.new
|
136
|
+
end
|
137
|
+
|
138
|
+
end
|
139
|
+
|
140
|
+
end
|
141
|
+
|
142
|
+
def simian23
|
143
|
+
Simian::V23::Simian.new
|
144
|
+
end
|
145
|
+
|
146
|
+
end
|
147
|
+
|
@@ -3,13 +3,20 @@ require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/comma
|
|
3
3
|
require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/aspnet_compiler_40.rb')
|
4
4
|
require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/cucumber_11.rb')
|
5
5
|
require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/dotcover_11.rb')
|
6
|
+
require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/installutil_11.rb')
|
7
|
+
require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/installutil_20.rb')
|
8
|
+
require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/installutil_35.rb')
|
6
9
|
require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/installutil_40.rb')
|
7
10
|
require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/msbuild_20.rb')
|
8
11
|
require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/msbuild_30.rb')
|
9
12
|
require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/msbuild_35.rb')
|
10
13
|
require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/msbuild_40.rb')
|
11
14
|
require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/msdeploy_40.rb')
|
15
|
+
require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/mstest_2005.rb')
|
16
|
+
require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/mstest_2008.rb')
|
17
|
+
require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/mstest_2010.rb')
|
12
18
|
require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/netsh_2008.rb')
|
13
19
|
require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/nunit_console_25.rb')
|
14
20
|
require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/rake_09.rb')
|
21
|
+
require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/simian_23.rb')
|
15
22
|
require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/tf_2010.rb')
|
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.1.
|
4
|
+
version: 0.1.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-01-
|
12
|
+
date: 2012-01-18 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: A command line builder with a fluent interface written in Ruby.
|
15
15
|
email: matthew@matthewriley.name
|
@@ -23,15 +23,22 @@ files:
|
|
23
23
|
- lib/fluent_command_builder/command_builders/aspnet_compiler_40.rb
|
24
24
|
- lib/fluent_command_builder/command_builders/cucumber_11.rb
|
25
25
|
- lib/fluent_command_builder/command_builders/dotcover_11.rb
|
26
|
+
- lib/fluent_command_builder/command_builders/installutil_11.rb
|
27
|
+
- lib/fluent_command_builder/command_builders/installutil_20.rb
|
28
|
+
- lib/fluent_command_builder/command_builders/installutil_35.rb
|
26
29
|
- lib/fluent_command_builder/command_builders/installutil_40.rb
|
27
30
|
- lib/fluent_command_builder/command_builders/msbuild_20.rb
|
28
31
|
- lib/fluent_command_builder/command_builders/msbuild_30.rb
|
29
32
|
- lib/fluent_command_builder/command_builders/msbuild_35.rb
|
30
33
|
- lib/fluent_command_builder/command_builders/msbuild_40.rb
|
31
34
|
- lib/fluent_command_builder/command_builders/msdeploy_40.rb
|
35
|
+
- lib/fluent_command_builder/command_builders/mstest_2005.rb
|
36
|
+
- lib/fluent_command_builder/command_builders/mstest_2008.rb
|
37
|
+
- lib/fluent_command_builder/command_builders/mstest_2010.rb
|
32
38
|
- lib/fluent_command_builder/command_builders/netsh_2008.rb
|
33
39
|
- lib/fluent_command_builder/command_builders/nunit_console_25.rb
|
34
40
|
- lib/fluent_command_builder/command_builders/rake_09.rb
|
41
|
+
- lib/fluent_command_builder/command_builders/simian_23.rb
|
35
42
|
- lib/fluent_command_builder/command_builders/tf_2010.rb
|
36
43
|
- lib/fluent_command_builder.rb
|
37
44
|
homepage: http://rubygems.org/gems/fluent_command_builder
|