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,198 +1,203 @@
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 dev_appserver_python_16(application_root=nil)
6
+ FluentCommandBuilder::DevAppserverPython::V16.create(application_root) { |b| yield b if block_given? }
7
+ end
5
8
  module DevAppserverPython
6
9
  module V16
7
- COMMAND_NAME = 'dev_appserver.py'
10
+ def self.create(application_root=nil)
11
+ b = UnderlyingBuilder.new FluentCommandBuilder::DevAppserverPython::COMMAND_NAME
12
+ c = DevAppserverPython.new(b, application_root)
13
+ yield b if block_given?
14
+ c
15
+ end
16
+ def dev_appserver_python(application_root=nil)
17
+ FluentCommandBuilder::DevAppserverPython::V16.create(application_root) { |b| yield b if block_given? }
18
+ end
8
19
  class DevAppserverPython < CommandBase
9
- def initialize(builder, application_root)
10
- super builder
11
- @builder.append " #{@builder.format application_root}"
20
+ def initialize(underlying_builder, application_root=nil)
21
+ super underlying_builder
22
+ b.append " #{b.format application_root}" unless application_root.nil?
23
+ end
24
+ def application_root(application_root)
25
+ b.append " #{b.format application_root}"
26
+ yield b if block_given?
27
+ self
12
28
  end
13
29
  def address(address)
14
- @builder.append " --address=#{@builder.format address}"
15
- yield @builder if block_given?
30
+ b.append " --address=#{b.format address}"
31
+ yield b if block_given?
16
32
  self
17
33
  end
18
34
  def clear_datastore
19
- @builder.append ' --clear_datastore'
20
- yield @builder if block_given?
35
+ b.append ' --clear_datastore'
36
+ yield b if block_given?
21
37
  self
22
38
  end
23
39
  def debug
24
- @builder.append ' --debug'
25
- yield @builder if block_given?
40
+ b.append ' --debug'
41
+ yield b if block_given?
26
42
  self
27
43
  end
28
44
  def help
29
- @builder.append ' --help'
30
- yield @builder if block_given?
45
+ b.append ' --help'
46
+ yield b if block_given?
31
47
  self
32
48
  end
33
49
  def port(port)
34
- @builder.append " --port=#{@builder.format port}"
35
- yield @builder if block_given?
50
+ b.append " --port=#{b.format port}"
51
+ yield b if block_given?
36
52
  self
37
53
  end
38
54
  def allow_skipped_files
39
- @builder.append ' --allow_skipped_files'
40
- yield @builder if block_given?
55
+ b.append ' --allow_skipped_files'
56
+ yield b if block_given?
41
57
  self
42
58
  end
43
59
  def auth_domain
44
- @builder.append ' --auth_domain'
45
- yield @builder if block_given?
60
+ b.append ' --auth_domain'
61
+ yield b if block_given?
46
62
  self
47
63
  end
48
64
  def backends
49
- @builder.append ' --backends'
50
- yield @builder if block_given?
65
+ b.append ' --backends'
66
+ yield b if block_given?
51
67
  self
52
68
  end
53
69
  def blobstore_path(dir)
54
- @builder.append " --blobstore_path=#{@builder.format dir}"
55
- yield @builder if block_given?
70
+ b.append " --blobstore_path=#{b.format dir}"
71
+ yield b if block_given?
56
72
  self
57
73
  end
58
74
  def clear_prospective_search
59
- @builder.append ' --clear_prospective_search'
60
- yield @builder if block_given?
75
+ b.append ' --clear_prospective_search'
76
+ yield b if block_given?
61
77
  self
62
78
  end
63
79
  def datastore_path(ds_file)
64
- @builder.append " --datastore_path=#{@builder.format ds_file}"
65
- yield @builder if block_given?
80
+ b.append " --datastore_path=#{b.format ds_file}"
81
+ yield b if block_given?
66
82
  self
67
83
  end
68
84
  def debug_imports
69
- @builder.append ' --debug_imports'
70
- yield @builder if block_given?
85
+ b.append ' --debug_imports'
86
+ yield b if block_given?
71
87
  self
72
88
  end
73
89
  def default_partition
