fluent_command_builder 0.5.6 → 0.6.0

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 (88) hide show
  1. data/lib/command_version_detector.rb +1 -0
  2. data/lib/fluent_command_builder/command_base.rb +20 -11
  3. data/lib/fluent_command_builder/command_builders/appcfg_python.rb +17 -0
  4. data/lib/fluent_command_builder/command_builders/appcfg_python_16.rb +1059 -1059
  5. data/lib/fluent_command_builder/command_builders/appcfg_python_17.rb +1055 -1055
  6. data/lib/fluent_command_builder/command_builders/aspnet_compiler.rb +17 -0
  7. data/lib/fluent_command_builder/command_builders/aspnet_compiler_20.rb +46 -46
  8. data/lib/fluent_command_builder/command_builders/aspnet_compiler_40.rb +46 -46
  9. data/lib/fluent_command_builder/command_builders/bundle.rb +17 -0
  10. data/lib/fluent_command_builder/command_builders/bundle_11.rb +140 -140
  11. data/lib/fluent_command_builder/command_builders/cucumber.rb +17 -0
  12. data/lib/fluent_command_builder/command_builders/cucumber_11.rb +76 -76
  13. data/lib/fluent_command_builder/command_builders/cucumber_12.rb +78 -78
  14. data/lib/fluent_command_builder/command_builders/dev_appserver_python.rb +17 -0
  15. data/lib/fluent_command_builder/command_builders/dev_appserver_python_16.rb +91 -86
  16. data/lib/fluent_command_builder/command_builders/dev_appserver_python_17.rb +91 -86
  17. data/lib/fluent_command_builder/command_builders/dotcover.rb +17 -0
  18. data/lib/fluent_command_builder/command_builders/dotcover_10.rb +33 -33
  19. data/lib/fluent_command_builder/command_builders/dotcover_11.rb +133 -133
  20. data/lib/fluent_command_builder/command_builders/dotcover_12.rb +133 -133
  21. data/lib/fluent_command_builder/command_builders/dotcover_20.rb +137 -137
  22. data/lib/fluent_command_builder/command_builders/installutil.rb +17 -0
  23. data/lib/fluent_command_builder/command_builders/installutil_11.rb +31 -31
  24. data/lib/fluent_command_builder/command_builders/installutil_20.rb +33 -33
  25. data/lib/fluent_command_builder/command_builders/installutil_35.rb +33 -33
  26. data/lib/fluent_command_builder/command_builders/installutil_40.rb +36 -36
  27. data/lib/fluent_command_builder/command_builders/msbuild.rb +17 -0
  28. data/lib/fluent_command_builder/command_builders/msbuild_20.rb +43 -43
  29. data/lib/fluent_command_builder/command_builders/msbuild_30.rb +43 -43
  30. data/lib/fluent_command_builder/command_builders/msbuild_35.rb +59 -59
  31. data/lib/fluent_command_builder/command_builders/msbuild_40.rb +62 -62
  32. data/lib/fluent_command_builder/command_builders/msdeploy.rb +17 -0
  33. data/lib/fluent_command_builder/command_builders/msdeploy_71.rb +177 -0
  34. data/lib/fluent_command_builder/command_builders/mstest.rb +17 -0
  35. data/lib/fluent_command_builder/command_builders/mstest_100.rb +127 -0
  36. data/lib/fluent_command_builder/command_builders/mstest_80.rb +107 -0
  37. data/lib/fluent_command_builder/command_builders/mstest_90.rb +112 -0
  38. data/lib/fluent_command_builder/command_builders/netsh.rb +17 -0
  39. data/lib/fluent_command_builder/command_builders/netsh_61.rb +408 -0
  40. data/lib/fluent_command_builder/command_builders/nunit.rb +17 -0
  41. data/lib/fluent_command_builder/command_builders/nunit_25.rb +69 -64
  42. data/lib/fluent_command_builder/command_builders/nunit_26.rb +85 -80
  43. data/lib/fluent_command_builder/command_builders/rake.rb +17 -0
  44. data/lib/fluent_command_builder/command_builders/rake_09.rb +64 -64
  45. data/lib/fluent_command_builder/command_builders/security_osx.rb +17 -0
  46. data/lib/fluent_command_builder/command_builders/security_osx_107.rb +82 -82
  47. data/lib/fluent_command_builder/command_builders/sevenzip.rb +17 -0
  48. data/lib/fluent_command_builder/command_builders/sevenzip_92.rb +243 -243
  49. data/lib/fluent_command_builder/command_builders/simian.rb +17 -0
  50. data/lib/fluent_command_builder/command_builders/simian_23.rb +63 -63
  51. data/lib/fluent_command_builder/command_builders/team_foundation.rb +17 -0
  52. data/lib/fluent_command_builder/command_builders/team_foundation_100.rb +2155 -0
  53. data/lib/fluent_command_builder/command_builders/team_foundation_tee.rb +17 -0
  54. data/lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb +1978 -0
  55. data/lib/fluent_command_builder/command_builders/xcodebuild.rb +17 -0
  56. data/lib/fluent_command_builder/command_builders/xcodebuild_43.rb +112 -112
  57. data/lib/fluent_command_builder/command_builders/xcodebuild_44.rb +132 -132
  58. data/lib/fluent_command_builder/{command_builder.rb → underlying_builder.rb} +2 -2
  59. data/lib/fluent_command_builder/util.rb +18 -0
  60. data/lib/fluent_command_builder/version_detectors/appcfg_python.rb +9 -0
  61. data/lib/fluent_command_builder/version_detectors/aspnet_compiler.rb +9 -0
  62. data/lib/fluent_command_builder/version_detectors/bundle.rb +9 -0
  63. data/lib/fluent_command_builder/version_detectors/cucumber.rb +9 -0
  64. data/lib/fluent_command_builder/version_detectors/dev_appserver_python.rb +9 -0
  65. data/lib/fluent_command_builder/version_detectors/dotcover.rb +9 -0
  66. data/lib/fluent_command_builder/version_detectors/installutil.rb +9 -0
  67. data/lib/fluent_command_builder/version_detectors/lib/appengine_python_version_detector.rb +16 -0
  68. data/lib/fluent_command_builder/version_detectors/lib/path_finder.rb +43 -0
  69. data/lib/fluent_command_builder/version_detectors/lib/standard_version_detector.rb +14 -0
  70. data/lib/fluent_command_builder/version_detectors/msbuild.rb +9 -0
  71. data/lib/fluent_command_builder/version_detectors/msdeploy.rb +9 -0
  72. data/lib/fluent_command_builder/version_detectors/mstest.rb +9 -0
  73. data/lib/fluent_command_builder/version_detectors/nuget.rb +9 -0
  74. data/lib/fluent_command_builder/version_detectors/nunit.rb +9 -0
  75. data/lib/fluent_command_builder/version_detectors/rake.rb +9 -0
  76. data/lib/fluent_command_builder/version_detectors/security_osx.rb +9 -0
  77. data/lib/fluent_command_builder/version_detectors/sevenzip.rb +9 -0
  78. data/lib/fluent_command_builder/version_detectors/team_foundation.rb +9 -0
  79. data/lib/fluent_command_builder/version_detectors/xcodebuild.rb +9 -0
  80. data/lib/fluent_command_builder.rb +26 -7
  81. metadata +53 -12
  82. data/lib/fluent_command_builder/command_builders/msdeploy_40.rb +0 -177
  83. data/lib/fluent_command_builder/command_builders/mstest_2005.rb +0 -107
  84. data/lib/fluent_command_builder/command_builders/mstest_2008.rb +0 -112
  85. data/lib/fluent_command_builder/command_builders/mstest_2010.rb +0 -127
  86. data/lib/fluent_command_builder/command_builders/netsh_2008.rb +0 -408
  87. data/lib/fluent_command_builder/command_builders/tf_2010.rb +0 -2155
  88. data/lib/fluent_command_builder/command_builders/tf_tee_2010.rb +0 -1978
