fluent_command_builder 0.9.7 → 0.9.8

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 (92) hide show
  1. data/lib/fluent_command_builder/command_builder.rb +2 -2
  2. data/lib/fluent_command_builder/command_executors/backticks_executor.rb +1 -1
  3. data/lib/fluent_command_builder/command_executors/dry_run_executor.rb +1 -1
  4. data/lib/fluent_command_builder/command_executors/rake_sh_executor.rb +1 -1
  5. data/lib/fluent_command_builder/command_executors/system_executor.rb +1 -1
  6. data/lib/fluent_command_builder/execution_context.rb +2 -2
  7. data/lib/fluent_command_builder/internal/argument_formatter.rb +1 -1
  8. data/lib/fluent_command_builder/internal/command_builder_config.rb +7 -10
  9. data/lib/fluent_command_builder/internal/path.rb +9 -3
  10. data/lib/fluent_command_builder/internal/path_validator.rb +4 -5
  11. data/lib/fluent_command_builder/internal/underlying_builder.rb +3 -3
  12. data/lib/fluent_command_builder/version_validator.rb +11 -6
  13. metadata +55 -90
  14. data/lib/fluent_command_builder/command_builders/appcfg_python.rb +0 -19
  15. data/lib/fluent_command_builder/command_builders/appcfg_python_16.rb +0 -2613
  16. data/lib/fluent_command_builder/command_builders/appcfg_python_17.rb +0 -2603
  17. data/lib/fluent_command_builder/command_builders/aspnet_compiler.rb +0 -19
  18. data/lib/fluent_command_builder/command_builders/aspnet_compiler_20.rb +0 -103
  19. data/lib/fluent_command_builder/command_builders/aspnet_compiler_40.rb +0 -103
  20. data/lib/fluent_command_builder/command_builders/bundle.rb +0 -19
  21. data/lib/fluent_command_builder/command_builders/bundle_11.rb +0 -321
  22. data/lib/fluent_command_builder/command_builders/bundle_12.rb +0 -345
  23. data/lib/fluent_command_builder/command_builders/cucumber.rb +0 -19
  24. data/lib/fluent_command_builder/command_builders/cucumber_11.rb +0 -178
  25. data/lib/fluent_command_builder/command_builders/cucumber_12.rb +0 -183
  26. data/lib/fluent_command_builder/command_builders/dev_appserver_python.rb +0 -19
  27. data/lib/fluent_command_builder/command_builders/dev_appserver_python_16.rb +0 -208
  28. data/lib/fluent_command_builder/command_builders/dev_appserver_python_17.rb +0 -208
  29. data/lib/fluent_command_builder/command_builders/dotcover.rb +0 -19
  30. data/lib/fluent_command_builder/command_builders/dotcover_10.rb +0 -69
  31. data/lib/fluent_command_builder/command_builders/dotcover_11.rb +0 -299
  32. data/lib/fluent_command_builder/command_builders/dotcover_12.rb +0 -299
  33. data/lib/fluent_command_builder/command_builders/dotcover_20.rb +0 -309
  34. data/lib/fluent_command_builder/command_builders/dotcover_21.rb +0 -309
  35. data/lib/fluent_command_builder/command_builders/dotcover_22.rb +0 -309
  36. data/lib/fluent_command_builder/command_builders/fastlinkchecker.rb +0 -19
  37. data/lib/fluent_command_builder/command_builders/fastlinkchecker_21.rb +0 -263
  38. data/lib/fluent_command_builder/command_builders/installutil.rb +0 -19
  39. data/lib/fluent_command_builder/command_builders/installutil_11.rb +0 -64
  40. data/lib/fluent_command_builder/command_builders/installutil_20.rb +0 -69
  41. data/lib/fluent_command_builder/command_builders/installutil_35.rb +0 -69
  42. data/lib/fluent_command_builder/command_builders/installutil_40.rb +0 -75
  43. data/lib/fluent_command_builder/command_builders/msbuild.rb +0 -19
  44. data/lib/fluent_command_builder/command_builders/msbuild_20.rb +0 -94
  45. data/lib/fluent_command_builder/command_builders/msbuild_30.rb +0 -94
  46. data/lib/fluent_command_builder/command_builders/msbuild_35.rb +0 -134
  47. data/lib/fluent_command_builder/command_builders/msbuild_40.rb +0 -137
  48. data/lib/fluent_command_builder/command_builders/msdeploy.rb +0 -19
  49. data/lib/fluent_command_builder/command_builders/msdeploy_71.rb +0 -182
  50. data/lib/fluent_command_builder/command_builders/mstest.rb +0 -19
  51. data/lib/fluent_command_builder/command_builders/mstest_100.rb +0 -132
  52. data/lib/fluent_command_builder/command_builders/mstest_80.rb +0 -112
  53. data/lib/fluent_command_builder/command_builders/mstest_90.rb +0 -117
  54. data/lib/fluent_command_builder/command_builders/netsh.rb +0 -19
  55. data/lib/fluent_command_builder/command_builders/netsh_61.rb +0 -413
  56. data/lib/fluent_command_builder/command_builders/nuget.rb +0 -19
  57. data/lib/fluent_command_builder/command_builders/nuget_20.rb +0 -437
  58. data/lib/fluent_command_builder/command_builders/nuget_21.rb +0 -533
  59. data/lib/fluent_command_builder/command_builders/nunit.rb +0 -19
  60. data/lib/fluent_command_builder/command_builders/nunit_25.rb +0 -153
  61. data/lib/fluent_command_builder/command_builders/nunit_26.rb +0 -193
  62. data/lib/fluent_command_builder/command_builders/rake.rb +0 -19
  63. data/lib/fluent_command_builder/command_builders/rake_09.rb +0 -156
  64. data/lib/fluent_command_builder/command_builders/rake_100.rb +0 -194
  65. data/lib/fluent_command_builder/command_builders/schtasks.rb +0 -19
  66. data/lib/fluent_command_builder/command_builders/schtasks_61.rb +0 -353
  67. data/lib/fluent_command_builder/command_builders/security_osx.rb +0 -19
  68. data/lib/fluent_command_builder/command_builders/security_osx_107.rb +0 -188
  69. data/lib/fluent_command_builder/command_builders/security_osx_108.rb +0 -188
  70. data/lib/fluent_command_builder/command_builders/sevenzip.rb +0 -19
  71. data/lib/fluent_command_builder/command_builders/sevenzip_920.rb +0 -523
  72. data/lib/fluent_command_builder/command_builders/simian.rb +0 -19
  73. data/lib/fluent_command_builder/command_builders/simian_23.rb +0 -147
  74. data/lib/fluent_command_builder/command_builders/team_foundation.rb +0 -19
  75. data/lib/fluent_command_builder/command_builders/team_foundation_100.rb +0 -2160
  76. data/lib/fluent_command_builder/command_builders/team_foundation_tee.rb +0 -19
  77. data/lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb +0 -1885
  78. data/lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb +0 -2003
  79. data/lib/fluent_command_builder/command_builders/xcodebuild.rb +0 -19
  80. data/lib/fluent_command_builder/command_builders/xcodebuild_43.rb +0 -276
  81. data/lib/fluent_command_builder/command_builders/xcodebuild_44.rb +0 -326
  82. data/lib/fluent_command_builder/command_builders/xcodebuild_45.rb +0 -331
  83. data/lib/fluent_command_builder/internal/path_finder.rb +0 -20
  84. data/lib/fluent_command_builder/internal/path_finders/unix_path_finder.rb +0 -13
  85. data/lib/fluent_command_builder/internal/path_finders/windows_path_finder.rb +0 -14
  86. data/lib/fluent_command_builder/version_detectors.rb +0 -1
  87. data/lib/fluent_command_builder/version_detectors/appengine_python_version_detector.rb +0 -23
  88. data/lib/fluent_command_builder/version_detectors/default_version_detector.rb +0 -35
  89. data/lib/fluent_command_builder/version_detectors/dot_net_framework_version_detector.rb +0 -24
  90. data/lib/fluent_command_builder/version_detectors/osx_version_detector.rb +0 -19
  91. data/lib/fluent_command_builder/version_detectors/standard_version_detector.rb +0 -30
  92. data/lib/fluent_command_builder/version_detectors/windows_version_detector.rb +0 -12
