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,316 +1,316 @@
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 bundle_11
6
+ FluentCommandBuilder::Bundle::V11.create { |b| yield b if block_given? }
7
+ end
5
8
  module Bundle
6
9
  module V11
7
- COMMAND_NAME = 'bundle'
10
+ def self.create
11
+ b = UnderlyingBuilder.new FluentCommandBuilder::Bundle::COMMAND_NAME
12
+ c = Bundle.new(b)
13
+ yield b if block_given?
14
+ c
15
+ end
16
+ def bundle
17
+ FluentCommandBuilder::Bundle::V11.create { |b| yield b if block_given? }
18
+ end
8
19
  class Bundle < CommandBase
9
- def initialize(builder)
10
- super builder
20
+ def initialize(underlying_builder)
21
+ super underlying_builder
11
22
  end
12
23
  def cache
13
- Cache.new @builder
24
+ Cache.new b
14
25
  end
15
26
  def check
16
- Check.new @builder
27
+ Check.new b
17
28
  end
18
29
  def clean
19
- Clean.new @builder
30
+ Clean.new b
20
31
  end
21
32
  def config(name, value=nil)
22
- @builder.append " config #{@builder.format name}"
23
- @builder.append " #{@builder.format value}" unless value.nil?
24
- yield @builder if block_given?
33
+ b.append " config #{b.format name}"
34
+ b.append " #{b.format value}" unless value.nil?
35
+ yield b if block_given?
25
36
  self
26
37
  end
27
38
  def console(group=nil)
28
- @builder.append ' console'
29
- @builder.append " #{@builder.format group}" unless group.nil?
30
- yield @builder if block_given?
39
+ b.append ' console'
40
+ b.append " #{b.format group}" unless group.nil?
41
+ yield b if block_given?
31
42
  self
32
43
  end
33
44
  def exec(command)
34
- @builder.append " exec #{@builder.format command}"
35
- yield @builder if block_given?
45
+ b.append " exec #{b.format command}"
46
+ yield b if block_given?
36
47
  self
37
48
  end
38
49
  def gem(gem)
39
- Gem.new @builder, gem
50
+ Gem.new b, gem
40
51
  end
41
52
  def init
42
- Init.new @builder
53
+ Init.new b
43
54
  end
44
55
  def install
45
- Install.new @builder
56
+ Install.new b
46
57
  end
47
58
  def open(gem)
48
- @builder.append " open #{@builder.format gem}"
49
- yield @builder if block_given?
59
+ b.append " open #{b.format gem}"
60
+ yield b if block_given?
50
61
  self
51
62
  end
52
63
  def outdated(gem=nil)
53
- Outdated.new @builder, gem
64
+ Outdated.new b, gem
54
65
  end
55
66
  def package
56
- Package.new @builder
67
+ Package.new b
57
68
  end
58
69
  def show(gem=nil)
59
- Show.new @builder, gem
70
+ Show.new b, gem
60
71
  end
61
72
  def update(gem=nil)
62
- Update.new @builder, gem
73
+ Update.new b, gem
63
74
  end
64
75
  def version
65
- @builder.append ' version'
66
- yield @builder if block_given?
76
+ b.append ' version'
77
+ yield b if block_given?
67
78
  self
68
79
  end
69
80
  def viz
70
- Viz.new @builder
81
+ Viz.new b
71
82
  end
72
83
  end
73
84
  class Cache < CommandBase
74
- def initialize(builder)
75
- super builder
76
- @builder.append ' cache'
85
+ def initialize(underlying_builder)
86
+ super underlying_builder
87
+ b.append ' cache'
77
88
  end
78
89
  def no_prune
79
- @builder.append ' --no-prune'
80
- yield @builder if block_given?
90
+ b.append ' --no-prune'
91
+ yield b if block_given?
81
92
  self
82
93
  end
83
94
  end
84
95
  class Check < CommandBase
85
- def initialize(builder)
86
- super builder
87
- @builder.append ' check'
96
+ def initialize(underlying_builder)
97
+ super underlying_builder
98
+ b.append ' check'
88
99
  end
89
100
  def gemfile(file)
90
- @builder.append " --gemfile=#{@builder.format file}"
91
- yield @builder if block_given?
101
+ b.append " --gemfile=#{b.format file}"
102
+ yield b if block_given?
92
103
  self
93
104
  end
94
105
  def path(path)
95
- @builder.append " --path=#{@builder.format path}"
96
- yield @builder if block_given?
106
+ b.append " --path=#{b.format path}"
107
+ yield b if block_given?
97
108
  self
98
109
  end
99
110
  end
100
111
  class Clean < CommandBase
101
- def initialize(builder)
102
- super builder
103
- @builder.append ' clean'
112
+ def initialize(underlying_builder)
113
+ super underlying_builder
114
+ b.append ' clean'
104
115
  end
105
116
  def force