@@ -1,129 +1,129 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + '/../command_base')
2
- require File.expand_path(File.dirname(__FILE__) + '/../command_builder')
2
+ require File.expand_path(File.dirname(__FILE__) + '/../underlying_builder')
3
3
 
4
4
  module FluentCommandBuilder
5
+ def msbuild_35(project_file=nil)
6
+ FluentCommandBuilder::MSBuild::V35.create(project_file) { |b| yield b if block_given? }
7
+ end
5
8
  module MSBuild
6
9
  module V35
7
- COMMAND_NAME = 'MSBuild'
10
+ def self.create(project_file=nil)
11
+ b = UnderlyingBuilder.new FluentCommandBuilder::MSBuild::COMMAND_NAME
12
+ c = MSBuild.new(b, project_file)
13
+ yield b if block_given?
14
+ c
15
+ end
16
+ def msbuild(project_file=nil)
17
+ FluentCommandBuilder::MSBuild::V35.create(project_file) { |b| yield b if block_given? }
18
+ end
8
19
  class MSBuild < CommandBase
9
- def initialize(builder, project_file=nil)
10
- super builder
11
- @builder.append " #{@builder.format project_file}" unless project_file.nil?
20
+ def initialize(underlying_builder, project_file=nil)
21
+ super underlying_builder
22
+ b.append " #{b.format project_file}" unless project_file.nil?
12
23
  end
