fluent_command_builder 0.1.5 → 0.1.6

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.
Files changed (28) hide show
  1. data/lib/fluent_command_builder.rb +2 -1
  2. data/lib/fluent_command_builder/command_builder.rb +1 -1
  3. data/lib/fluent_command_builder/command_builders/aspnet_compiler_20.rb +31 -58
  4. data/lib/fluent_command_builder/command_builders/aspnet_compiler_35.rb +31 -58
  5. data/lib/fluent_command_builder/command_builders/aspnet_compiler_40.rb +31 -58
  6. data/lib/fluent_command_builder/command_builders/cucumber_11.rb +38 -76
  7. data/lib/fluent_command_builder/command_builders/dotcover_11.rb +81 -155
  8. data/lib/fluent_command_builder/command_builders/installutil_11.rb +18 -35
  9. data/lib/fluent_command_builder/command_builders/installutil_20.rb +21 -38
  10. data/lib/fluent_command_builder/command_builders/installutil_35.rb +21 -38
  11. data/lib/fluent_command_builder/command_builders/installutil_40.rb +24 -41
  12. data/lib/fluent_command_builder/command_builders/msbuild_20.rb +24 -48
  13. data/lib/fluent_command_builder/command_builders/msbuild_30.rb +24 -48
  14. data/lib/fluent_command_builder/command_builders/msbuild_35.rb +32 -64
  15. data/lib/fluent_command_builder/command_builders/msbuild_40.rb +37 -156
  16. data/lib/fluent_command_builder/command_builders/msdeploy_40.rb +39 -78
  17. data/lib/fluent_command_builder/command_builders/mstest_2005.rb +25 -50
  18. data/lib/fluent_command_builder/command_builders/mstest_2008.rb +26 -52
  19. data/lib/fluent_command_builder/command_builders/mstest_2010.rb +29 -58
  20. data/lib/fluent_command_builder/command_builders/netsh_2008.rb +105 -204
  21. data/lib/fluent_command_builder/command_builders/nunit_25.rb +103 -0
  22. data/lib/fluent_command_builder/command_builders/rake_09.rb +32 -64
  23. data/lib/fluent_command_builder/command_builders/sevenzip_92.rb +428 -0
  24. data/lib/fluent_command_builder/command_builders/simian_23.rb +32 -64
  25. data/lib/fluent_command_builder/command_builders/tf_2010.rb +502 -969
  26. data/lib/fluent_command_builder/command_builders/tf_tee_2010.rb +483 -930
  27. metadata +4 -3
  28. data/lib/fluent_command_builder/command_builders/nunit_console_25.rb +0 -137
@@ -4,64 +4,47 @@ module FluentCommandBuilder
4
4
  module InstallUtil
5
5
  module V20
6
6
  class InstallUtil
7
- def initialize command=nil
8
- @b = CommandBuilder.new command
9
- @b.append 'installUtil'
10
- self
11
- end
12
-
13
- def assembly_file_name assembly_file_name
14
- @b.append "#{@b.format assembly_file_name}"
15
- self
7
+ def initialize builder, assembly_name=nil
8
+ @builder = builder
9
+ @builder.append 'installUtil'
10
+ @builder.append " #{@builder.format assembly_name}" unless assembly_name.nil?
16
11
  end
17
-
18
- def help
19
- @b.append '/help'
12
+ def help assembly_path=nil
13
+ @builder.append ' /help'
14
+ @builder.append " #{@builder.format assembly_path}" unless assembly_path.nil?
20
15
  self
21
16
  end
22
-
23
- def log_file file_name
24
- @b.append "/logFile=#{@b.format file_name}"
17
+ def log_file file_name=nil
18
+ @builder.append ' /logFile'
19
+ @builder.append "=#{@builder.format file_name}" unless file_name.nil?
25
20
  self
26
21
  end
27
-
28
- def assembly_name assembly_strong_name
29
- @b.append "/assemblyName=#{@b.format assembly_strong_name}"
22
+ def assembly_name assembly_name
23
+ @builder.append " /assemblyName=#{@builder.format assembly_name}"
30
24
  self
31
25
  end
32
-
33
26
  def log_to_console bool
34
- @b.append "/logToConsole=#{@b.format bool}"
27
+ @builder.append " /logToConsole=#{@builder.format bool}"
35
28
  self
36
29
  end
37
-
38
30
  def show_call_stack
39
- @b.append '/showCallStack'
31
+ @builder.append ' /showCallStack'
40
32
  self
41
33
  end
42
-
43
34
  def uninstall