@@ -1,309 +0,0 @@
1
- # Generated code. Do not modify.
2
-
3
- require File.expand_path(File.dirname(__FILE__) + '/../internal/command_base')
4
- require File.expand_path(File.dirname(__FILE__) + '/../internal/command_builder_config')
5
- require File.expand_path(File.dirname(__FILE__) + '/../internal/underlying_builder')
6
-
7
- module FluentCommandBuilder
8
- module DotCover
9
- module V22
10
- VERSION = '2.2'
11
- @@config = CommandBuilderConfig.new FluentCommandBuilder::DotCover::COMMAND_NAME, VERSION
12
- @@config.version_detector = FluentCommandBuilder::DotCover.version_detector
13
- def configure_dotcover
14
- yield @@config
15
- @@config.validate_path
16
- @@config.validate_version
17
- end
18
- def dotcover
19
- b = UnderlyingBuilder.new @@config
20
- c = DotCover.new(b)
21
- yield b if block_given?
22
- c
23
- end
24
- class DotCover < CommandBase
25
- def initialize(underlying_builder)
26
- super underlying_builder
27
- end
28
- def analyse(configuration_file=nil)
29
- Analyse.new @b, configuration_file
30
- end
31
- def cover(configuration_file=nil)
32
- Cover.new @b, configuration_file
33
- end
34
- def delete(configuration_file=nil)
35
- Delete.new @b, configuration_file
36
- end
37
- def help(command=nil, file_name=nil)
38
- @b.append ' help'
39
- @b.append " #{@b.format command}" unless command.nil?
40
- @b.append " #{@b.format file_name}" unless file_name.nil?
41
- yield @b if block_given?
42
- self
43
- end
44
- def list(configuration_file=nil)
45
- List.new @b, configuration_file
46
- end
47
- def merge(configuration_file=nil)
48
- Merge.new @b, configuration_file
49
- end
50
- def report(configuration_file=nil)
51
- Report.new @b, configuration_file
52
- end
53
- def version(output_file_name=nil)
54
- Version.new @b, output_file_name
55
- end
56
- def zip(configuration_file=nil)
57
- Zip.new @b, configuration_file
58
- end
59
- end
60
- class Analyse < CommandBase
61
- def initialize(underlying_builder, configuration_file=nil)
62
- super underlying_builder
63
- @b.append ' analyse'
64
- @b.append " #{@b.format configuration_file}" unless configuration_file.nil?
65
- end
66
- def analyse_target_arguments(bool)
67
- @b.append " /analyseTargetArguments=#{@b.format bool}"
68
- yield @b if block_given?
69
- self
70
- end
71
- def attribute_filters(filters)
72
- @b.append " /attributeFilters=#{@b.format filters, ';'}"
73
- yield @b if block_given?
74
- self
75
- end
76
- def filters(filters)
77
- @b.append " /filters=#{@b.format filters, ';'}"
78
- yield @b if block_given?
79
- self
80
- end
81
- def inherit_console(bool)
82
- @b.append " /inheritConsole=#{@b.format bool}"
83
- yield @b if block_given?
84
- self
85
- end
86
- def log_file(log_file)
87
- @b.append " /logFile=#{@b.format log_file}"
88
- yield @b if block_given?
89
- self
90
- end
91
- def output(snapshot_path)
92
- @b.append " /output=#{@b.format snapshot_path}"
93
- yield @b if block_given?
94
- self
95
- end
96
- def report_type(report_type)
97
- @b.append " /reportType=#{@b.format report_type}"
98
- yield @b if block_given?
99
- self
100
- end
101
- def target_arguments(target_arguments)
102
- @b.append " /targetArguments=#{@b.format target_arguments}"
103
- yield @b if block_given?
104
- self
105
- end
106
- def target_executable(target_executable)
107
- @b.append " /targetExecutable=#{@b.format target_executable}"
108
- yield @b if block_given?
109
- self
110
- end
111
- def target_working_dir(target_working_dir)
112
- @b.append " /targetWorkingDir=#{@b.format target_working_dir}"
113
- yield @b if block_given?
114
- self
115
- end
116
- def temp_dir(temp_dir)
117
- @b.append " /tempDir=#{@b.format temp_dir}"
118
- yield @b if block_given?
119
- self
120
- end
121
- end
122
- class Cover < CommandBase
123
- def initialize(underlying_builder, configuration_file=nil)
124
- super underlying_builder
125
- @b.append ' cover'
126
- @b.append " #{@b.format configuration_file}" unless configuration_file.nil?
127
- end
128
- def analyse_target_arguments(bool)
129
- @b.append " /analyseTargetArguments=#{@b.format bool}"
130
- yield @b if block_given?
131
- self
132
- end
133
- def attribute_filters(filters)
134
- @b.append " /attributeFilters=#{@b.format filters, ';'}"
135
- yield @b if block_given?
136
- self
137
- end
138
- def filters(filters)
139
- @b.append " /filters=#{@b.format filters, ';'}"
140
- yield @b if block_given?
141
- self
142
- end
143
- def inherit_console(bool)
144
- @b.append " /inheritConsole=#{@b.format bool}"
145
- yield @b if block_given?
146
- self
147
- end
148
- def log_file(log_file)
149
- @b.append " /logFile=#{@b.format log_file}"
150
- yield @b if block_given?
151
- self
152
- end
153
- def output(snapshot_path)
154
- @b.append " /output=#{@b.format snapshot_path}"
155
- yield @b if block_given?
156
- self
157
- end
158
- def target_arguments(target_arguments)
159
- @b.append " /targetArguments=#{@b.format target_arguments}"
160
- yield @b if block_given?
161
- self
162
- end
163
- def target_executable(target_executable)
164
- @b.append " /targetExecutable=#{@b.format target_executable}"
165
- yield @b if block_given?
166
- self
167
- end
168
- def target_working_dir(target_working_dir)
169
- @b.append " /targetWorkingDir=#{@b.format target_working_dir}"
170
- yield @b if block_given?
171
- self
172
- end
173
- def temp_dir(temp_dir)
174
- @b.append " /tempDir=#{@b.format temp_dir}"
175
- yield @b if block_given?
176
- self
177
- end
178
- end
179
- class Delete < CommandBase
180
- def initialize(underlying_builder, configuration_file=nil)
181
- super underlying_builder
182
- @b.append ' delete'
183
- @b.append " #{@b.format configuration_file}" unless configuration_file.nil?
184
- end
185
- def log_file(log_file)
186
- @b.append " /logFile=#{@b.format log_file}"
187
- yield @b if block_given?
188
- self
189
- end
190
- def source(source)
191
- @b.append " /source=#{@b.format source}"
192
- yield @b if block_given?
193
- self
194
- end
195
- end
196
- class List < CommandBase
197
- def initialize(underlying_builder, configuration_file=nil)
198
- super underlying_builder
199
- @b.append ' list'
200
- @b.append " #{@b.format configuration_file}" unless configuration_file.nil?
201
- end
202
- def log_file(log_file)
203
- @b.append " /logFile=#{@b.format log_file}"
204
- yield @b if block_given?
205
- self
206
- end
207
- def output(snapshot_path)
208
- @b.append " /output=#{@b.format snapshot_path}"
209
- yield @b if block_given?
210
- self
211
- end
212
- def source(source)
213
- @b.append " /source=#{@b.format source}"
214
- yield @b if block_given?
215
- self
216
- end
217
- end
218
- class Merge < CommandBase
219
- def initialize(underlying_builder, configuration_file=nil)
220
- super underlying_builder
221
- @b.append ' merge'
222
- @b.append " #{@b.format configuration_file}" unless configuration_file.nil?
223
- end
224
- def log_file(log_file)
225
- @b.append " /logFile=#{@b.format log_file}"
226
- yield @b if block_given?
227
- self
228
- end
229
- def output(snapshot_path)
230
- @b.append " /output=#{@b.format snapshot_path}"
231
- yield @b if block_given?
232
- self
233
- end
234
- def source(source)
235
- @b.append " /source=#{@b.format source}"
236
- yield @b if block_given?
237
- self
238
- end
239
- def temp_dir(temp_dir)
240
- @b.append " /tempDir=#{@b.format temp_dir}"
241
- yield @b if block_given?
242
- self
243
- end
244
- end
245
- class Report < CommandBase
246
- def initialize(underlying_builder, configuration_file=nil)
247
- super underlying_builder
248
- @b.append ' report'
249
- @b.append " #{@b.format configuration_file}" unless configuration_file.nil?
250
- end
251
- def log_file(log_file)
252
- @b.append " /logFile=#{@b.format log_file}"
253
- yield @b if block_given?
254
- self
255
- end
256
- def output(snapshot_path)
257
- @b.append " /output=#{@b.format snapshot_path}"
258
- yield @b if block_given?
259
- self
260
- end
261
- def report_type(report_type)
262
- @b.append " /reportType=#{@b.format report_type}"
263
- yield @b if block_given?
264
- self
265
- end
266
- def source(source)
267
- @b.append " /source=#{@b.format source}"
268
- yield @b if block_given?
269
- self
270
- end
271
- end
272
- class Version < CommandBase
273
- def initialize(underlying_builder, output_file_name=nil)
274
- super underlying_builder
275
- @b.append ' version'
276
- @b.append " #{@b.format output_file_name}" unless output_file_name.nil?
277
- end
278
- def log_file(log_file)
279
- @b.append " /logFile=#{@b.format log_file}"
280
- yield @b if block_given?
281
- self
282
- end
283
- end
284
- class Zip < CommandBase
285
- def initialize(underlying_builder, configuration_file=nil)
286
- super underlying_builder
287
- @b.append ' zip'
288
- @b.append " #{@b.format configuration_file}" unless configuration_file.nil?
289
- end
290
- def log_file(log_file)
291
- @b.append " /logFile=#{@b.format log_file}"
292
- yield @b if block_given?
293
- self
294
- end
295
- def output(snapshot_path)
296
- @b.append " /output=#{@b.format snapshot_path}"
297
- yield @b if block_given?
298
- self
299
- end
300
- def source(source)
301
- @b.append " /source=#{@b.format source}"
302
- yield @b if block_given?
303
- self
304
- end
305
- end
306
-
307
- end
308
- end
309
- end
@@ -1,19 +0,0 @@
1
- # Generated code. Do not modify.
2
-
3
- require File.expand_path(File.dirname(__FILE__) + '/../version_detectors')
4
- require File.expand_path(File.dirname(__FILE__) + '/../internal/underlying_builder')
5
-
6
- module FluentCommandBuilder
7
- module FastLinkChecker
8
- COMMAND_NAME = 'conlinkchecker'
9
- def self.version_detector
10
- @version_detector ||= StandardVersionDetector.new COMMAND_NAME
11
- end
12
- def self.version_detector=(value)
13
- @version_detector = value
14
- end
15
- def self.version(path=nil)
16
- self.version_detector.version path
17
- end
18
- end
19
- end
@@ -1,263 +0,0 @@
1
- # Generated code. Do not modify.
2
-
3
- require File.expand_path(File.dirname(__FILE__) + '/../internal/command_base')
4
- require File.expand_path(File.dirname(__FILE__) + '/../internal/command_builder_config')
5
- require File.expand_path(File.dirname(__FILE__) + '/../internal/underlying_builder')
6
-
7
- module FluentCommandBuilder
8
- module FastLinkChecker
9
- module V21
10
- VERSION = '2.1'
11
- @@config = CommandBuilderConfig.new FluentCommandBuilder::FastLinkChecker::COMMAND_NAME, VERSION
12
- @@config.version_detector = FluentCommandBuilder::FastLinkChecker.version_detector
13
- def configure_fastlinkchecker
14
- yield @@config
15
- @@config.validate_path
16
- @@config.validate_version
17
- end
18
- def fastlinkchecker
19
- b = UnderlyingBuilder.new @@config
20
- c = FastLinkChecker.new(b)
21
- yield b if block_given?
22
- c
23
- end
24
- class FastLinkChecker < CommandBase
25
- def initialize(underlying_builder)
26
- super underlying_builder
27
- end
28
- def site(url)
29
- @b.append " --site #{@b.format url}"
30
- yield @b if block_given?
31
- self
32
- end
33
- def check_hyperlinks
34
- @b.append ' -checkHyperlinks'
35
- yield @b if block_given?
36
- self
37
- end
38
- def check_images
39
- @b.append ' -checkImages'
40
- yield @b if block_given?
41
- self
42
- end
43
- def check_others
44
- @b.append ' -checkOthers'
45
- yield @b if block_given?
46
- self
47
- end
48
- def recheck_bad(recheck_times)
49
- @b.append " -recheckBad #{@b.format recheck_times}"
50
- yield @b if block_given?
51
- self
52
- end
53
- def disp(server_name)
54
- @b.append " -disp #{@b.format server_name}"
55
- yield @b if block_given?
56
- self
57
- end
58
- def auth(auth_type)
59
- @b.append " -auth #{@b.format auth_type}"
60
- yield @b if block_given?
61
- self
62
- end
63
- def username(username)
64
- @b.append " -user #{@b.format username}"
65
- yield @b if block_given?
66
- self
67
- end
68
- def password(password)
69
- @b.append " -pwd #{@b.format_password password}"
70
- yield @b if block_given?
71
- self
72
- end
73
- def ignore_robots_txt
74
- @b.append ' -ignoreRobotsTxt'
75
- yield @b if block_given?
76
- self
77
- end
78
- def check_first_only
79
- @b.append ' -checkFirstOnly'
80
- yield @b if block_given?
81
- self
82
- end
83
- def check_no_extern
84
- @b.append ' -checkNoExtern'
85
- yield @b if block_given?
86
- self
87
- end
88
- def check_ignore_case
89
- @b.append ' -checkIgnoreCase'
90
- yield @b if block_given?
91
- self
92
- end
93
- def ignore_cookies
94
- @b.append ' -ignoreCookies'
95
- yield @b if block_given?
96
- self
97
- end
98
- def not_ignore_www
99
- @b.append ' -notIgnoreWww'
100
- yield @b if block_given?
101
- self
102
- end
103
- def check_parent_dir
104
- @b.append ' -checkParentDir'
105
- yield @b if block_given?
106
- self
107
- end
108
- def ignore_relative
109
- @b.append ' -ignoreRelative'
110
- yield @b if block_given?
111
- self
112
- end
113
- def get_after_head_fail
114
- @b.append ' -getAfterHeadFail'
115
- yield @b if block_given?
116
- self
117
- end
118
- def check_restrict(check_level)
119
- @b.append " -checkRestrict #{@b.format check_level}"
120
- yield @b if block_given?
121
- self
122
- end
123
- def size_limit_above
124
- @b.append ' -sizeLimitAbove'
125
- yield @b if block_given?
126
- self
127
- end
128
- def size_limit_below(size_limit_kb)
129
- @b.append " -sizeLimitBelow #{@b.format size_limit_kb}"
130
- yield @b if block_given?
131
- self
132
- end
133
- def limit_links(link_type, n)
134
- @b.append " -limitLinks #{@b.format link_type} #{@b.format n}"
135
- yield @b if block_given?
136
- self
137
- end
138
- def skip_slow_links
139
- @b.append ' -skipSlowLinks'
140
- yield @b if block_given?
141
- self
142
- end
143
- def check_only(wildcards)
144
- @b.append " -checkOnly #{@b.format wildcards}"
145
- yield @b if block_given?
146
- self
147
- end
148
- def skip_files(wildcards)
149
- @b.append " -skipFiles #{@b.format wildcards}"
150
- yield @b if block_given?
151
- self
152
- end
153
- def skip_domains(domains)
154
- @b.append " -skipDomains #{@b.format domains, ';'}"
155
- yield @b if block_given?
156
- self
157
- end
158
- def skip_bookmarks(bookmarks)
159
- @b.append " -skipBookmarks #{@b.format bookmarks, ';'}"
160
- yield @b if block_given?
161
- self
162
- end
163
- def ignore_form_tag
164
- @b.append ' -ignoreFormTag'
165
- yield @b if block_given?
166
- self
167
- end
168
- def not_ignore_spaces
169
- @b.append ' -notIgnoreSpaces'
170
- yield @b if block_given?
171
- self
172
- end
173
- def ini(ini_file)
174
- @b.append " --ini #{@b.format ini_file}"
175
- yield @b if block_given?
176
- self
177
- end
178
- def flc(flc_file)
179
- @b.append " --flc #{@b.format flc_file}"
180
- yield @b if block_given?
181
- self
182
- end
183
- def cache
184
- @b.append ' --cache'
185
- yield @b if block_given?
186
- self
187
- end
188
- def verbosely
189
- @b.append ' --verbosely'
190
- yield @b if block_given?
191
- self
192
- end
193
- def print_broken
194
- @b.append ' --printBroken'
195
- yield @b if block_given?
196
- self
197
- end
198
- def user_agent(agent_name)
199
- @b.append " --userAgent #{@b.format agent_name}"
200
- yield @b if block_given?
201
- self
202
- end
203
- def report(report_type)
204
- @b.append " --report #{@b.format report_type}"
205
- yield @b if block_given?
206
- self
207
- end
208
- def from(address)
209
- @b.append " -from #{@b.format address}"
210
- yield @b if block_given?
211
- self
212
- end
213
- def subject(subject)
214
- @b.append " -subject #{@b.format subject}"
215
- yield @b if block_given?
216
- self
217
- end
218
- def attach
219
- @b.append ' -attach'
220
- yield @b if block_given?
221
- self
222
- end
223
- def start_tls
224
- @b.append ' -startTls'
225
- yield @b if block_given?
226
- self
227
- end
228
- def columns(columns)
229
- @b.append " -columns #{@b.format columns}"
230
- yield @b if block_given?
231
- self
232
- end
233
- def sort(sort_columns)
234
- @b.append " -sort #{@b.format sort_columns}"
235
- yield @b if block_given?
236
- self
237
- end
238
- def unprocessed
239
- @b.append ' -unprocessed'
240
- yield @b if block_given?
241
- self
242
- end
243
- def filename(filename)
244
- @b.append " #{@b.format filename}"
245
- yield @b if block_given?
246
- self
247
- end
248
- def email(email, port=nil, username=nil, password=nil)
249
- @b.append " #{@b.format email}"
250
- @b.append " smtpserver:#{@b.format port} #{@b.format username} #{@b.format_password password}" unless port.nil? or username.nil? or password.nil?
251
- yield @b if block_given?
252
- self
253
- end
254
- def help
255
- @b.append ' -h'
256
- yield @b if block_given?
257
- self
258
- end
259
- end
260
-
261
- end
262
- end
263
- end