13
24
  def help
14
- @builder.append ' /help'
15
- yield @builder if block_given?
25
+ b.append ' /help'
26
+ yield b if block_given?
16
27
  self
17
28
  end
18
29
  def no_logo
19
- @builder.append ' /noLogo'
20
- yield @builder if block_given?
30
+ b.append ' /noLogo'
31
+ yield b if block_given?
21
32
  self
22
33
  end
23
34
  def version
24
- @builder.append ' /version'
25
- yield @builder if block_given?
35
+ b.append ' /version'
36
+ yield b if block_given?
26
37
  self
27
38
  end
28
39
  def file(file)
29
- @builder.append " @#{@builder.format file}"
30
- yield @builder if block_given?
40
+ b.append " @#{b.format file}"
41
+ yield b if block_given?
31
42
  self
32
43
  end
33
44
  def no_auto_response
34
- @builder.append ' /noAutoResponse'
35
- yield @builder if block_given?
45
+ b.append ' /noAutoResponse'
46
+ yield b if block_given?
36
47
  self
37
48
  end
38
49
  def target(target)
39
- @builder.append " /target:#{@builder.format target, ';'}"
40
- yield @builder if block_given?
50
+ b.append " /target:#{b.format target, ';'}"
51
+ yield b if block_given?
41
52
  self
42
53
  end
43
54
  def property(property)
44
- @builder.append " /property:#{@builder.format property, ';', '='}"
45
- yield @builder if block_given?
55
+ b.append " /property:#{b.format property, ';', '='}"
56
+ yield b if block_given?
46
57
  self
47
58
  end
48
59
  def logger(logger)
49
- @builder.append " /logger:#{@builder.format logger}"
50
- yield @builder if block_given?
60
+ b.append " /logger:#{b.format logger}"
61
+ yield b if block_given?
51
62
  self
52
63
  end
53
64
  def distributed_logger(logger)
54
- @builder.append " /distributedLogger:#{@builder.format logger}"
55
- yield @builder if block_given?
65
+ b.append " /distributedLogger:#{b.format logger}"
66
+ yield b if block_given?
56
67
  self
57
68
  end
58
69
  def console_logger_parameters(parameters)
59
- @builder.append " /consoleLoggerParameters:#{@builder.format parameters}"
60
- yield @builder if block_given?
70
+ b.append " /consoleLoggerParameters:#{b.format parameters}"
71
+ yield b if block_given?
61
72
  self
62
73
  end
63
74
  def verbosity(level)
64
- @builder.append " /verbosity:#{@builder.format level}"
65
- yield @builder if block_given?
75
+ b.append " /verbosity:#{b.format level}"
76
+ yield b if block_given?
66
77
  self
67
78
  end
68
79
  def no_console_logger
69
- @builder.append ' /noConsoleLogger'
70
- yield @builder if block_given?
80
+ b.append ' /noConsoleLogger'
81
+ yield b if block_given?
71
82
  self
72
83
  end
73
84
  def validate(schema=nil)
74
- @builder.append ' /validate'
75
- @builder.append ":#{@builder.format schema}" unless schema.nil?
76
- yield @builder if block_given?
85
+ b.append ' /validate'
86
+ b.append ":#{b.format schema}" unless schema.nil?
87
+ yield b if block_given?
77
88
  self