44
- @b.append '/uninstall'
35
+ @builder.append ' /uninstall'
45
36
  self
46
37
  end
47
-
48
- def to_s
49
- @b.to_s
38
+ def to_s
39
+ @builder.to_s
50
40
  end
51
-
52
41
  end
53
-
54
- def installutil
55
- InstallUtil.new
42
+ def installutil assembly_name=nil
43
+ InstallUtil.new CommandBuilder.new, assembly_name
56
44
  end
57
-
58
45
  end
59
-
60
46
  end
61
-
62
- def installutil_20
63
- InstallUtil::V20::InstallUtil.new
47
+ def installutil_20 assembly_name=nil
48
+ InstallUtil::V20::InstallUtil.new CommandBuilder.new, assembly_name
64
49
  end
65
-
66
50
  end
67
-
@@ -4,64 +4,47 @@ module FluentCommandBuilder
4
4
  module InstallUtil
5
5
  module V35
6
6
  class InstallUtil
7
- def initialize command=nil
8
- @b = CommandBuilder.new command
9
- @b.append 'installUtil'
10
- self
11
- end
12
-
13
- def assembly_file_name assembly_file_name
14
- @b.append "#{@b.format assembly_file_name}"
15
- self
7
+ def initialize builder, assembly_name=nil
8
+ @builder = builder
9
+ @builder.append 'installUtil'
10
+ @builder.append " #{@builder.format assembly_name}" unless assembly_name.nil?
16
11
  end
17
-
18
- def help
19
- @b.append '/help'
12
+ def help assembly_path=nil
13
+ @builder.append ' /help'
14
+ @builder.append " #{@builder.format assembly_path}" unless assembly_path.nil?
20
15
  self
21
16
  end
22
-
23
- def log_file file_name
24
- @b.append "/logFile=#{@b.format file_name}"
17
+ def log_file file_name=nil
18
+ @builder.append ' /logFile'
19
+ @builder.append "=#{@builder.format file_name}" unless file_name.nil?
25
20
  self
26
21
  end
27
-
28
- def assembly_name assembly_strong_name
29
- @b.append "/assemblyName=#{@b.format assembly_strong_name}"
22
+ def assembly_name assembly_name
23
+ @builder.append " /assemblyName=#{@builder.format assembly_name}"
30
24
  self
31
25
  end
32
-
33
26
  def log_to_console bool
34
- @b.append "/logToConsole=#{@b.format bool}"
27
+ @builder.append " /logToConsole=#{@builder.format bool}"
35
28
  self
36
29
  end
37
-
38
30
  def show_call_stack
39
- @b.append '/showCallStack'
31
+ @builder.append ' /showCallStack'
40
32
  self
41
33
  end
42
-
43
34
  def uninstall
44
- @b.append '/uninstall'
35
+ @builder.append ' /uninstall'
45
36
  self
46
37
  end
47
-
48
- def to_s
49
- @b.to_s
38
+ def to_s
39
+ @builder.to_s
50
40
  end
51
-
52
41
  end
53
-
54
- def installutil
55
- InstallUtil.new
42
+ def installutil assembly_name=nil
43
+ InstallUtil.new CommandBuilder.new, assembly_name
56
44
  end
57
-
58
45
  end
59
-
60
46
  end
61
-
62
- def installutil_35
63
- InstallUtil::V35::InstallUtil.new
47
+ def installutil_35 assembly_name=nil
48
+ InstallUtil::V35::InstallUtil.new CommandBuilder.new, assembly_name
64
49
  end
65
-
66
50
  end
67
-
@@ -4,69 +4,52 @@ module FluentCommandBuilder
4
4
  module InstallUtil
5
5
  module V40
6
6
  class InstallUtil
7
- def initialize command=nil
8
- @b = CommandBuilder.new command
9
- @b.append 'installUtil'
10
- self
11
- end
12
-
13
- def assembly_file_name assembly_file_name
14
- @b.append "#{@b.format assembly_file_name}"
15
- self
7
+ def initialize builder, assembly_name=nil
8
+ @builder = builder
9
+ @builder.append 'installUtil'
10
+ @builder.append " #{@builder.format assembly_name}" unless assembly_name.nil?
16
11
  end
17
-
18
- def help
19
- @b.append '/help'
12
+ def help assembly_path=nil
13
+ @builder.append ' /help'
14
+ @builder.append " #{@builder.format assembly_path}" unless assembly_path.nil?
20
15
  self
21
16
  end
22
-
23
- def assembly_name assembly_strong_name
24
- @b.append "/assemblyName=#{@b.format assembly_strong_name}"
17
+ def assembly_name assembly_name
18
+ @builder.append " /assemblyName=#{@builder.format assembly_name}"
25
19
  self