74
- @builder.append ' --default_partition'
75
- yield @builder if block_given?
90
+ b.append ' --default_partition'
91
+ yield b if block_given?
76
92
  self
77
93
  end
78
94
  def disable_static_caching
79
- @builder.append ' --disable_static_caching'
80
- yield @builder if block_given?
95
+ b.append ' --disable_static_caching'
96
+ yield b if block_given?
81
97
  self
82
98
  end
83
99
  def disable_task_running
84
- @builder.append ' --disable_task_running'
85
- yield @builder if block_given?
100
+ b.append ' --disable_task_running'
101
+ yield b if block_given?
86
102
  self
87
103
  end
88
104
  def enable_sendmail
89
- @builder.append ' --enable_sendmail'
90
- yield @builder if block_given?
105
+ b.append ' --enable_sendmail'
106
+ yield b if block_given?
91
107
  self
92
108
  end
93
109
  def high_replication
94
- @builder.append ' --high_replication'
95
- yield @builder if block_given?
110
+ b.append ' --high_replication'
111
+ yield b if block_given?
96
112
  self
97
113
  end
98
114
  def history_path(path)
99
- @builder.append " --history_path=#{@builder.format path}"
100
- yield @builder if block_given?
115
+ b.append " --history_path=#{b.format path}"
116
+ yield b if block_given?
101
117
  self
102
118
  end
103
119
  def multiprocess_min_port
104
- @builder.append ' --multiprocess_min_port'
105
- yield @builder if block_given?
120
+ b.append ' --multiprocess_min_port'
121
+ yield b if block_given?
106
122
  self
107
123
  end
108
124
  def mysql_host(hostname)
109
- @builder.append " --mysql_host=#{@builder.format hostname}"
110
- yield @builder if block_given?
125
+ b.append " --mysql_host=#{b.format hostname}"
126
+ yield b if block_given?
111
127
  self
112
128
  end
113
129
  def mysql_port(port)
114
- @builder.append " --mysql_port=#{@builder.format port}"
115
- yield @builder if block_given?
130
+ b.append " --mysql_port=#{b.format port}"
131
+ yield b if block_given?
116
132
  self
117
133
  end
118
134
  def mysql_user(user)
119
- @builder.append " --mysql_user=#{@builder.format user}"
120
- yield @builder if block_given?
135
+ b.append " --mysql_user=#{b.format user}"
136
+ yield b if block_given?
121
137
  self
122
138
  end
123
139
  def mysql_password(password)
124
- @builder.append " --mysql_password=#{@builder.format password}"
125
- yield @builder if block_given?
140
+ b.append " --mysql_password=#{b.format password}"
141
+ yield b if block_given?
126
142
  self
127
143
  end
128
144
  def mysql_socket(path)
129
- @builder.append " --mysql_socket=#{@builder.format path}"
130
- yield @builder if block_given?
145
+ b.append " --mysql_socket=#{b.format path}"
146
+ yield b if block_given?
131
147
  self
132
148
  end
133
149
  def persist_logs
134
- @builder.append ' --persist_logs'
135
- yield @builder if block_given?
150
+ b.append ' --persist_logs'
151
+ yield b if block_given?
136
152
  self
137
153
  end
138
154
  def require_indexes
139
- @builder.append ' --require_indexes'
140
- yield @builder if block_given?
155
+ b.append ' --require_indexes'
156
+ yield b if block_given?
141
157
  self
142
158
  end
143
159
  def show_mail_body
144
- @builder.append ' --show_mail_body'
145
- yield @builder if block_given?
160
+ b.append ' --show_mail_body'
161
+ yield b if block_given?
146
162
  self
147
163
  end
148
164
  def skip_sdk_update_check
149
- @builder.append ' --skip_sdk_update_check'
150
- yield @builder if block_given?
165
+ b.append ' --skip_sdk_update_check'
166
+ yield b if block_given?
151
167
  self
152
168
  end
153
169
  def smtp_host(hostname)
154
- @builder.append " --smtp_host=#{@builder.format hostname}"
155
- yield @builder if block_given?
170
+ b.append " --smtp_host=#{b.format hostname}"
171
+ yield b if block_given?
156
172
  self
157
173
  end