78
89
  end
79
90
  def max_cpu_count(number)
80
- @builder.append " /maxCpuCount:#{@builder.format number}"
81
- yield @builder if block_given?
91
+ b.append " /maxCpuCount:#{b.format number}"
92
+ yield b if block_given?
82
93
  self
83
94
  end
84
95
  def ignore_project_extensions(extensions)
85
- @builder.append " /ignoreProjectExtensions:#{@builder.format extensions, ';'}"
86
- yield @builder if block_given?
96
+ b.append " /ignoreProjectExtensions:#{b.format extensions, ';'}"
97
+ yield b if block_given?
87
98
  self
88
99
  end
89
100
  def file_logger
90
- @builder.append ' /fileLogger'
91
- yield @builder if block_given?
101
+ b.append ' /fileLogger'
102
+ yield b if block_given?
92
103
  self
93
104
  end
94
105
  def distributed_file_logger
95
- @builder.append ' /distributedFileLogger'
96
- yield @builder if block_given?
106
+ b.append ' /distributedFileLogger'
107
+ yield b if block_given?
97
108
  self
98
109
  end
99
110
  def file_logger_parameters(parameters)
100
- @builder.append " /fileLoggerParameters:#{@builder.format parameters, ';', '='}"
101
- yield @builder if block_given?
111
+ b.append " /fileLoggerParameters:#{b.format parameters, ';', '='}"
112
+ yield b if block_given?
102
113
  self
103
114
  end
104
115
  def tools_version(version)
105
- @builder.append " /toolsVersion:#{@builder.format version}"
106
- yield @builder if block_given?
116
+ b.append " /toolsVersion:#{b.format version}"
117
+ yield b if block_given?
107
118
  self
108
119
  end
109
120
  def node_reuse(parameters)
110
- @builder.append " /nodeReuse:#{@builder.format parameters}"
111
- yield @builder if block_given?
121
+ b.append " /nodeReuse:#{b.format parameters}"
122
+ yield b if block_given?
112
123
  self
113
124
  end
114
125
  end
115
- def msbuild(project_file=nil)
116
- builder = CommandBuilder.new COMMAND_NAME
117
- command = MSBuild.new builder, project_file
118
- yield builder if block_given?
119
- command
120
- end
126
+
121
127
  end
122
128
  end
123
- def msbuild_35(project_file=nil)
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
128
- end
129
- end
129
+ end
@@ -1,132 +1,132 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + '/../command_base')
2
- require File.expand_path(File.dirname(__FILE__) + '/../command_builder')
2
+ require File.expand_path(File.dirname(__FILE__) + '/../underlying_builder')
3
3
 
4
4
  module FluentCommandBuilder
5
+ def msbuild_40(project_file=nil)
6
+ FluentCommandBuilder::MSBuild::V40.create(project_file) { |b| yield b if block_given? }
7
+ end
5
8
  module MSBuild
6
9
  module V40
7
- COMMAND_NAME = 'MSBuild'
10
+ def self.create(project_file=nil)
11
+ b = UnderlyingBuilder.new FluentCommandBuilder::MSBuild::COMMAND_NAME
12
+ c = MSBuild.new(b, project_file)
13
+ yield b if block_given?
14
+ c
15
+ end
16
+ def msbuild(project_file=nil)
17
+ FluentCommandBuilder::MSBuild::V40.create(project_file) { |b| yield b if block_given? }
18
+ end
8
19
  class MSBuild < CommandBase
9
- def initialize(builder, project_file=nil)
10
- super builder
11
- @builder.append " #{@builder.format project_file}" unless project_file.nil?
20
+ def initialize(underlying_builder, project_file=nil)
21
+ super underlying_builder
22
+ b.append " #{b.format project_file}" unless project_file.nil?
12
23
  end
13
24
  def help
14
- @builder.append ' /help'
15
- yield @builder if block_given?
25
+ b.append ' /help'
26
+ yield b if block_given?
16
27
  self
17
28
  end
18
29
  def no_logo
19
- @builder.append ' /noLogo'
20
- yield @builder if block_given?
30
+ b.append ' /noLogo'
31
+ yield b if block_given?
21
32
  self
22
33
  end
23
34
  def version
