fluent_command_builder 0.6.0 → 0.7.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.
- data/lib/fluent_command_builder.rb +3 -0
- data/lib/fluent_command_builder/command_base.rb +21 -10
- data/lib/fluent_command_builder/command_builders/appcfg_python.rb +1 -1
- data/lib/fluent_command_builder/command_builders/appcfg_python_16.rb +995 -994
- data/lib/fluent_command_builder/command_builders/appcfg_python_17.rb +991 -990
- data/lib/fluent_command_builder/command_builders/aspnet_compiler.rb +1 -1
- data/lib/fluent_command_builder/command_builders/aspnet_compiler_20.rb +30 -29
- data/lib/fluent_command_builder/command_builders/aspnet_compiler_40.rb +30 -29
- data/lib/fluent_command_builder/command_builders/bundle.rb +1 -1
- data/lib/fluent_command_builder/command_builders/bundle_11.rb +102 -101
- data/lib/fluent_command_builder/command_builders/cucumber.rb +1 -1
- data/lib/fluent_command_builder/command_builders/cucumber_11.rb +60 -59
- data/lib/fluent_command_builder/command_builders/cucumber_12.rb +62 -61
- data/lib/fluent_command_builder/command_builders/dev_appserver_python.rb +1 -1
- data/lib/fluent_command_builder/command_builders/dev_appserver_python_16.rb +72 -71
- data/lib/fluent_command_builder/command_builders/dev_appserver_python_17.rb +72 -71
- data/lib/fluent_command_builder/command_builders/dotcover.rb +1 -1
- data/lib/fluent_command_builder/command_builders/dotcover_10.rb +17 -16
- data/lib/fluent_command_builder/command_builders/dotcover_11.rb +101 -100
- data/lib/fluent_command_builder/command_builders/dotcover_12.rb +101 -100
- data/lib/fluent_command_builder/command_builders/dotcover_20.rb +105 -104
- data/lib/fluent_command_builder/command_builders/installutil.rb +1 -1
- data/lib/fluent_command_builder/command_builders/installutil_11.rb +15 -14
- data/lib/fluent_command_builder/command_builders/installutil_20.rb +17 -16
- data/lib/fluent_command_builder/command_builders/installutil_35.rb +17 -16
- data/lib/fluent_command_builder/command_builders/installutil_40.rb +20 -19
- data/lib/fluent_command_builder/command_builders/msbuild.rb +1 -1
- data/lib/fluent_command_builder/command_builders/msbuild_20.rb +27 -26
- data/lib/fluent_command_builder/command_builders/msbuild_30.rb +27 -26
- data/lib/fluent_command_builder/command_builders/msbuild_35.rb +43 -42
- data/lib/fluent_command_builder/command_builders/msbuild_40.rb +46 -45
- data/lib/fluent_command_builder/command_builders/msdeploy.rb +1 -1
- data/lib/fluent_command_builder/command_builders/msdeploy_71.rb +61 -60
- data/lib/fluent_command_builder/command_builders/mstest.rb +1 -1
- data/lib/fluent_command_builder/command_builders/mstest_100.rb +41 -40
- data/lib/fluent_command_builder/command_builders/mstest_80.rb +33 -32
- data/lib/fluent_command_builder/command_builders/mstest_90.rb +35 -34
- data/lib/fluent_command_builder/command_builders/netsh.rb +1 -1
- data/lib/fluent_command_builder/command_builders/netsh_61.rb +139 -138
- data/lib/fluent_command_builder/command_builders/nuget.rb +17 -0
- data/lib/fluent_command_builder/command_builders/nuget_20.rb +433 -0
- data/lib/fluent_command_builder/command_builders/nunit.rb +1 -1
- data/lib/fluent_command_builder/command_builders/nunit_25.rb +50 -49
- data/lib/fluent_command_builder/command_builders/nunit_26.rb +66 -65
- data/lib/fluent_command_builder/command_builders/rake.rb +1 -1
- data/lib/fluent_command_builder/command_builders/rake_09.rb +48 -47
- data/lib/fluent_command_builder/command_builders/security_osx.rb +1 -1
- data/lib/fluent_command_builder/command_builders/security_osx_107.rb +55 -54
- data/lib/fluent_command_builder/command_builders/sevenzip.rb +1 -1
- data/lib/fluent_command_builder/command_builders/sevenzip_92.rb +211 -210
- data/lib/fluent_command_builder/command_builders/simian.rb +1 -1
- data/lib/fluent_command_builder/command_builders/simian_23.rb +47 -46
- data/lib/fluent_command_builder/command_builders/team_foundation.rb +1 -1
- data/lib/fluent_command_builder/command_builders/team_foundation_100.rb +822 -821
- data/lib/fluent_command_builder/command_builders/team_foundation_tee.rb +1 -1
- data/lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb +744 -743
- data/lib/fluent_command_builder/command_builders/xcodebuild.rb +1 -1
- data/lib/fluent_command_builder/command_builders/xcodebuild_43.rb +103 -87
- data/lib/fluent_command_builder/command_builders/xcodebuild_44.rb +123 -107
- data/lib/fluent_command_builder/executor.rb +44 -0
- data/lib/fluent_command_builder/executors/backticks_executor.rb +7 -0
- data/lib/fluent_command_builder/executors/dry_run_executor.rb +7 -0
- data/lib/fluent_command_builder/executors/rake_sh_executor.rb +10 -0
- data/lib/fluent_command_builder/executors/system_executor.rb +7 -0
- data/lib/fluent_command_builder/path_finder.rb +20 -0
- data/lib/fluent_command_builder/path_finders/unix_path_finder.rb +13 -0
- data/lib/fluent_command_builder/path_finders/windows_path_finder.rb +14 -0
- data/lib/fluent_command_builder/underlying_builder.rb +75 -59
- data/lib/fluent_command_builder/version.rb +40 -0
- data/lib/fluent_command_builder/version_detectors/lib/appengine_python_version_detector.rb +1 -2
- data/lib/fluent_command_builder/version_detectors/lib/standard_version_detector.rb +13 -13
- data/lib/fluent_command_builder/version_validator.rb +37 -0
- metadata +16 -7
- data/lib/command_version_detector.rb +0 -1
- data/lib/fluent_command_builder/util.rb +0 -18
- data/lib/fluent_command_builder/version_detectors/lib/path_finder.rb +0 -43
|
@@ -7,6 +7,7 @@ module FluentCommandBuilder
|
|
|
7
7
|
end
|
|
8
8
|
module DotCover
|
|
9
9
|
module V20
|
|
10
|
+
VERSION = '2.0'
|
|
10
11
|
def self.create
|
|
11
12
|
b = UnderlyingBuilder.new FluentCommandBuilder::DotCover::COMMAND_NAME
|
|
12
13
|
c = DotCover.new(b)
|
|
@@ -21,280 +22,280 @@ module FluentCommandBuilder
|
|
|
21
22
|
super underlying_builder
|
|
22
23
|
end
|
|
23
24
|
def analyse(configuration_file=nil)
|
|
24
|
-
Analyse.new b, configuration_file
|
|
25
|
+
Analyse.new @b, configuration_file
|
|
25
26
|
end
|
|
26
27
|
def cover(configuration_file=nil)
|
|
27
|
-
Cover.new b, configuration_file
|
|
28
|
+
Cover.new @b, configuration_file
|
|
28
29
|
end
|
|
29
30
|
def delete(configuration_file=nil)
|
|
30
|
-
Delete.new b, configuration_file
|
|
31
|
+
Delete.new @b, configuration_file
|
|
31
32
|
end
|
|
32
33
|
def help(command=nil, file_name=nil)
|
|
33
|
-
b.append ' help'
|
|
34
|
-
b.append " #{b.format command}" unless command.nil?
|
|
35
|
-
b.append " #{b.format file_name}" unless file_name.nil?
|
|
36
|
-
yield b if block_given?
|
|
34
|
+
@b.append ' help'
|
|
35
|
+
@b.append " #{@b.format command}" unless command.nil?
|
|
36
|
+
@b.append " #{@b.format file_name}" unless file_name.nil?
|
|
37
|
+
yield @b if block_given?
|
|
37
38
|
self
|
|
38
39
|
end
|
|
39
40
|
def list(configuration_file=nil)
|
|
40
|
-
List.new b, configuration_file
|
|
41
|
+
List.new @b, configuration_file
|
|
41
42
|
end
|
|
42
43
|
def merge(configuration_file=nil)
|
|
43
|
-
Merge.new b, configuration_file
|
|
44
|
+
Merge.new @b, configuration_file
|
|
44
45
|
end
|
|
45
46
|
def report(configuration_file=nil)
|
|
46
|
-
Report.new b, configuration_file
|
|
47
|
+
Report.new @b, configuration_file
|
|
47
48
|
end
|
|
48
49
|
def version(output_file_name=nil)
|
|
49
|
-
Version.new b, output_file_name
|
|
50
|
+
Version.new @b, output_file_name
|
|
50
51
|
end
|
|
51
52
|
def zip(configuration_file=nil)
|
|
52
|
-
Zip.new b, configuration_file
|
|
53
|
+
Zip.new @b, configuration_file
|
|
53
54
|
end
|
|
54
55
|
end
|
|
55
56
|
class Analyse < CommandBase
|
|
56
57
|
def initialize(underlying_builder, configuration_file=nil)
|
|
57
58
|
super underlying_builder
|
|
58
|
-
b.append ' analyse'
|
|
59
|
-
b.append " #{b.format configuration_file}" unless configuration_file.nil?
|
|
59
|
+
@b.append ' analyse'
|
|
60
|
+
@b.append " #{@b.format configuration_file}" unless configuration_file.nil?
|
|
60
61
|
end
|
|
61
62
|
def analyse_target_arguments(bool)
|
|
62
|
-
b.append " /analyseTargetArguments=#{b.format bool}"
|
|
63
|
-
yield b if block_given?
|
|
63
|
+
@b.append " /analyseTargetArguments=#{@b.format bool}"
|
|
64
|
+
yield @b if block_given?
|
|
64
65
|
self
|
|
65
66
|
end
|
|
66
67
|
def attribute_filters(filters)
|
|
67
|
-
b.append " /attributeFilters=#{b.format filters, ';'}"
|
|
68
|
-
yield b if block_given?
|
|
68
|
+
@b.append " /attributeFilters=#{@b.format filters, ';'}"
|
|
69
|
+
yield @b if block_given?
|
|
69
70
|
self
|
|
70
71
|
end
|
|
71
72
|
def filters(filters)
|
|
72
|
-
b.append " /filters=#{b.format filters, ';'}"
|
|
73
|
-
yield b if block_given?
|
|
73
|
+
@b.append " /filters=#{@b.format filters, ';'}"
|
|
74
|
+
yield @b if block_given?
|
|
74
75
|
self
|
|
75
76
|
end
|
|
76
77
|
def inherit_console(bool)
|
|
77
|
-
b.append " /inheritConsole=#{b.format bool}"
|
|
78
|
-
yield b if block_given?
|
|
78
|
+
@b.append " /inheritConsole=#{@b.format bool}"
|
|
79
|
+
yield @b if block_given?
|
|
79
80
|
self
|
|
80
81
|
end
|
|
81
82
|
def log_file(log_file)
|
|
82
|
-
b.append " /logFile=#{b.format log_file}"
|
|
83
|
-
yield b if block_given?
|
|
83
|
+
@b.append " /logFile=#{@b.format log_file}"
|
|
84
|
+
yield @b if block_given?
|
|
84
85
|
self
|
|
85
86
|
end
|
|
86
87
|
def output(snapshot_path)
|
|
87
|
-
b.append " /output=#{b.format snapshot_path}"
|
|
88
|
-
yield b if block_given?
|
|
88
|
+
@b.append " /output=#{@b.format snapshot_path}"
|
|
89
|
+
yield @b if block_given?
|
|
89
90
|
self
|
|
90
91
|
end
|
|
91
92
|
def report_type(report_type)
|
|
92
|
-
b.append " /reportType=#{b.format report_type}"
|
|
93
|
-
yield b if block_given?
|
|
93
|
+
@b.append " /reportType=#{@b.format report_type}"
|
|
94
|
+
yield @b if block_given?
|
|
94
95
|
self
|
|
95
96
|
end
|
|
96
97
|
def target_arguments(target_arguments)
|
|
97
|
-
b.append " /targetArguments=#{b.format target_arguments}"
|
|
98
|
-
yield b if block_given?
|
|
98
|
+
@b.append " /targetArguments=#{@b.format target_arguments}"
|
|
99
|
+
yield @b if block_given?
|
|
99
100
|
self
|
|
100
101
|
end
|
|
101
102
|
def target_executable(target_executable)
|
|
102
|
-
b.append " /targetExecutable=#{b.format target_executable}"
|
|
103
|
-
yield b if block_given?
|
|
103
|
+
@b.append " /targetExecutable=#{@b.format target_executable}"
|
|
104
|
+
yield @b if block_given?
|
|
104
105
|
self
|
|
105
106
|
end
|
|
106
107
|
def target_working_dir(target_working_dir)
|
|
107
|
-
b.append " /targetWorkingDir=#{b.format target_working_dir}"
|
|
108
|
-
yield b if block_given?
|
|
108
|
+
@b.append " /targetWorkingDir=#{@b.format target_working_dir}"
|
|
109
|
+
yield @b if block_given?
|
|
109
110
|
self
|
|
110
111
|
end
|
|
111
112
|
def temp_dir(temp_dir)
|
|
112
|
-
b.append " /tempDir=#{b.format temp_dir}"
|
|
113
|
-
yield b if block_given?
|
|
113
|
+
@b.append " /tempDir=#{@b.format temp_dir}"
|
|
114
|
+
yield @b if block_given?
|
|
114
115
|
self
|
|
115
116
|
end
|
|
116
117
|
end
|
|
117
118
|
class Cover < CommandBase
|
|
118
119
|
def initialize(underlying_builder, configuration_file=nil)
|
|
119
120
|
super underlying_builder
|
|
120
|
-
b.append ' cover'
|
|
121
|
-
b.append " #{b.format configuration_file}" unless configuration_file.nil?
|
|
121
|
+
@b.append ' cover'
|
|
122
|
+
@b.append " #{@b.format configuration_file}" unless configuration_file.nil?
|
|
122
123
|
end
|
|
123
124
|
def analyse_target_arguments(bool)
|
|
124
|
-
b.append " /analyseTargetArguments=#{b.format bool}"
|
|
125
|
-
yield b if block_given?
|
|
125
|
+
@b.append " /analyseTargetArguments=#{@b.format bool}"
|
|
126
|
+
yield @b if block_given?
|
|
126
127
|
self
|
|
127
128
|
end
|
|
128
129
|
def attribute_filters(filters)
|
|
129
|
-
b.append " /attributeFilters=#{b.format filters, ';'}"
|
|
130
|
-
yield b if block_given?
|
|
130
|
+
@b.append " /attributeFilters=#{@b.format filters, ';'}"
|
|
131
|
+
yield @b if block_given?
|
|
131
132
|
self
|
|
132
133
|
end
|
|
133
134
|
def filters(filters)
|
|
134
|
-
b.append " /filters=#{b.format filters, ';'}"
|
|
135
|
-
yield b if block_given?
|
|
135
|
+
@b.append " /filters=#{@b.format filters, ';'}"
|
|
136
|
+
yield @b if block_given?
|
|
136
137
|
self
|
|
137
138
|
end
|
|
138
139
|
def inherit_console(bool)
|
|
139
|
-
b.append " /inheritConsole=#{b.format bool}"
|
|
140
|
-
yield b if block_given?
|
|
140
|
+
@b.append " /inheritConsole=#{@b.format bool}"
|
|
141
|
+
yield @b if block_given?
|
|
141
142
|
self
|
|
142
143
|
end
|
|
143
144
|
def log_file(log_file)
|
|
144
|
-
b.append " /logFile=#{b.format log_file}"
|
|
145
|
-
yield b if block_given?
|
|
145
|
+
@b.append " /logFile=#{@b.format log_file}"
|
|
146
|
+
yield @b if block_given?
|
|
146
147
|
self
|
|
147
148
|
end
|
|
148
149
|
def output(snapshot_path)
|
|
149
|
-
b.append " /output=#{b.format snapshot_path}"
|
|
150
|
-
yield b if block_given?
|
|
150
|
+
@b.append " /output=#{@b.format snapshot_path}"
|
|
151
|
+
yield @b if block_given?
|
|
151
152
|
self
|
|
152
153
|
end
|
|
153
154
|
def target_arguments(target_arguments)
|
|
154
|
-
b.append " /targetArguments=#{b.format target_arguments}"
|
|
155
|
-
yield b if block_given?
|
|
155
|
+
@b.append " /targetArguments=#{@b.format target_arguments}"
|
|
156
|
+
yield @b if block_given?
|
|
156
157
|
self
|
|
157
158
|
end
|
|
158
159
|
def target_executable(target_executable)
|
|
159
|
-
b.append " /targetExecutable=#{b.format target_executable}"
|
|
160
|
-
yield b if block_given?
|
|
160
|
+
@b.append " /targetExecutable=#{@b.format target_executable}"
|
|
161
|
+
yield @b if block_given?
|
|
161
162
|
self
|
|
162
163
|
end
|
|
163
164
|
def target_working_dir(target_working_dir)
|
|
164
|
-
b.append " /targetWorkingDir=#{b.format target_working_dir}"
|
|
165
|
-
yield b if block_given?
|
|
165
|
+
@b.append " /targetWorkingDir=#{@b.format target_working_dir}"
|
|
166
|
+
yield @b if block_given?
|
|
166
167
|
self
|
|
167
168
|
end
|
|
168
169
|
def temp_dir(temp_dir)
|
|
169
|
-
b.append " /tempDir=#{b.format temp_dir}"
|
|
170
|
-
yield b if block_given?
|
|
170
|
+
@b.append " /tempDir=#{@b.format temp_dir}"
|
|
171
|
+
yield @b if block_given?
|
|
171
172
|
self
|
|
172
173
|
end
|
|
173
174
|
end
|
|
174
175
|
class Delete < CommandBase
|
|
175
176
|
def initialize(underlying_builder, configuration_file=nil)
|
|
176
177
|
super underlying_builder
|
|
177
|
-
b.append ' delete'
|
|
178
|
-
b.append " #{b.format configuration_file}" unless configuration_file.nil?
|
|
178
|
+
@b.append ' delete'
|
|
179
|
+
@b.append " #{@b.format configuration_file}" unless configuration_file.nil?
|
|
179
180
|
end
|
|
180
181
|
def log_file(log_file)
|
|
181
|
-
b.append " /logFile=#{b.format log_file}"
|
|
182
|
-
yield b if block_given?
|
|
182
|
+
@b.append " /logFile=#{@b.format log_file}"
|
|
183
|
+
yield @b if block_given?
|
|
183
184
|
self
|
|
184
185
|
end
|
|
185
186
|
def source(source)
|
|
186
|
-
b.append " /source=#{b.format source}"
|
|
187
|
-
yield b if block_given?
|
|
187
|
+
@b.append " /source=#{@b.format source}"
|
|
188
|
+
yield @b if block_given?
|
|
188
189
|
self
|
|
189
190
|
end
|
|
190
191
|
end
|
|
191
192
|
class List < CommandBase
|
|
192
193
|
def initialize(underlying_builder, configuration_file=nil)
|
|
193
194
|
super underlying_builder
|
|
194
|
-
b.append ' list'
|
|
195
|
-
b.append " #{b.format configuration_file}" unless configuration_file.nil?
|
|
195
|
+
@b.append ' list'
|
|
196
|
+
@b.append " #{@b.format configuration_file}" unless configuration_file.nil?
|
|
196
197
|
end
|
|
197
198
|
def log_file(log_file)
|
|
198
|
-
b.append " /logFile=#{b.format log_file}"
|
|
199
|
-
yield b if block_given?
|
|
199
|
+
@b.append " /logFile=#{@b.format log_file}"
|
|
200
|
+
yield @b if block_given?
|
|
200
201
|
self
|
|
201
202
|
end
|
|
202
203
|
def output(snapshot_path)
|
|
203
|
-
b.append " /output=#{b.format snapshot_path}"
|
|
204
|
-
yield b if block_given?
|
|
204
|
+
@b.append " /output=#{@b.format snapshot_path}"
|
|
205
|
+
yield @b if block_given?
|
|
205
206
|
self
|
|
206
207
|
end
|
|
207
208
|
def source(source)
|
|
208
|
-
b.append " /source=#{b.format source}"
|
|
209
|
-
yield b if block_given?
|
|
209
|
+
@b.append " /source=#{@b.format source}"
|
|
210
|
+
yield @b if block_given?
|
|
210
211
|
self
|
|
211
212
|
end
|
|
212
213
|
end
|
|
213
214
|
class Merge < CommandBase
|
|
214
215
|
def initialize(underlying_builder, configuration_file=nil)
|
|
215
216
|
super underlying_builder
|
|
216
|
-
b.append ' merge'
|
|
217
|
-
b.append " #{b.format configuration_file}" unless configuration_file.nil?
|
|
217
|
+
@b.append ' merge'
|
|
218
|
+
@b.append " #{@b.format configuration_file}" unless configuration_file.nil?
|
|
218
219
|
end
|
|
219
220
|
def log_file(log_file)
|
|
220
|
-
b.append " /logFile=#{b.format log_file}"
|
|
221
|
-
yield b if block_given?
|
|
221
|
+
@b.append " /logFile=#{@b.format log_file}"
|
|
222
|
+
yield @b if block_given?
|
|
222
223
|
self
|
|
223
224
|
end
|
|
224
225
|
def output(snapshot_path)
|
|
225
|
-
b.append " /output=#{b.format snapshot_path}"
|
|
226
|
-
yield b if block_given?
|
|
226
|
+
@b.append " /output=#{@b.format snapshot_path}"
|
|
227
|
+
yield @b if block_given?
|
|
227
228
|
self
|
|
228
229
|
end
|
|
229
230
|
def source(source)
|
|
230
|
-
b.append " /source=#{b.format source}"
|
|
231
|
-
yield b if block_given?
|
|
231
|
+
@b.append " /source=#{@b.format source}"
|
|
232
|
+
yield @b if block_given?
|
|
232
233
|
self
|
|
233
234
|
end
|
|
234
235
|
def temp_dir(temp_dir)
|
|
235
|
-
b.append " /tempDir=#{b.format temp_dir}"
|
|
236
|
-
yield b if block_given?
|
|
236
|
+
@b.append " /tempDir=#{@b.format temp_dir}"
|
|
237
|
+
yield @b if block_given?
|
|
237
238
|
self
|
|
238
239
|
end
|
|
239
240
|
end
|
|
240
241
|
class Report < CommandBase
|
|
241
242
|
def initialize(underlying_builder, configuration_file=nil)
|
|
242
243
|
super underlying_builder
|
|
243
|
-
b.append ' report'
|
|
244
|
-
b.append " #{b.format configuration_file}" unless configuration_file.nil?
|
|
244
|
+
@b.append ' report'
|
|
245
|
+
@b.append " #{@b.format configuration_file}" unless configuration_file.nil?
|
|
245
246
|
end
|
|
246
247
|
def log_file(log_file)
|
|
247
|
-
b.append " /logFile=#{b.format log_file}"
|
|
248
|
-
yield b if block_given?
|
|
248
|
+
@b.append " /logFile=#{@b.format log_file}"
|
|
249
|
+
yield @b if block_given?
|
|
249
250
|
self
|
|
250
251
|
end
|
|
251
252
|
def output(snapshot_path)
|
|
252
|
-
b.append " /output=#{b.format snapshot_path}"
|
|
253
|
-
yield b if block_given?
|
|
253
|
+
@b.append " /output=#{@b.format snapshot_path}"
|
|
254
|
+
yield @b if block_given?
|
|
254
255
|
self
|
|
255
256
|
end
|
|
256
257
|
def report_type(report_type)
|
|
257
|
-
b.append " /reportType=#{b.format report_type}"
|
|
258
|
-
yield b if block_given?
|
|
258
|
+
@b.append " /reportType=#{@b.format report_type}"
|
|
259
|
+
yield @b if block_given?
|
|
259
260
|
self
|
|
260
261
|
end
|
|
261
262
|
def source(source)
|
|
262
|
-
b.append " /source=#{b.format source}"
|
|
263
|
-
yield b if block_given?
|
|
263
|
+
@b.append " /source=#{@b.format source}"
|
|
264
|
+
yield @b if block_given?
|
|
264
265
|
self
|
|
265
266
|
end
|
|
266
267
|
end
|
|
267
268
|
class Version < CommandBase
|
|
268
269
|
def initialize(underlying_builder, output_file_name=nil)
|
|
269
270
|
super underlying_builder
|
|
270
|
-
b.append ' version'
|
|
271
|
-
b.append " #{b.format output_file_name}" unless output_file_name.nil?
|
|
271
|
+
@b.append ' version'
|
|
272
|
+
@b.append " #{@b.format output_file_name}" unless output_file_name.nil?
|
|
272
273
|
end
|
|
273
274
|
def log_file(log_file)
|
|
274
|
-
b.append " /logFile=#{b.format log_file}"
|
|
275
|
-
yield b if block_given?
|
|
275
|
+
@b.append " /logFile=#{@b.format log_file}"
|
|
276
|
+
yield @b if block_given?
|
|
276
277
|
self
|
|
277
278
|
end
|
|
278
279
|
end
|
|
279
280
|
class Zip < CommandBase
|
|
280
281
|
def initialize(underlying_builder, configuration_file=nil)
|
|
281
282
|
super underlying_builder
|
|
282
|
-
b.append ' zip'
|
|
283
|
-
b.append " #{b.format configuration_file}" unless configuration_file.nil?
|
|
283
|
+
@b.append ' zip'
|
|
284
|
+
@b.append " #{@b.format configuration_file}" unless configuration_file.nil?
|
|
284
285
|
end
|
|
285
286
|
def log_file(log_file)
|
|
286
|
-
b.append " /logFile=#{b.format log_file}"
|
|
287
|
-
yield b if block_given?
|
|
287
|
+
@b.append " /logFile=#{@b.format log_file}"
|
|
288
|
+
yield @b if block_given?
|
|
288
289
|
self
|
|
289
290
|
end
|
|
290
291
|
def output(snapshot_path)
|
|
291
|
-
b.append " /output=#{b.format snapshot_path}"
|
|
292
|
-
yield b if block_given?
|
|
292
|
+
@b.append " /output=#{@b.format snapshot_path}"
|
|
293
|
+
yield @b if block_given?
|
|
293
294
|
self
|
|
294
295
|
end
|
|
295
296
|
def source(source)
|
|
296
|
-
b.append " /source=#{b.format source}"
|
|
297
|
-
yield b if block_given?
|
|
297
|
+
@b.append " /source=#{@b.format source}"
|
|
298
|
+
yield @b if block_given?
|
|
298
299
|
self
|
|
299
300
|
end
|
|
300
301
|
end
|
|
@@ -7,6 +7,7 @@ module FluentCommandBuilder
|
|
|
7
7
|
end
|
|
8
8
|
module InstallUtil
|
|
9
9
|
module V11
|
|
10
|
+
VERSION = '1.1'
|
|
10
11
|
def self.create
|
|
11
12
|
b = UnderlyingBuilder.new FluentCommandBuilder::InstallUtil::COMMAND_NAME
|
|
12
13
|
c = InstallUtil.new(b)
|
|
@@ -21,35 +22,35 @@ module FluentCommandBuilder
|
|
|
21
22
|
super underlying_builder
|
|
22
23
|
end
|
|
23
24
|
def help(assembly_path=nil)
|
|
24
|
-
b.append ' /help'
|
|
25
|
-
b.append " #{b.format assembly_path}" unless assembly_path.nil?
|
|
26
|
-
yield b if block_given?
|
|
25
|
+
@b.append ' /help'
|
|
26
|
+
@b.append " #{@b.format assembly_path}" unless assembly_path.nil?
|
|
27
|
+
yield @b if block_given?
|
|
27
28
|
self
|
|
28
29
|
end
|
|
29
30
|
def log_file(file_name=nil)
|
|
30
|
-
b.append ' /logFile'
|
|
31
|
-
b.append "=#{b.format file_name}" unless file_name.nil?
|
|
32
|
-
yield b if block_given?
|
|
31
|
+
@b.append ' /logFile'
|
|
32
|
+
@b.append "=#{@b.format file_name}" unless file_name.nil?
|
|
33
|
+
yield @b if block_given?
|
|
33
34
|
self
|
|
34
35
|
end
|
|
35
36
|
def log_to_console(bool)
|
|
36
|
-
b.append " /logToConsole=#{b.format bool}"
|
|
37
|
-
yield b if block_given?
|
|
37
|
+
@b.append " /logToConsole=#{@b.format bool}"
|
|
38
|
+
yield @b if block_given?
|
|
38
39
|
self
|
|
39
40
|
end
|
|
40
41
|
def show_call_stack
|
|
41
|
-
b.append ' /showCallStack'
|
|
42
|
-
yield b if block_given?
|
|
42
|
+
@b.append ' /showCallStack'
|
|
43
|
+
yield @b if block_given?
|
|
43
44
|
self
|
|
44
45
|
end
|
|
45
46
|
def uninstall
|
|
46
|
-
b.append ' /uninstall'
|
|
47
|
-
yield b if block_given?
|
|
47
|
+
@b.append ' /uninstall'
|
|
48
|
+
yield @b if block_given?
|
|
48
49
|
self
|
|
49
50
|
end
|
|
50
51
|
def assembly_file_name(assembly_file_name)
|
|
51
|
-
b.append " #{b.format assembly_file_name}"
|
|
52
|
-
yield b if block_given?
|
|
52
|
+
@b.append " #{@b.format assembly_file_name}"
|
|
53
|
+
yield @b if block_given?
|
|
53
54
|
self
|
|
54
55
|
end
|
|
55
56
|
end
|