106
- @builder.append ' --force'
107
- yield @builder if block_given?
117
+ b.append ' --force'
118
+ yield b if block_given?
108
119
  self
109
120
  end
110
121
  end
111
122
  class Gem < CommandBase
112
- def initialize(builder, gem)
113
- super builder
114
- @builder.append " gem #{@builder.format gem}"
123
+ def initialize(underlying_builder, gem)
124
+ super underlying_builder
125
+ b.append " gem #{b.format gem}"
115
126
  end
116
127
  def bin
117
- @builder.append ' --bin'
118
- yield @builder if block_given?
128
+ b.append ' --bin'
129
+ yield b if block_given?
119
130
  self
120
131
  end
121
132
  end
122
133
  class Init < CommandBase
123
- def initialize(builder)
124
- super builder
125
- @builder.append ' init'
134
+ def initialize(underlying_builder)
135
+ super underlying_builder
136
+ b.append ' init'
126
137
  end
127
138
  def gemspec(file)
128
- @builder.append " --gemspec=#{@builder.format file}"
129
- yield @builder if block_given?
139
+ b.append " --gemspec=#{b.format file}"
140
+ yield b if block_given?
130
141
  self
131
142
  end
132
143
  end
133
144
  class Install < CommandBase
134
- def initialize(builder)
135
- super builder
136
- @builder.append ' install'
145
+ def initialize(underlying_builder)
146
+ super underlying_builder
147
+ b.append ' install'
137
148
  end
138
149
  def binstubs(path)
139
- @builder.append " --binstubs=#{@builder.format path}"
140
- yield @builder if block_given?
150
+ b.append " --binstubs=#{b.format path}"
151
+ yield b if block_given?
141
152
  self
142
153
  end
143
154
  def clean
144
- @builder.append ' --clean'
145
- yield @builder if block_given?
155
+ b.append ' --clean'
156
+ yield b if block_given?
146
157
  self
147
158
  end
148
159
  def deployment
149
- @builder.append ' --deployment'
150
- yield @builder if block_given?
160
+ b.append ' --deployment'
161
+ yield b if block_given?
151
162
  self
152
163
  end
153
164
  def frozen
154
- @builder.append ' --frozen'
155
- yield @builder if block_given?
165
+ b.append ' --frozen'
166
+ yield b if block_given?
156
167
  self
157
168
  end
158
169
  def full_index
159
- @builder.append ' --full-index'
160
- yield @builder if block_given?
170
+ b.append ' --full-index'
171
+ yield b if block_given?
161
172
  self
162
173
  end
163
174
  def gemfile(file)
164
- @builder.append " --gemfile=#{@builder.format file}"
165
- yield @builder if block_given?
175
+ b.append " --gemfile=#{b.format file}"
176
+ yield b if block_given?
166
177
  self
167
178
  end
168
179
  def local
169
- @builder.append ' --local'
170
- yield @builder if block_given?
180
+ b.append ' --local'
181
+ yield b if block_given?
171
182
  self
172
183
  end
173
184
  def no_cache
174
- @builder.append ' --no-cache'
175
- yield @builder if block_given?
185
+ b.append ' --no-cache'
186
+ yield b if block_given?
176
187
  self
177
188
  end
178
189
  def no_prune
179
- @builder.append ' --no-prune'
180
- yield @builder if block_given?
190
+ b.append ' --no-prune'
191
+ yield b if block_given?
181
192
  self
182
193
  end
183
194
  def path(path)
184
- @builder.append " --path=#{@builder.format path}"
185
- yield @builder if block_given?
195
+ b.append " --path=#{b.format path}"
196
+ yield b if block_given?
186
197
  self
187
198
  end
188
199
  def quiet
189
- @builder.append ' --quiet'
190
- yield @builder if block_given?
200
+ b.append ' --quiet'
201
+ yield b if block_given?
191
202
  self
192
203
  end
193
204
  def shebang(string)
194
- @builder.append " --shebang=#{@builder.format string}"
195
- yield @builder if block_given?
205
+ b.append " --shebang=#{b.format string}"
206
+ yield b if block_given?
196
207
  self
197
208
  end
198
209
  def standalone(array)
199
- @builder.append " --standalone=#{@builder.format array}"
200
- yield @builder if block_given?
210
+ b.append " --standalone=#{b.format array}"
211
+ yield b if block_given?
201
212
  self
202
213
  end
203
214
  def system
204
- @builder.append ' --system'
205
- yield @builder if block_given?
215
+ b.append ' --system'
216
+ yield b if block_given?
206
217
  self
207
218
  end
208
219
  def without(group)
209
- @builder.append " --without=#{@builder.format group}"
210
- yield @builder if block_given?
220
+ b.append " --without=#{b.format group}"
221
+ yield b if block_given?
211
222
  self
212
223
  end
213
224
  end
214
225
  class Outdated < CommandBase