24
- @builder.append ' /version'
25
- yield @builder if block_given?
35
+ b.append ' /version'
36
+ yield b if block_given?
26
37
  self
27
38
  end
28
39
  def file(file)
29
- @builder.append " @#{@builder.format file}"
30
- yield @builder if block_given?
40
+ b.append " @#{b.format file}"
41
+ yield b if block_given?
31
42
  self
32
43
  end
33
44
  def no_auto_response
34
- @builder.append ' /noAutoResponse'
35
- yield @builder if block_given?
45
+ b.append ' /noAutoResponse'
46
+ yield b if block_given?
36
47
  self
37
48
  end
38
49
  def target(target)
39
- @builder.append " /target:#{@builder.format target, ';'}"
40
- yield @builder if block_given?
50
+ b.append " /target:#{b.format target, ';'}"
51
+ yield b if block_given?
41
52
  self
42
53
  end
43
54
  def property(property)
44
- @builder.append " /property:#{@builder.format property, ';', '='}"
45
- yield @builder if block_given?
55
+ b.append " /property:#{b.format property, ';', '='}"
56
+ yield b if block_given?
46
57
  self
47
58
  end
48
59
  def logger(logger)
49
- @builder.append " /logger:#{@builder.format logger}"
50
- yield @builder if block_given?
60
+ b.append " /logger:#{b.format logger}"
61
+ yield b if block_given?
51
62
  self
52
63
  end
53
64
  def distributed_logger(logger)
54
- @builder.append " /distributedLogger:#{@builder.format logger}"
55
- yield @builder if block_given?
65
+ b.append " /distributedLogger:#{b.format logger}"
66
+ yield b if block_given?
56
67
  self
57
68
  end
58
69
  def console_logger_parameters(parameters)
59
- @builder.append " /consoleLoggerParameters:#{@builder.format parameters}"
60
- yield @builder if block_given?
70
+ b.append " /consoleLoggerParameters:#{b.format parameters}"
71
+ yield b if block_given?
61
72
  self
62
73
  end
63
74
  def verbosity(level)
64
- @builder.append " /verbosity:#{@builder.format level}"
65
- yield @builder if block_given?
75
+ b.append " /verbosity:#{b.format level}"
76
+ yield b if block_given?
66
77
  self
67
78
  end
68
79
  def no_console_logger
69
- @builder.append ' /noConsoleLogger'
70
- yield @builder if block_given?
80
+ b.append ' /noConsoleLogger'
81
+ yield b if block_given?
71
82
  self
72
83
  end
73
84
  def validate(schema=nil)
74
- @builder.append ' /validate'
75
- @builder.append ":#{@builder.format schema}" unless schema.nil?
76
- yield @builder if block_given?
85
+ b.append ' /validate'
86
+ b.append ":#{b.format schema}" unless schema.nil?
87
+ yield b if block_given?
77
88
  self
78
89
  end
79
90
  def max_cpu_count(number)
80
- @builder.append " /maxCpuCount:#{@builder.format number}"
81
- yield @builder if block_given?
91
+ b.append " /maxCpuCount:#{b.format number}"
92
+ yield b if block_given?
82
93
  self
83
94
  end
84
95
  def ignore_project_extensions(extensions)
85
- @builder.append " /ignoreProjectExtensions:#{@builder.format extensions, ';'}"
86
- yield @builder if block_given?
96
+ b.append " /ignoreProjectExtensions:#{b.format extensions, ';'}"
97
+ yield b if block_given?
87
98
  self
88
99
  end
89
100
  def file_logger(n=nil)
90
- @builder.append ' /fileLogger'
91
- @builder.append "#{@builder.format n}" unless n.nil?
92
- yield @builder if block_given?
101
+ b.append ' /fileLogger'
102
+ b.append "#{b.format n}" unless n.nil?
103
+ yield b if block_given?
93
104
  self
94
105
  end
95
106
  def distributed_file_logger
96
- @builder.append ' /distributedFileLogger'
97
- yield @builder if block_given?
107
+ b.append ' /distributedFileLogger'
108
+ yield b if block_given?
98
109
  self
99
110
  end
100
111
  def file_logger_parameters(parameters, n=nil)