158
174
  def smtp_port(port)
159
- @builder.append " --smtp_port=#{@builder.format port}"
160
- yield @builder if block_given?
175
+ b.append " --smtp_port=#{b.format port}"
176
+ yield b if block_given?
161
177
  self
162
178
  end
163
179
  def smtp_user(user)
164
- @builder.append " --smtp_user=#{@builder.format user}"
165
- yield @builder if block_given?
180
+ b.append " --smtp_user=#{b.format user}"
181
+ yield b if block_given?
166
182
  self
167
183
  end
168
184
  def smtp_password(password)
169
- @builder.append " --smtp_password=#{@builder.format password}"
170
- yield @builder if block_given?
185
+ b.append " --smtp_password=#{b.format password}"
186
+ yield b if block_given?
171
187
  self
172
188
  end
173
189
  def task_retry_seconds
174
- @builder.append ' --task_retry_seconds'
175
- yield @builder if block_given?
190
+ b.append ' --task_retry_seconds'
191
+ yield b if block_given?
176
192
  self
177
193
  end
178
194
  def use_sqlite
179
- @builder.append ' --use_sqlite'
180
- yield @builder if block_given?
195
+ b.append ' --use_sqlite'
196
+ yield b if block_given?
181
197
  self
182
198
  end
183
199
  end
184
- def dev_appserver_python(application_root)
185
- builder = CommandBuilder.new COMMAND_NAME
186
- command = DevAppserverPython.new builder, application_root
187
- yield builder if block_given?
188
- command
189
- end
200
+
190
201
  end
191
202
  end
192
- def dev_appserver_python_16(application_root)
193
- builder = CommandBuilder.new DevAppserverPython::V16::COMMAND_NAME
194
- command = DevAppserverPython::V16::DevAppserverPython.new builder, application_root
195
- yield builder if block_given?
196
- command
197
- end
198
- end
203
+ end
@@ -1,198 +1,203 @@
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 dev_appserver_python_17(application_root=nil)
6
+ FluentCommandBuilder::DevAppserverPython::V17.create(application_root) { |b| yield b if block_given? }
7
+ end
5
8
  module DevAppserverPython
6
9
  module V17
7
- COMMAND_NAME = 'dev_appserver.py'
10
+ def self.create(application_root=nil)
11
+ b = UnderlyingBuilder.new FluentCommandBuilder::DevAppserverPython::COMMAND_NAME
12
+ c = DevAppserverPython.new(b, application_root)
13
+ yield b if block_given?
14
+ c
15
+ end
16
+ def dev_appserver_python(application_root=nil)
17
+ FluentCommandBuilder::DevAppserverPython::V17.create(application_root) { |b| yield b if block_given? }
18
+ end
8
19
  class DevAppserverPython < CommandBase
9
- def initialize(builder, application_root)
10
- super builder
11
- @builder.append " #{@builder.format application_root}"
20
+ def initialize(underlying_builder, application_root=nil)
21
+ super underlying_builder
22
+ b.append " #{b.format application_root}" unless application_root.nil?
23
+ end
24
+ def application_root(application_root)
25
+ b.append " #{b.format application_root}"
26
+ yield b if block_given?
27
+ self
12
28
  end
13
29
  def address(address)
14
- @builder.append " --address=#{@builder.format address}"
15
- yield @builder if block_given?
30
+ b.append " --address=#{b.format address}"
31
+ yield b if block_given?
16
32
  self
17
33
  end
18
34
  def clear_datastore
19
- @builder.append ' --clear_datastore'
20
- yield @builder if block_given?
35
+ b.append ' --clear_datastore'
36
+ yield b if block_given?
21
37
  self
22
38
  end
23
39
  def debug
24
- @builder.append ' --debug'
25
- yield @builder if block_given?
40
+ b.append ' --debug'
41
+ yield b if block_given?
26
42
  self
27
43
  end
28
44
  def help
29
- @builder.append ' --help'
30
- yield @builder if block_given?
45
+ b.append ' --help'
46
+ yield b if block_given?
31
47
  self
32
48
  end
33
49
  def port(port)
34
- @builder.append " --port=#{@builder.format port}"
35
- yield @builder if block_given?
50
+ b.append " --port=#{b.format port}"
51
+ yield b if block_given?
36
52
  self