215
- def initialize(builder, gem=nil)
216
- super builder
217
- @builder.append ' outdated'
218
- @builder.append " #{@builder.format gem}" unless gem.nil?
226
+ def initialize(underlying_builder, gem=nil)
227
+ super underlying_builder
228
+ b.append ' outdated'
229
+ b.append " #{b.format gem}" unless gem.nil?
219
230
  end
220
231
  def local
221
- @builder.append ' --local'
222
- yield @builder if block_given?
232
+ b.append ' --local'
233
+ yield b if block_given?
223
234
  self
224
235
  end
225
236
  def pre
226
- @builder.append ' --pre'
227
- yield @builder if block_given?
237
+ b.append ' --pre'
238
+ yield b if block_given?
228
239
  self
229
240
  end
230
241
  def source
231
- @builder.append ' --source'
232
- yield @builder if block_given?
242
+ b.append ' --source'
243
+ yield b if block_given?
233
244
  self
234
245
  end
235
246
  end
236
247
  class Package < CommandBase
237
- def initialize(builder)
238
- super builder
239
- @builder.append ' package'
248
+ def initialize(underlying_builder)
249
+ super underlying_builder
250
+ b.append ' package'
240
251
  end
241
252
  def no_prune
242
- @builder.append ' --no-prune'
243
- yield @builder if block_given?
253
+ b.append ' --no-prune'
254
+ yield b if block_given?
244
255
  self
245
256
  end
246
257
  end
247
258
  class Show < CommandBase
248
- def initialize(builder, gem=nil)
249
- super builder
250
- @builder.append ' show'
251
- @builder.append " #{@builder.format gem}" unless gem.nil?
259
+ def initialize(underlying_builder, gem=nil)
260
+ super underlying_builder
261
+ b.append ' show'
262
+ b.append " #{b.format gem}" unless gem.nil?
252
263
  end
253
264
  def paths
254
- @builder.append ' --paths'
255
- yield @builder if block_given?
265
+ b.append ' --paths'
266
+ yield b if block_given?
256
267
  self
257
268
  end
258
269
  end
259
270
  class Update < CommandBase
260
- def initialize(builder, gem=nil)
261
- super builder
262
- @builder.append ' update'
263
- @builder.append " #{@builder.format gem}" unless gem.nil?
271
+ def initialize(underlying_builder, gem=nil)
272
+ super underlying_builder
273
+ b.append ' update'
274
+ b.append " #{b.format gem}" unless gem.nil?
264
275
  end
265
276
  def local
266
- @builder.append ' --local'
267
- yield @builder if block_given?
277
+ b.append ' --local'
278
+ yield b if block_given?
268
279
  self
269
280
  end
270
281
  def source(source)
271
- @builder.append " --source=#{@builder.format source}"
272
- yield @builder if block_given?
282
+ b.append " --source=#{b.format source}"
283
+ yield b if block_given?
273
284
  self
274
285
  end
275
286
  end
276
287
  class Viz < CommandBase
277
- def initialize(builder)
278
- super builder
279
- @builder.append ' viz'
288
+ def initialize(underlying_builder)
289
+ super underlying_builder
290
+ b.append ' viz'
280
291
  end
281
292
  def file(file)
282
- @builder.append " --file=#{@builder.format file}"
283
- yield @builder if block_given?
293
+ b.append " --file=#{b.format file}"
294
+ yield b if block_given?
284
295
  self
285
296
  end
286
297
  def format(format)
287
- @builder.append " --format=#{@builder.format format}"
288
- yield @builder if block_given?
298
+ b.append " --format=#{b.format format}"
299
+ yield b if block_given?
289
300
  self
290
301
  end
291
302
  def requirements
292
- @builder.append ' --requirements'
293
- yield @builder if block_given?
303
+ b.append ' --requirements'
304
+ yield b if block_given?
294
305
  self
295
306
  end
296
307
  def version
297
- @builder.append ' --version'
298
- yield @builder if block_given?
308
+ b.append ' --version'
309
+ yield b if block_given?
299
310
  self
300
311
  end
301
312
  end
302
- def bundle
303
- builder = CommandBuilder.new COMMAND_NAME
304
- command = Bundle.new builder
305
- yield builder if block_given?
306
- command
307
- end
313
+
308
314
  end
309
315
  end
310
- def bundle_11
311
- builder = CommandBuilder.new Bundle::V11::COMMAND_NAME
312
- command = Bundle::V11::Bundle.new builder
313
- yield builder if block_given?
314
- command
315
- end
316
- end
316
+ 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 cucumber(&block)
6
+ Cucumber.create &block
7
+ end
8
+ module Cucumber
9
+ COMMAND_NAME = 'cucumber'
10
+ def self.create
11
+ b = UnderlyingBuilder.new FluentCommandBuilder::Cucumber::COMMAND_NAME
12
+ c = version_module(Cucumber).create b
13
+ yield b if block_given?
14
+ c
15
+ end
16
+ end
17
+ end