26
20
  end
27
-
28
- def install_state_dir directory_name
29
- @b.append "/installStateDir=#{@b.format directory_name}"
21
+ def install_state_dir directory_name=nil
22
+ @builder.append ' /installStateDir'
23
+ @builder.append "=#{@builder.format directory_name}" unless directory_name.nil?
30
24
  self
31
25
  end
32
-
33
- def log_file file_name
34
- @b.append "/logFile=#{@b.format file_name}"
26
+ def log_file file_name=nil
27
+ @builder.append ' /logFile'
28
+ @builder.append "=#{@builder.format file_name}" unless file_name.nil?
35
29
  self
36
30
  end
37
-
38
31
  def log_to_console bool
39
- @b.append "/logToConsole=#{@b.format bool}"
32
+ @builder.append " /logToConsole=#{@builder.format bool}"
40
33
  self
41
34
  end
42
-
43
35
  def show_call_stack
44
- @b.append '/showCallStack'
36
+ @builder.append ' /showCallStack'
45
37
  self
46
38
  end
47
-
48
39
  def uninstall
49
- @b.append '/uninstall'
40
+ @builder.append ' /uninstall'
50
41
  self
51
42
  end
52
-
53
- def to_s
54
- @b.to_s
43
+ def to_s
44
+ @builder.to_s
55
45
  end
56
-
57
46
  end
58
-
59
- def installutil
60
- InstallUtil.new
47
+ def installutil assembly_name=nil
48
+ InstallUtil.new CommandBuilder.new, assembly_name
61
49
  end
62
-
63
50
  end
64
-
65
51
  end
66
-
67
- def installutil_40
68
- InstallUtil::V40::InstallUtil.new
52
+ def installutil_40 assembly_name=nil
53
+ InstallUtil::V40::InstallUtil.new CommandBuilder.new, assembly_name
69
54
  end
70
-
71
55
  end
72
-
@@ -4,94 +4,70 @@ module FluentCommandBuilder
4
4
  module MSBuild
5
5
  module V20
6
6
  class MSBuild
7
- def initialize command=nil
8
- @b = CommandBuilder.new command
9
- @b.append 'MSBuild'
10
- self
11
- end
12
-
13
- def project_file project_file
14
- @b.append "#{@b.format project_file}"
15
- self
7
+ def initialize builder, project_file=nil
8
+ @builder = builder
9
+ @builder.append 'MSBuild'
10
+ @builder.append " #{@builder.format project_file}" unless project_file.nil?
16
11
  end
17
-
18
12
  def help
19
- @b.append '/help'
13
+ @builder.append ' /help'
20
14
  self
21
15
  end
22
-
23
16
  def no_logo
24
- @b.append '/noLogo'
17
+ @builder.append ' /noLogo'
25
18
  self
26
19
  end
27
-
28
20
  def version
29
- @b.append '/version'
21
+ @builder.append ' /version'
30
22
  self
31
23
  end
32
-
33
24
  def file file
34
- @b.append "@#{@b.format file}"
25
+ @builder.append " @#{@builder.format file}"
35
26
  self
36
27
  end
37
-
38
28
  def no_auto_response
39
- @b.append '/noAutoResponse'
29
+ @builder.append ' /noAutoResponse'
40
30
  self
41
31
  end
42
-
43
32
  def target target
44
- @b.append "/target:#{@b.format target, ';'}"
33
+ @builder.append " /target:#{@builder.format target, ';'}"
45
34
  self
46
35
  end
47
-
48
36
  def property property
49
- @b.append "/property:#{@b.format property, ';', '='}"
37
+ @builder.append " /property:#{@builder.format property, ';', '='}"
50
38
  self
51
39
  end
52
-
53
40
  def logger logger
54
- @b.append "/logger:#{@b.format logger}"
41
+ @builder.append " /logger:#{@builder.format logger}"
55
42
  self
56
43
  end
57
-
58
44
  def console_logger_parameters parameters
59
- @b.append "/consoleLoggerParameters:#{@b.format parameters}"
45
+ @builder.append " /consoleLoggerParameters:#{@builder.format parameters}"
60
46
  self
61
47
  end
62
-
63
48
  def verbosity level
64
- @b.append "/verbosity:#{@b.format level}"
49
+ @builder.append " /verbosity:#{@builder.format level}"
65
50
  self
66
51
  end
67
-
68
52
  def no_console_logger
69
- @b.append '/noConsoleLogger'
53
+ @builder.append ' /noConsoleLogger'
70
54
  self