37
53
  end
38
54
  def allow_skipped_files
39
- @builder.append ' --allow_skipped_files'
40
- yield @builder if block_given?
55
+ b.append ' --allow_skipped_files'
56
+ yield b if block_given?
41
57
  self
42
58
  end
43
59
  def auth_domain
44
- @builder.append ' --auth_domain'
45
- yield @builder if block_given?
60
+ b.append ' --auth_domain'
61
+ yield b if block_given?
46
62
  self
47
63
  end
48
64
  def backends
49
- @builder.append ' --backends'
50
- yield @builder if block_given?
65
+ b.append ' --backends'
66
+ yield b if block_given?
51
67
  self
52
68
  end
53
69
  def blobstore_path(dir)
54
- @builder.append " --blobstore_path=#{@builder.format dir}"
55
- yield @builder if block_given?
70
+ b.append " --blobstore_path=#{b.format dir}"
71
+ yield b if block_given?
56
72
  self
57
73
  end
58
74
  def clear_prospective_search
59
- @builder.append ' --clear_prospective_search'
60
- yield @builder if block_given?
75
+ b.append ' --clear_prospective_search'
76
+ yield b if block_given?
61
77
  self
62
78
  end
63
79
  def datastore_path(ds_file)
64
- @builder.append " --datastore_path=#{@builder.format ds_file}"
65
- yield @builder if block_given?
80
+ b.append " --datastore_path=#{b.format ds_file}"
81
+ yield b if block_given?
66
82
  self
67
83
  end
68
84
  def debug_imports
69
- @builder.append ' --debug_imports'
70
- yield @builder if block_given?
85
+ b.append ' --debug_imports'
86
+ yield b if block_given?
71
87
  self
72
88
  end
73
89
  def default_partition
74
- @builder.append ' --default_partition'
75
- yield @builder if block_given?
90
+ b.append ' --default_partition'
91
+ yield b if block_given?
76
92
  self
77
93
  end
78
94
  def disable_static_caching
79
- @builder.append ' --disable_static_caching'
80
- yield @builder if block_given?
95
+ b.append ' --disable_static_caching'
96
+ yield b if block_given?
81
97
  self
82
98
  end
83
99
  def disable_task_running
84
- @builder.append ' --disable_task_running'
85
- yield @builder if block_given?
100
+ b.append ' --disable_task_running'
101
+ yield b if block_given?
86
102
  self
87
103
  end
88
104
  def enable_sendmail
89
- @builder.append ' --enable_sendmail'
90
- yield @builder if block_given?
105
+ b.append ' --enable_sendmail'
106
+ yield b if block_given?
91
107
  self
92
108
  end
93
109
  def high_replication
94
- @builder.append ' --high_replication'
95
- yield @builder if block_given?
110
+ b.append ' --high_replication'
111
+ yield b if block_given?
96
112
  self
97
113
  end
98
114
  def history_path(path)
99
- @builder.append " --history_path=#{@builder.format path}"
100
- yield @builder if block_given?
115
+ b.append " --history_path=#{b.format path}"
116
+ yield b if block_given?
101
117
  self
102
118
  end
103
119
  def multiprocess_min_port
104
- @builder.append ' --multiprocess_min_port'
105
- yield @builder if block_given?
120
+ b.append ' --multiprocess_min_port'
121
+ yield b if block_given?
106
122
  self
107
123
  end
108
124
  def mysql_host(hostname)
109
- @builder.append " --mysql_host=#{@builder.format hostname}"
110
- yield @builder if block_given?
125
+ b.append " --mysql_host=#{b.format hostname}"
126
+ yield b if block_given?
111
127
  self
112
128
  end
113
129
  def mysql_port(port)
114
- @builder.append " --mysql_port=#{@builder.format port}"
115
- yield @builder if block_given?
130
+ b.append " --mysql_port=#{b.format port}"
131
+ yield b if block_given?
116
132
  self
117
133
  end
118
134
  def mysql_user(user)
119
- @builder.append " --mysql_user=#{@builder.format user}"
120
- yield @builder if block_given?
135
+ b.append " --mysql_user=#{b.format user}"
136
+ yield b if block_given?
121
137
  self