101
- @builder.append ' /fileLoggerParameters'
102
- @builder.append "#{@builder.format n}" unless n.nil?
103
- @builder.append ":#{@builder.format parameters, ';', '='}"
104
- yield @builder if block_given?
112
+ b.append ' /fileLoggerParameters'
113
+ b.append "#{b.format n}" unless n.nil?
114
+ b.append ":#{b.format parameters, ';', '='}"
115
+ yield b if block_given?
105
116
  self
106
117
  end
107
118
  def tools_version(version)
108
- @builder.append " /toolsVersion:#{@builder.format version}"
109
- yield @builder if block_given?
119
+ b.append " /toolsVersion:#{b.format version}"
120
+ yield b if block_given?
110
121
  self
111
122
  end
112
123
  def node_reuse(parameters)
113
- @builder.append " /nodeReuse:#{@builder.format parameters}"
114
- yield @builder if block_given?
124
+ b.append " /nodeReuse:#{b.format parameters}"
125
+ yield b if block_given?
115
126
  self
116
127
  end
117
128
  end
118
- def msbuild(project_file=nil)
119
- builder = CommandBuilder.new COMMAND_NAME
120
- command = MSBuild.new builder, project_file
121
- yield builder if block_given?
122
- command
123
- end
129
+
124
130
  end
125
131
  end