71
55
  end
72
-
73
- def validate schema
74
- @b.append "/validate:#{@b.format schema}"
56
+ def validate schema=nil
57
+ @builder.append ' /validate'
58
+ @builder.append ":#{@builder.format schema}" unless schema.nil?
75
59
  self
76
60
  end
77
-
78
- def to_s
79
- @b.to_s
61
+ def to_s
62
+ @builder.to_s
80
63
  end
81
-
82
64
  end
83
-
84
- def msbuild
85
- MSBuild.new
65
+ def msbuild project_file=nil
66
+ MSBuild.new CommandBuilder.new, project_file
86
67
  end
87
-
88
68
  end
89
-
90
69
  end
91
-
92
- def msbuild_20
93
- MSBuild::V20::MSBuild.new
70
+ def msbuild_20 project_file=nil
71
+ MSBuild::V20::MSBuild.new CommandBuilder.new, project_file
94
72
  end
95
-
96
73
  end
97
-
@@ -4,94 +4,70 @@ module FluentCommandBuilder
4
4
  module MSBuild
5
5
  module V30
6
6
  class MSBuild
7
- def initialize command=nil
8
- @b = CommandBuilder.new command
9
- @b.append 'MSBuild'
10
- self
11
- end
12
-
13
- def project_file project_file
14
- @b.append "#{@b.format project_file}"
15
- self
7
+ def initialize builder, project_file=nil
8
+ @builder = builder
9
+ @builder.append 'MSBuild'
10
+ @builder.append " #{@builder.format project_file}" unless project_file.nil?
16
11
  end
17
-
18
12
  def help
19
- @b.append '/help'
13
+ @builder.append ' /help'
20
14
  self
21
15
  end
22
-
23
16
  def no_logo
24
- @b.append '/noLogo'
17
+ @builder.append ' /noLogo'
25
18
  self
26
19
  end
27
-
28
20
  def version
29
- @b.append '/version'
21
+ @builder.append ' /version'
30
22
  self
31
23
  end
32
-
33
24
  def file file
34
- @b.append "@#{@b.format file}"
25
+ @builder.append " @#{@builder.format file}"
35
26
  self
36
27
  end
37
-
38
28
  def no_auto_response
39
- @b.append '/noAutoResponse'
29
+ @builder.append ' /noAutoResponse'
40
30
  self
41
31
  end
42
-
43
32
  def target target
44
- @b.append "/target:#{@b.format target, ';'}"
33
+ @builder.append " /target:#{@builder.format target, ';'}"
45
34
  self
46
35
  end
47
-
48
36
  def property property
49
- @b.append "/property:#{@b.format property, ';', '='}"
37
+ @builder.append " /property:#{@builder.format property, ';', '='}"
50
38
  self
51
39
  end
52
-
53
40
  def logger logger
54
- @b.append "/logger:#{@b.format logger}"
41
+ @builder.append " /logger:#{@builder.format logger}"
55
42
  self
56
43
  end
57
-
58
44
  def console_logger_parameters parameters
59
- @b.append "/consoleLoggerParameters:#{@b.format parameters}"
45
+ @builder.append " /consoleLoggerParameters:#{@builder.format parameters}"
60
46
  self
61
47
  end
62
-
63
48
  def verbosity level
64
- @b.append "/verbosity:#{@b.format level}"
49
+ @builder.append " /verbosity:#{@builder.format level}"
65
50
  self
66
51
  end
67
-
68
52
  def no_console_logger
69
- @b.append '/noConsoleLogger'
53
+ @builder.append ' /noConsoleLogger'
70
54
  self
71
55
  end
72
-
73
- def validate schema
74
- @b.append "/validate:#{@b.format schema}"
56
+ def validate schema=nil
57
+ @builder.append ' /validate'
58
+ @builder.append ":#{@builder.format schema}" unless schema.nil?
75
59
  self
76
60
  end
77
-
78
- def to_s
79
- @b.to_s
61
+ def to_s
62
+ @builder.to_s
80
63
  end
81
-
82
64
  end
83
-
84
- def msbuild
85
- MSBuild.new
65
+ def msbuild project_file=nil
66
+ MSBuild.new CommandBuilder.new, project_file
86
67
  end
87
-
88
68
  end
89
-
90
69
  end
91
-
92
- def msbuild_30
93
- MSBuild::V30::MSBuild.new
70
+ def msbuild_30 project_file=nil
71
+ MSBuild::V30::MSBuild.new CommandBuilder.new, project_file
94
72
  end
95
-
96
73
  end
97
-