122
138
  end
123
139
  def mysql_password(password)
124
- @builder.append " --mysql_password=#{@builder.format password}"
125
- yield @builder if block_given?
140
+ b.append " --mysql_password=#{b.format password}"
141
+ yield b if block_given?
126
142
  self
127
143
  end
128
144
  def mysql_socket(path)
129
- @builder.append " --mysql_socket=#{@builder.format path}"
130
- yield @builder if block_given?
145
+ b.append " --mysql_socket=#{b.format path}"
146
+ yield b if block_given?
131
147
  self
132
148
  end
133
149
  def persist_logs
134
- @builder.append ' --persist_logs'
135
- yield @builder if block_given?
150
+ b.append ' --persist_logs'
151
+ yield b if block_given?
136
152
  self
137
153
  end
138
154
  def require_indexes
139
- @builder.append ' --require_indexes'
140
- yield @builder if block_given?
155
+ b.append ' --require_indexes'
156
+ yield b if block_given?
141
157
  self
142
158
  end
143
159
  def show_mail_body
144
- @builder.append ' --show_mail_body'
145
- yield @builder if block_given?
160
+ b.append ' --show_mail_body'
161
+ yield b if block_given?
146
162
  self
147
163
  end
148
164
  def skip_sdk_update_check
149
- @builder.append ' --skip_sdk_update_check'
150
- yield @builder if block_given?
165
+ b.append ' --skip_sdk_update_check'
166
+ yield b if block_given?
151
167
  self
152
168
  end
153
169
  def smtp_host(hostname)
154
- @builder.append " --smtp_host=#{@builder.format hostname}"
155
- yield @builder if block_given?
170
+ b.append " --smtp_host=#{b.format hostname}"
171
+ yield b if block_given?
156
172
  self
157
173
  end
158
174
  def smtp_port(port)
159
- @builder.append " --smtp_port=#{@builder.format port}"
160
- yield @builder if block_given?
175
+ b.append " --smtp_port=#{b.format port}"
176
+ yield b if block_given?
161
177
  self
162
178
  end
163
179
  def smtp_user(user)
164
- @builder.append " --smtp_user=#{@builder.format user}"
165
- yield @builder if block_given?
180
+ b.append " --smtp_user=#{b.format user}"
181
+ yield b if block_given?
166
182
  self
167
183
  end
168
184
  def smtp_password(password)
169
- @builder.append " --smtp_password=#{@builder.format password}"
170
- yield @builder if block_given?
185
+ b.append " --smtp_password=#{b.format password}"
186
+ yield b if block_given?
171
187
  self
172
188
  end
173
189
  def task_retry_seconds
174
- @builder.append ' --task_retry_seconds'
175
- yield @builder if block_given?
190
+ b.append ' --task_retry_seconds'
191
+ yield b if block_given?
176
192
  self
177
193
  end
178
194
  def use_sqlite
179
- @builder.append ' --use_sqlite'
180
- yield @builder if block_given?
195
+ b.append ' --use_sqlite'
196
+ yield b if block_given?
181
197
  self
182
198
  end
183
199
  end
184
- def dev_appserver_python(application_root)
185
- builder = CommandBuilder.new COMMAND_NAME
186
- command = DevAppserverPython.new builder, application_root
187
- yield builder if block_given?
188
- command
189
- end
200
+
190
201
  end
191
202
  end
192
- def dev_appserver_python_17(application_root)
193
- builder = CommandBuilder.new DevAppserverPython::V17::COMMAND_NAME
194
- command = DevAppserverPython::V17::DevAppserverPython.new builder, application_root
195
- yield builder if block_given?
196
- command
197
- end
198
- end
203
+ 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 dotcover(&block)
6
+ DotCover.create &block
7
+ end
8
+ module DotCover
9
+ COMMAND_NAME = 'dotCover'
10
+ def self.create
11
+ b = UnderlyingBuilder.new FluentCommandBuilder::DotCover::COMMAND_NAME
12
+ c = version_module(DotCover).create b
13
+ yield b if block_given?
14
+ c
15
+ end
16
+ end
17
+ end