126
- def msbuild_40(project_file=nil)
127
- builder = CommandBuilder.new MSBuild::V40::COMMAND_NAME
128
- command = MSBuild::V40::MSBuild.new builder, project_file
129
- yield builder if block_given?
130
- command
131
- end
132
- end
132
+ end
@@ -0,0 +1,17 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/../underlying_builder')
2
+ require File.expand_path(File.dirname(__FILE__) + '/../util')
3
+
4
+ module FluentCommandBuilder
5
+ def msdeploy(&block)
6
+ MSDeploy.create &block
7
+ end
8
+ module MSDeploy
9
+ COMMAND_NAME = 'MSDeploy'
10
+ def self.create
11
+ b = UnderlyingBuilder.new FluentCommandBuilder::MSDeploy::COMMAND_NAME
12
+ c = version_module(MSDeploy).create b
13
+ yield b if block_given?
14
+ c
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,177 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/../command_base')
2
+ require File.expand_path(File.dirname(__FILE__) + '/../underlying_builder')
3
+
4
+ module FluentCommandBuilder
5
+ def msdeploy_71
6
+ FluentCommandBuilder::MSDeploy::V71.create { |b| yield b if block_given? }
7
+ end
8
+ module MSDeploy
9
+ module V71
10
+ def self.create
11
+ b = UnderlyingBuilder.new FluentCommandBuilder::MSDeploy::COMMAND_NAME
12
+ c = MSDeploy.new(b)
13
+ yield b if block_given?
14
+ c
15
+ end
16
+ def msdeploy
17
+ FluentCommandBuilder::MSDeploy::V71.create { |b| yield b if block_given? }
18
+ end
19
+ class MSDeploy < CommandBase
20
+ def initialize(underlying_builder)
21
+ super underlying_builder
22
+ end
23
+ def allow_untrusted(bool)
24
+ b.append " -allowUntrusted:#{b.format bool}"
25
+ yield b if block_given?
26
+ self
27
+ end
28
+ def app_host_config_dir(path)
29
+ b.append " -appHostConfigDir:#{b.format path}"
30
+ yield b if block_given?
31
+ self
32
+ end
33
+ def declare_param(param)
34
+ b.append " -declareParam:#{b.format param, ',', '='}"
35
+ yield b if block_given?
36
+ self
37
+ end
38
+ def declare_param_file(xml_file)
39
+ b.append " -declareParamFile:#{b.format xml_file}"
40
+ yield b if block_given?
41
+ self
42
+ end
43
+ def dest(provider)
44
+ b.append " -dest:#{b.format provider}"
45
+ yield b if block_given?
46
+ self
47
+ end
48
+ def disable_link(link_extension)
49
+ b.append " -disableLink:#{b.format link_extension}"
50
+ yield b if block_given?
51
+ self
52
+ end
53
+ def disable_rule(rule)
54
+ b.append " -disableRule:#{b.format rule, ','}"
55
+ yield b if block_given?
56
+ self
57
+ end
58
+ def disable_skip_directive(skip_directive_name)
59
+ b.append " -disableSkipDirective:#{b.format skip_directive_name}"
60
+ yield b if block_given?
61
+ self
62
+ end
63
+ def enable_link(link_extension)
64
+ b.append " -enableLink:#{b.format link_extension}"
65
+ yield b if block_given?
66
+ self
67
+ end
68
+ def enable_rule(rule)
69
+ b.append " -enableRule:#{b.format rule, ','}"
70
+ yield b if block_given?
71
+ self
72
+ end
73
+ def enable_skip_directive(skip_directive_name)
74
+ b.append " -enableSkipDirective:#{b.format skip_directive_name}"
75
+ yield b if block_given?
76
+ self
77
+ end
78
+ def post_sync(command)
79
+ b.append " -postSync:#{b.format command}"
80
+ yield b if block_given?
81
+ self
82
+ end
83
+ def pre_sync(command)
84
+ b.append " -preSync:#{b.format command}"
85
+ yield b if block_given?
86
+ self
87
+ end
88
+ def remove_param(param)
89
+ b.append " -removeParam:#{b.format param}"
90
+ yield b if block_given?
91
+ self
92
+ end
93
+ def replace(arg)
94
+ b.append " -replace:#{b.format arg}"
95
+ yield b if block_given?
96
+ self
97
+ end
98
+ def retry_attempts(number)
99
+ b.append " -retryAttempts:#{b.format number}"
100
+ yield b if block_given?
101
+ self
102
+ end
103
+ def retry_interval(milliseconds)
104
+ b.append " -retryInterval:#{b.format milliseconds}"
105
+ yield b if block_given?
106
+ self
107
+ end
108
+ def set_param(param)
109
+ b.append " -setParam:#{b.format param, ',', '='}"
110
+ yield b if block_given?
111
+ self
112
+ end
113
+ def set_param_file(xml_file)
114
+ b.append " -setParamFile:#{b.format xml_file}"
115
+ yield b if block_given?
116
+ self
117
+ end
118
+ def show_secure
119
+ b.append ' -showSecure'
120
+ yield b if block_given?
121
+ self
122
+ end
123
+ def skip(arg)
124
+ b.append " -skip:#{b.format arg}"
125
+ yield b if block_given?
126
+ self
127
+ end
128
+ def source(provider)
129
+ b.append " -source:#{b.format provider}"
130
+ yield b if block_given?
131
+ self
132
+ end
133
+ def unicode
134
+ b.append ' -unicode'
135
+ yield b if block_given?
136
+ self
137
+ end
138
+ def use_check_sum
139
+ b.append ' -useCheckSum'
140
+ yield b if block_given?
141
+ self
142
+ end
143
+ def verb(verb_name)
144
+ b.append " -verb:#{b.format verb_name}"
145
+ yield b if block_given?
146
+ self
147
+ end
148
+ def verbose
149
+ b.append ' -verbose'
150
+ yield b if block_given?
151
+ self
152
+ end
153
+ def web_server_dir(path)
154
+ b.append " -webServerDir:#{b.format path}"
155
+ yield b if block_given?
156
+ self
157
+ end
158
+ def whatif
159
+ b.append ' -whatif'
160
+ yield b if block_given?
161
+ self
162
+ end
163
+ def xml
164
+ b.append ' -xml'
165
+ yield b if block_given?
166
+ self
167
+ end
168
+ def xpath(path)
169
+ b.append " -xpath:#{b.format path}"
170
+ yield b if block_given?
171
+ self
172
+ end
173
+ end
174
+
175
+ end
176
+ end
177
+ end
@@ -0,0 +1,17 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/../underlying_builder')
2
+ require File.expand_path(File.dirname(__FILE__) + '/../util')
3
+
4
+ module FluentCommandBuilder
5
+ def mstest(&block)
6
+ MSTest.create &block
7
+ end
8
+ module MSTest
9
+ COMMAND_NAME = 'MSTest'
10
+ def self.create
11
+ b = UnderlyingBuilder.new FluentCommandBuilder::MSTest::COMMAND_NAME
12
+ c = version_module(MSTest).create b
13
+ yield b if block_given?
14
+ c
15
+ end
16
+ end
17
+ end