fluent_command_builder 0.1.18 → 0.1.19
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_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,48 +4,57 @@ require File.expand_path(File.dirname(__FILE__) + '/../command_builder')
|
|
4
4
|
module FluentCommandBuilder
|
5
5
|
module InstallUtil
|
6
6
|
module V20
|
7
|
+
COMMAND_NAME = 'installUtil'
|
7
8
|
class InstallUtil < CommandBase
|
8
9
|
def initialize builder, assembly_name=nil
|
9
|
-
|
10
|
-
@builder.append 'installUtil'
|
10
|
+
super builder
|
11
11
|
@builder.append " #{@builder.format assembly_name}" unless assembly_name.nil?
|
12
12
|
end
|
13
13
|
def help assembly_path=nil
|
14
14
|
@builder.append ' /help'
|
15
15
|
@builder.append " #{@builder.format assembly_path}" unless assembly_path.nil?
|
16
|
+
yield @builder if block_given?
|
16
17
|
self
|
17
18
|
end
|
18
19
|
def log_file file_name=nil
|
19
20
|
@builder.append ' /logFile'
|
20
21
|
@builder.append "=#{@builder.format file_name}" unless file_name.nil?
|
22
|
+
yield @builder if block_given?
|
21
23
|
self
|
22
24
|
end
|
23
25
|
def assembly_name assembly_name
|
24
26
|
@builder.append " /assemblyName=#{@builder.format assembly_name}"
|
27
|
+
yield @builder if block_given?
|
25
28
|
self
|
26
29
|
end
|
27
30
|
def log_to_console bool
|
28
31
|
@builder.append " /logToConsole=#{@builder.format bool}"
|
32
|
+
yield @builder if block_given?
|
29
33
|
self
|
30
34
|
end
|
31
35
|
def show_call_stack
|
32
36
|
@builder.append ' /showCallStack'
|
37
|
+
yield @builder if block_given?
|
33
38
|
self
|
34
39
|
end
|
35
40
|
def uninstall
|
36
41
|
@builder.append ' /uninstall'
|
42
|
+
yield @builder if block_given?
|
37
43
|
self
|
38
44
|
end
|
39
|
-
def to_s
|
40
|
-
@builder.to_s
|
41
|
-
end
|
42
45
|
end
|
43
46
|
def installutil assembly_name=nil
|
44
|
-
|
47
|
+
builder = CommandBuilder.new COMMAND_NAME
|
48
|
+
command = InstallUtil.new builder, assembly_name
|
49
|
+
yield builder if block_given?
|
50
|
+
command
|
45
51
|
end
|
46
52
|
end
|
47
53
|
end
|
48
54
|
def installutil_20 assembly_name=nil
|
49
|
-
|
55
|
+
builder = CommandBuilder.new InstallUtil::V20::COMMAND_NAME
|
56
|
+
command = InstallUtil::V20::InstallUtil.new builder, assembly_name
|
57
|
+
yield builder if block_given?
|
58
|
+
command
|
50
59
|
end
|
51
60
|
end
|
@@ -4,48 +4,57 @@ require File.expand_path(File.dirname(__FILE__) + '/../command_builder')
|
|
4
4
|
module FluentCommandBuilder
|
5
5
|
module InstallUtil
|
6
6
|
module V35
|
7
|
+
COMMAND_NAME = 'installUtil'
|
7
8
|
class InstallUtil < CommandBase
|
8
9
|
def initialize builder, assembly_name=nil
|
9
|
-
|
10
|
-
@builder.append 'installUtil'
|
10
|
+
super builder
|
11
11
|
@builder.append " #{@builder.format assembly_name}" unless assembly_name.nil?
|
12
12
|
end
|
13
13
|
def help assembly_path=nil
|
14
14
|
@builder.append ' /help'
|
15
15
|
@builder.append " #{@builder.format assembly_path}" unless assembly_path.nil?
|
16
|
+
yield @builder if block_given?
|
16
17
|
self
|
17
18
|
end
|
18
19
|
def log_file file_name=nil
|
19
20
|
@builder.append ' /logFile'
|
20
21
|
@builder.append "=#{@builder.format file_name}" unless file_name.nil?
|
22
|
+
yield @builder if block_given?
|
21
23
|
self
|
22
24
|
end
|
23
25
|
def assembly_name assembly_name
|
24
26
|
@builder.append " /assemblyName=#{@builder.format assembly_name}"
|
27
|
+
yield @builder if block_given?
|
25
28
|
self
|
26
29
|
end
|
27
30
|
def log_to_console bool
|
28
31
|
@builder.append " /logToConsole=#{@builder.format bool}"
|
32
|
+
yield @builder if block_given?
|
29
33
|
self
|
30
34
|
end
|
31
35
|
def show_call_stack
|
32
36
|
@builder.append ' /showCallStack'
|
37
|
+
yield @builder if block_given?
|
33
38
|
self
|
34
39
|
end
|
35
40
|
def uninstall
|
36
41
|
@builder.append ' /uninstall'
|
42
|
+
yield @builder if block_given?
|
37
43
|
self
|
38
44
|
end
|
39
|
-
def to_s
|
40
|
-
@builder.to_s
|
41
|
-
end
|
42
45
|
end
|
43
46
|
def installutil assembly_name=nil
|
44
|
-
|
47
|
+
builder = CommandBuilder.new COMMAND_NAME
|
48
|
+
command = InstallUtil.new builder, assembly_name
|
49
|
+
yield builder if block_given?
|
50
|
+
command
|
45
51
|
end
|
46
52
|
end
|
47
53
|
end
|
48
54
|
def installutil_35 assembly_name=nil
|
49
|
-
|
55
|
+
builder = CommandBuilder.new InstallUtil::V35::COMMAND_NAME
|
56
|
+
command = InstallUtil::V35::InstallUtil.new builder, assembly_name
|
57
|
+
yield builder if block_given?
|
58
|
+
command
|
50
59
|
end
|
51
60
|
end
|
@@ -4,53 +4,63 @@ require File.expand_path(File.dirname(__FILE__) + '/../command_builder')
|
|
4
4
|
module FluentCommandBuilder
|
5
5
|
module InstallUtil
|
6
6
|
module V40
|
7
|
+
COMMAND_NAME = 'installUtil'
|
7
8
|
class InstallUtil < CommandBase
|
8
9
|
def initialize builder, assembly_name=nil
|
9
|
-
|
10
|
-
@builder.append 'installUtil'
|
10
|
+
super builder
|
11
11
|
@builder.append " #{@builder.format assembly_name}" unless assembly_name.nil?
|
12
12
|
end
|
13
13
|
def help assembly_path=nil
|
14
14
|
@builder.append ' /help'
|
15
15
|
@builder.append " #{@builder.format assembly_path}" unless assembly_path.nil?
|
16
|
+
yield @builder if block_given?
|
16
17
|
self
|
17
18
|
end
|
18
19
|
def assembly_name assembly_name
|
19
20
|
@builder.append " /assemblyName=#{@builder.format assembly_name}"
|
21
|
+
yield @builder if block_given?
|
20
22
|
self
|
21
23
|
end
|
22
24
|
def install_state_dir directory_name=nil
|
23
25
|
@builder.append ' /installStateDir'
|
24
26
|
@builder.append "=#{@builder.format directory_name}" unless directory_name.nil?
|
27
|
+
yield @builder if block_given?
|
25
28
|
self
|
26
29
|
end
|
27
30
|
def log_file file_name=nil
|
28
31
|
@builder.append ' /logFile'
|
29
32
|
@builder.append "=#{@builder.format file_name}" unless file_name.nil?
|
33
|
+
yield @builder if block_given?
|
30
34
|
self
|
31
35
|
end
|
32
36
|
def log_to_console bool
|
33
37
|
@builder.append " /logToConsole=#{@builder.format bool}"
|
38
|
+
yield @builder if block_given?
|
34
39
|
self
|
35
40
|
end
|
36
41
|
def show_call_stack
|
37
42
|
@builder.append ' /showCallStack'
|
43
|
+
yield @builder if block_given?
|
38
44
|
self
|
39
45
|
end
|
40
46
|
def uninstall
|
41
47
|
@builder.append ' /uninstall'
|
48
|
+
yield @builder if block_given?
|
42
49
|
self
|
43
50
|
end
|
44
|
-
def to_s
|
45
|
-
@builder.to_s
|
46
|
-
end
|
47
51
|
end
|
48
52
|
def installutil assembly_name=nil
|
49
|
-
|
53
|
+
builder = CommandBuilder.new COMMAND_NAME
|
54
|
+
command = InstallUtil.new builder, assembly_name
|
55
|
+
yield builder if block_given?
|
56
|
+
command
|
50
57
|
end
|
51
58
|
end
|
52
59
|
end
|
53
60
|
def installutil_40 assembly_name=nil
|
54
|
-
|
61
|
+
builder = CommandBuilder.new InstallUtil::V40::COMMAND_NAME
|
62
|
+
command = InstallUtil::V40::InstallUtil.new builder, assembly_name
|
63
|
+
yield builder if block_given?
|
64
|
+
command
|
55
65
|
end
|
56
66
|
end
|
@@ -4,71 +4,86 @@ require File.expand_path(File.dirname(__FILE__) + '/../command_builder')
|
|
4
4
|
module FluentCommandBuilder
|
5
5
|
module MSBuild
|
6
6
|
module V20
|
7
|
+
COMMAND_NAME = 'MSBuild'
|
7
8
|
class MSBuild < CommandBase
|
8
9
|
def initialize builder, project_file=nil
|
9
|
-
|
10
|
-
@builder.append 'MSBuild'
|
10
|
+
super builder
|
11
11
|
@builder.append " #{@builder.format project_file}" unless project_file.nil?
|
12
12
|
end
|
13
13
|
def help
|
14
14
|
@builder.append ' /help'
|
15
|
+
yield @builder if block_given?
|
15
16
|
self
|
16
17
|
end
|
17
18
|
def no_logo
|
18
19
|
@builder.append ' /noLogo'
|
20
|
+
yield @builder if block_given?
|
19
21
|
self
|
20
22
|
end
|
21
23
|
def version
|
22
24
|
@builder.append ' /version'
|
25
|
+
yield @builder if block_given?
|
23
26
|
self
|
24
27
|
end
|
25
28
|
def file file
|
26
29
|
@builder.append " @#{@builder.format file}"
|
30
|
+
yield @builder if block_given?
|
27
31
|
self
|
28
32
|
end
|
29
33
|
def no_auto_response
|
30
34
|
@builder.append ' /noAutoResponse'
|
35
|
+
yield @builder if block_given?
|
31
36
|
self
|
32
37
|
end
|
33
38
|
def target target
|
34
39
|
@builder.append " /target:#{@builder.format target, ';'}"
|
40
|
+
yield @builder if block_given?
|
35
41
|
self
|
36
42
|
end
|
37
43
|
def property property
|
38
44
|
@builder.append " /property:#{@builder.format property, ';', '='}"
|
45
|
+
yield @builder if block_given?
|
39
46
|
self
|
40
47
|
end
|
41
48
|
def logger logger
|
42
49
|
@builder.append " /logger:#{@builder.format logger}"
|
50
|
+
yield @builder if block_given?
|
43
51
|
self
|
44
52
|
end
|
45
53
|
def console_logger_parameters parameters
|
46
54
|
@builder.append " /consoleLoggerParameters:#{@builder.format parameters}"
|
55
|
+
yield @builder if block_given?
|
47
56
|
self
|
48
57
|
end
|
49
58
|
def verbosity level
|
50
59
|
@builder.append " /verbosity:#{@builder.format level}"
|
60
|
+
yield @builder if block_given?
|
51
61
|
self
|
52
62
|
end
|
53
63
|
def no_console_logger
|
54
64
|
@builder.append ' /noConsoleLogger'
|
65
|
+
yield @builder if block_given?
|
55
66
|
self
|
56
67
|
end
|
57
68
|
def validate schema=nil
|
58
69
|
@builder.append ' /validate'
|
59
70
|
@builder.append ":#{@builder.format schema}" unless schema.nil?
|
71
|
+
yield @builder if block_given?
|
60
72
|
self
|
61
73
|
end
|
62
|
-
def to_s
|
63
|
-
@builder.to_s
|
64
|
-
end
|
65
74
|
end
|
66
75
|
def msbuild project_file=nil
|
67
|
-
|
76
|
+
builder = CommandBuilder.new COMMAND_NAME
|
77
|
+
command = MSBuild.new builder, project_file
|
78
|
+
yield builder if block_given?
|
79
|
+
command
|
68
80
|
end
|
69
81
|
end
|
70
82
|
end
|
71
83
|
def msbuild_20 project_file=nil
|
72
|
-
|
84
|
+
builder = CommandBuilder.new MSBuild::V20::COMMAND_NAME
|
85
|
+
command = MSBuild::V20::MSBuild.new builder, project_file
|
86
|
+
yield builder if block_given?
|
87
|
+
command
|
73
88
|
end
|
74
89
|
end
|
@@ -4,71 +4,86 @@ require File.expand_path(File.dirname(__FILE__) + '/../command_builder')
|
|
4
4
|
module FluentCommandBuilder
|
5
5
|
module MSBuild
|
6
6
|
module V30
|
7
|
+
COMMAND_NAME = 'MSBuild'
|
7
8
|
class MSBuild < CommandBase
|
8
9
|
def initialize builder, project_file=nil
|
9
|
-
|
10
|
-
@builder.append 'MSBuild'
|
10
|
+
super builder
|
11
11
|
@builder.append " #{@builder.format project_file}" unless project_file.nil?
|
12
12
|
end
|
13
13
|
def help
|
14
14
|
@builder.append ' /help'
|
15
|
+
yield @builder if block_given?
|
15
16
|
self
|
16
17
|
end
|
17
18
|
def no_logo
|
18
19
|
@builder.append ' /noLogo'
|
20
|
+
yield @builder if block_given?
|
19
21
|
self
|
20
22
|
end
|
21
23
|
def version
|
22
24
|
@builder.append ' /version'
|
25
|
+
yield @builder if block_given?
|
23
26
|
self
|
24
27
|
end
|
25
28
|
def file file
|
26
29
|
@builder.append " @#{@builder.format file}"
|
30
|
+
yield @builder if block_given?
|
27
31
|
self
|
28
32
|
end
|
29
33
|
def no_auto_response
|
30
34
|
@builder.append ' /noAutoResponse'
|
35
|
+
yield @builder if block_given?
|
31
36
|
self
|
32
37
|
end
|
33
38
|
def target target
|
34
39
|
@builder.append " /target:#{@builder.format target, ';'}"
|
40
|
+
yield @builder if block_given?
|
35
41
|
self
|
36
42
|
end
|
37
43
|
def property property
|
38
44
|
@builder.append " /property:#{@builder.format property, ';', '='}"
|
45
|
+
yield @builder if block_given?
|
39
46
|
self
|
40
47
|
end
|
41
48
|
def logger logger
|
42
49
|
@builder.append " /logger:#{@builder.format logger}"
|
50
|
+
yield @builder if block_given?
|
43
51
|
self
|
44
52
|
end
|
45
53
|
def console_logger_parameters parameters
|
46
54
|
@builder.append " /consoleLoggerParameters:#{@builder.format parameters}"
|
55
|
+
yield @builder if block_given?
|
47
56
|
self
|
48
57
|
end
|
49
58
|
def verbosity level
|
50
59
|
@builder.append " /verbosity:#{@builder.format level}"
|
60
|
+
yield @builder if block_given?
|
51
61
|
self
|
52
62
|
end
|
53
63
|
def no_console_logger
|
54
64
|
@builder.append ' /noConsoleLogger'
|
65
|
+
yield @builder if block_given?
|
55
66
|
self
|
56
67
|
end
|
57
68
|
def validate schema=nil
|
58
69
|
@builder.append ' /validate'
|
59
70
|
@builder.append ":#{@builder.format schema}" unless schema.nil?
|
71
|
+
yield @builder if block_given?
|
60
72
|
self
|
61
73
|
end
|
62
|
-
def to_s
|
63
|
-
@builder.to_s
|
64
|
-
end
|
65
74
|
end
|
66
75
|
def msbuild project_file=nil
|
67
|
-
|
76
|
+
builder = CommandBuilder.new COMMAND_NAME
|
77
|
+
command = MSBuild.new builder, project_file
|
78
|
+
yield builder if block_given?
|
79
|
+
command
|
68
80
|
end
|
69
81
|
end
|
70
82
|
end
|
71
83
|
def msbuild_30 project_file=nil
|
72
|
-
|
84
|
+
builder = CommandBuilder.new MSBuild::V30::COMMAND_NAME
|
85
|
+
command = MSBuild::V30::MSBuild.new builder, project_file
|
86
|
+
yield builder if block_given?
|
87
|
+
command
|
73
88
|
end
|
74
89
|
end
|
@@ -4,103 +4,126 @@ require File.expand_path(File.dirname(__FILE__) + '/../command_builder')
|
|
4
4
|
module FluentCommandBuilder
|
5
5
|
module MSBuild
|
6
6
|
module V35
|
7
|
+
COMMAND_NAME = 'MSBuild'
|
7
8
|
class MSBuild < CommandBase
|
8
9
|
def initialize builder, project_file=nil
|
9
|
-
|
10
|
-
@builder.append 'MSBuild'
|
10
|
+
super builder
|
11
11
|
@builder.append " #{@builder.format project_file}" unless project_file.nil?
|
12
12
|
end
|
13
13
|
def help
|
14
14
|
@builder.append ' /help'
|
15
|
+
yield @builder if block_given?
|
15
16
|
self
|
16
17
|
end
|
17
18
|
def no_logo
|
18
19
|
@builder.append ' /noLogo'
|
20
|
+
yield @builder if block_given?
|
19
21
|
self
|
20
22
|
end
|
21
23
|
def version
|
22
24
|
@builder.append ' /version'
|
25
|
+
yield @builder if block_given?
|
23
26
|
self
|
24
27
|
end
|
25
28
|
def file file
|
26
29
|
@builder.append " @#{@builder.format file}"
|
30
|
+
yield @builder if block_given?
|
27
31
|
self
|
28
32
|
end
|
29
33
|
def no_auto_response
|
30
34
|
@builder.append ' /noAutoResponse'
|
35
|
+
yield @builder if block_given?
|
31
36
|
self
|
32
37
|
end
|
33
38
|
def target target
|
34
39
|
@builder.append " /target:#{@builder.format target, ';'}"
|
40
|
+
yield @builder if block_given?
|
35
41
|
self
|
36
42
|
end
|
37
43
|
def property property
|
38
44
|
@builder.append " /property:#{@builder.format property, ';', '='}"
|
45
|
+
yield @builder if block_given?
|
39
46
|
self
|
40
47
|
end
|
41
48
|
def logger logger
|
42
49
|
@builder.append " /logger:#{@builder.format logger}"
|
50
|
+
yield @builder if block_given?
|
43
51
|
self
|
44
52
|
end
|
45
53
|
def distributed_logger logger
|
46
54
|
@builder.append " /distributedLogger:#{@builder.format logger}"
|
55
|
+
yield @builder if block_given?
|
47
56
|
self
|
48
57
|
end
|
49
58
|
def console_logger_parameters parameters
|
50
59
|
@builder.append " /consoleLoggerParameters:#{@builder.format parameters}"
|
60
|
+
yield @builder if block_given?
|
51
61
|
self
|
52
62
|
end
|
53
63
|
def verbosity level
|
54
64
|
@builder.append " /verbosity:#{@builder.format level}"
|
65
|
+
yield @builder if block_given?
|
55
66
|
self
|
56
67
|
end
|
57
68
|
def no_console_logger
|
58
69
|
@builder.append ' /noConsoleLogger'
|
70
|
+
yield @builder if block_given?
|
59
71
|
self
|
60
72
|
end
|
61
73
|
def validate schema=nil
|
62
74
|
@builder.append ' /validate'
|
63
75
|
@builder.append ":#{@builder.format schema}" unless schema.nil?
|
76
|
+
yield @builder if block_given?
|
64
77
|
self
|
65
78
|
end
|
66
79
|
def max_cpu_count number
|
67
80
|
@builder.append " /maxCpuCount:#{@builder.format number}"
|
81
|
+
yield @builder if block_given?
|
68
82
|
self
|
69
83
|
end
|
70
84
|
def ignore_project_extensions extensions
|
71
85
|
@builder.append " /ignoreProjectExtensions:#{@builder.format extensions, ';'}"
|
86
|
+
yield @builder if block_given?
|
72
87
|
self
|
73
88
|
end
|
74
89
|
def file_logger
|
75
90
|
@builder.append ' /fileLogger'
|
91
|
+
yield @builder if block_given?
|
76
92
|
self
|
77
93
|
end
|
78
94
|
def distributed_file_logger
|
79
95
|
@builder.append ' /distributedFileLogger'
|
96
|
+
yield @builder if block_given?
|
80
97
|
self
|
81
98
|
end
|
82
99
|
def file_logger_parameters parameters
|
83
100
|
@builder.append " /fileLoggerParameters:#{@builder.format parameters, ';', '='}"
|
101
|
+
yield @builder if block_given?
|
84
102
|
self
|
85
103
|
end
|
86
104
|
def tools_version version
|
87
105
|
@builder.append " /toolsVersion:#{@builder.format version}"
|
106
|
+
yield @builder if block_given?
|
88
107
|
self
|
89
108
|
end
|
90
109
|
def node_reuse parameters
|
91
110
|
@builder.append " /nodeReuse:#{@builder.format parameters}"
|
111
|
+
yield @builder if block_given?
|
92
112
|
self
|
93
113
|
end
|
94
|
-
def to_s
|
95
|
-
@builder.to_s
|
96
|
-
end
|
97
114
|
end
|
98
115
|
def msbuild project_file=nil
|
99
|
-
|
116
|
+
builder = CommandBuilder.new COMMAND_NAME
|
117
|
+
command = MSBuild.new builder, project_file
|
118
|
+
yield builder if block_given?
|
119
|
+
command
|
100
120
|
end
|
101
121
|
end
|
102
122
|
end
|
103
123
|
def msbuild_35 project_file=nil
|
104
|
-
|
124
|
+
builder = CommandBuilder.new MSBuild::V35::COMMAND_NAME
|
125
|
+
command = MSBuild::V35::MSBuild.new builder, project_file
|
126
|
+
yield builder if block_given?
|
127
|
+
command
|
105
128
|
end
|
106
129
|
end
|