fluent_command_builder 0.9.7 → 0.9.8

Sign up to get free protection for your applications and to get access to all the features.
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,194 +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 Rake
9
- module V100
10
- VERSION = '10.0'
11
- @@config = CommandBuilderConfig.new FluentCommandBuilder::Rake::COMMAND_NAME, VERSION
12
- @@config.version_detector = FluentCommandBuilder::Rake.version_detector
13
- def configure_rake
14
- yield @@config
15
- @@config.validate_path
16
- @@config.validate_version
17
- end
18
- def rake(task=nil)
19
- b = UnderlyingBuilder.new @@config
20
- c = Rake.new(b, task)
21
- yield b if block_given?
22
- c
23
- end
24
- class Rake < CommandBase
25
- def initialize(underlying_builder, task=nil)
26
- super underlying_builder
27
- @b.append " #{@b.format task, ' '}" unless task.nil?
28
- end
29
- def all
30
- @b.append ' --all'
31
- yield @b if block_given?
32
- self
33
- end
34
- def backtrace(out=nil)
35
- @b.append ' --backtrace'
36
- @b.append "=#{@b.format out}" unless out.nil?
37
- yield @b if block_given?
38
- self
39
- end
40
- def classic_namespace
41
- @b.append ' --classic-namespace'
42
- yield @b if block_given?
43
- self
44
- end
45
- def comments
46
- @b.append ' --comments'
47
- yield @b if block_given?
48
- self
49
- end
50
- def describe(pattern)
51
- @b.append " --describe #{@b.format pattern}"
52
- yield @b if block_given?
53
- self
54
- end
55
- def dry_run
56
- @b.append ' --dry-run'
57
- yield @b if block_given?
58
- self
59
- end
60
- def execute(code)
61
- @b.append " --execute #{@b.format code}"
62
- yield @b if block_given?
63
- self
64
- end
65
- def execute_continue(code)
66
- @b.append " --execute-continue #{@b.format code}"
67
- yield @b if block_given?
68
- self
69
- end
70
- def execute_print(code)
71
- @b.append " --execute-print #{@b.format code}"
72
- yield @b if block_given?
73
- self
74
- end
75
- def help
76
- @b.append ' --help'
77
- yield @b if block_given?
78
- self
79
- end
80
- def jobs(number=nil)
81
- @b.append ' --jobs'
82
- @b.append " #{@b.format number}" unless number.nil?
83
- yield @b if block_given?
84
- self
85
- end
86
- def job_stats(level=nil)
87
- @b.append ' --job-stats'
88
- @b.append " #{@b.format level}" unless level.nil?
89
- yield @b if block_given?
90
- self
91
- end
92
- def libdir(lib_dir)
93
- @b.append " --libdir #{@b.format lib_dir}"
94
- yield @b if block_given?
95
- self
96
- end
97
- def multitask
98
- @b.append ' --multitask'
99
- yield @b if block_given?
100
- self
101
- end
102
- def no_deprecation_warnings
103
- @b.append ' --no-deprecation-warnings'
104
- yield @b if block_given?
105
- self
106
- end
107
- def no_search
108
- @b.append ' --no-search'
109
- yield @b if block_given?
110
- self
111
- end
112
- def no_system
113
- @b.append ' --no-system'
114
- yield @b if block_given?
115
- self
116
- end
117
- def prereqs
118
- @b.append ' --prereqs'
119
- yield @b if block_given?
120
- self
121
- end
122
- def quiet
123
- @b.append ' --quiet'
124
- yield @b if block_given?
125
- self
126
- end
127
- def rakefile(file)
128
- @b.append " --rakefile #{@b.format file}"
129
- yield @b if block_given?
130
- self
131
- end
132
- def rakelibdir(rake_lib_dir)
133
- @b.append " --rakelibdir #{@b.format rake_lib_dir}"
134
- yield @b if block_given?
135
- self
136
- end
137
- def require(file)
138
- @b.append " --require #{@b.format file}"
139
- yield @b if block_given?
140
- self
141
- end
142
- def rules
143
- @b.append ' --rules'
144
- yield @b if block_given?
145
- self
146
- end
147
- def silent
148
- @b.append ' --silent'
149
- yield @b if block_given?
150
- self
151
- end
152
- def suppress_backtrace(pattern)
153
- @b.append " --suppress-backtrace #{@b.format pattern}"
154
- yield @b if block_given?
155
- self
156
- end
157
- def system
158
- @b.append ' --system'
159
- yield @b if block_given?
160
- self
161
- end
162
- def tasks(pattern=nil)
163
- @b.append ' --tasks'
164
- @b.append " #{@b.format pattern}" unless pattern.nil?
165
- yield @b if block_given?
166
- self
167
- end
168
- def trace(out=nil)
169
- @b.append ' --trace'
170
- @b.append "=#{@b.format out}" unless out.nil?
171
- yield @b if block_given?
172
- self
173
- end
174
- def verbose
175
- @b.append ' --verbose'
176
- yield @b if block_given?
177
- self
178
- end
179
- def version
180
- @b.append ' --version'
181
- yield @b if block_given?
182
- self
183
- end
184
- def where(pattern=nil)
185
- @b.append ' --where'
186
- @b.append " #{@b.format pattern}" unless pattern.nil?
187
- yield @b if block_given?
188
- self
189
- end
190
- end
191
-
192
- end
193
- end
194
- 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 Schtasks
8
- COMMAND_NAME = 'schtasks'
9
- def self.version_detector
10
- @version_detector ||= DefaultVersionDetector.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,353 +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 Schtasks
9
- module V61
10
- VERSION = '6.1'
11
- @@config = CommandBuilderConfig.new FluentCommandBuilder::Schtasks::COMMAND_NAME, VERSION
12
- @@config.version_detector = FluentCommandBuilder::Schtasks.version_detector
13
- def configure_schtasks
14
- yield @@config
15
- @@config.validate_path
16
- @@config.validate_version
17
- end
18
- def schtasks
19
- b = UnderlyingBuilder.new @@config
20
- c = Schtasks.new(b)
21
- yield b if block_given?
22
- c
23
- end
24
- class Schtasks < CommandBase
25
- def initialize(underlying_builder)
26
- super underlying_builder
27
- end
28
- def create
29
- Create.new @b
30
- end
31
- def change
32
- Change.new @b
33
- end
34
- def run
35
- Run.new @b
36
- end
37
- def end
38
- End.new @b
39
- end
40
- def query
41
- Query.new @b
42
- end
43
- def delete
44
- Delete.new @b
45
- end
46
- end
47
- class Create < CommandBase
48
- def initialize(underlying_builder)
49
- super underlying_builder
50
- @b.append ' /create'
51
- end
52
- def schedule_type(schedule_type)
53
- @b.append " /sc #{@b.format schedule_type}"
54
- yield @b if block_given?
55
- self
56
- end
57
- def task_name(task_name)
58
- @b.append " /tn #{@b.format task_name}"
59
- yield @b if block_given?
60
- self
61
- end
62
- def task_run(task_run)
63
- @b.append " /tr #{@b.format task_run}"
64
- yield @b if block_given?
65
- self
66
- end
67
- def computer(computer, username=nil, password=nil)
68
- @b.append " /s #{@b.format computer}"
69
- @b.append " /u #{@b.format username}" unless username.nil?
70
- @b.append " /p #{@b.format_password password}" unless password.nil?
71
- yield @b if block_given?
72
- self
73
- end
74
- def run_as(username, password)
75
- @b.append " /ru #{@b.format username} /rp #{@b.format_password password}"
76
- yield @b if block_given?
77
- self
78
- end
79
- def modifier(modifier)
80
- @b.append " /mo #{@b.format modifier}"
81
- yield @b if block_given?
82
- self
83
- end
84
- def day(day)
85
- @b.append " /d #{@b.format day, ','}"
86
- yield @b if block_given?
87
- self
88
- end
89
- def month(month)
90
- @b.append " /m #{@b.format month, ','}"
91
- yield @b if block_given?
92
- self
93
- end
94
- def idle_time(idle_time)
95
- @b.append " /i #{@b.format idle_time}"
96
- yield @b if block_given?
97
- self
98
- end
99
- def start_time(start_time)
100
- @b.append " /st #{@b.format start_time}"
101
- yield @b if block_given?
102
- self
103
- end
104
- def repetition_interval(interval)
105
- @b.append " /ri #{@b.format interval}"
106
- yield @b if block_given?
107
- self
108
- end
109
- def end_time(end_time)
110
- @b.append " /et #{@b.format end_time}"
111
- yield @b if block_given?
112
- self
113
- end
114
- def duration(duration)
115
- @b.append " /du #{@b.format duration}"
116
- yield @b if block_given?
117
- self
118
- end
119
- def kill
120
- @b.append ' /k'
121
- yield @b if block_given?
122
- self
123
- end
124
- def start_date(start_date)
125
- @b.append " /sd #{@b.format start_date}"
126
- yield @b if block_given?
127
- self
128
- end
129
- def end_date(end_date)
130
- @b.append " /ed #{@b.format end_date}"
131
- yield @b if block_given?
132
- self
133
- end
134
- def run_only_when_logged_in
135
- @b.append ' /it'
136
- yield @b if block_given?
137
- self
138
- end
139
- def delete_upon_completion
140
- @b.append ' /z'
141
- yield @b if block_given?
142
- self
143
- end
144
- def force
145
- @b.append ' /f'
146
- yield @b if block_given?
147
- self
148
- end
149
- def help
150
- @b.append ' /?'
151
- yield @b if block_given?
152
- self
153
- end
154
- end
155
- class Change < CommandBase
156
- def initialize(underlying_builder)
157
- super underlying_builder
158
- @b.append ' /change'
159
- end
160
- def task_name(task_name)
161
- @b.append " /tn #{@b.format task_name}"
162
- yield @b if block_given?
163
- self
164
- end
165
- def computer(computer, username=nil, password=nil)
166
- @b.append " /s #{@b.format computer}"
167
- @b.append " /u #{@b.format username}" unless username.nil?
168
- @b.append " /p #{@b.format_password password}" unless password.nil?
169
- yield @b if block_given?
170
- self
171
- end
172
- def run_as(username, password)
173
- @b.append " /ru #{@b.format username} /rp #{@b.format_password password}"
174
- yield @b if block_given?
175
- self
176
- end
177
- def task_run(task_run)
178
- @b.append " /tr #{@b.format task_run}"
179
- yield @b if block_given?
180
- self
181
- end
182
- def start_time(start_time)
183
- @b.append " /st #{@b.format start_time}"
184
- yield @b if block_given?
185
- self
186
- end
187
- def repetition_interval(interval)
188
- @b.append " /ri #{@b.format interval}"
189
- yield @b if block_given?
190
- self
191
- end
192
- def end_time(end_time)
193
- @b.append " /et #{@b.format end_time}"
194
- yield @b if block_given?
195
- self
196
- end
197
- def duration(duration)
198
- @b.append " /du #{@b.format duration}"
199
- yield @b if block_given?
200
- self
201
- end
202
- def kill
203
- @b.append ' /k'
204
- yield @b if block_given?
205
- self
206
- end
207
- def start_date(start_date)
208
- @b.append " /sd #{@b.format start_date}"
209
- yield @b if block_given?
210
- self
211
- end
212
- def end_date(end_date)
213
- @b.append " /ed #{@b.format end_date}"
214
- yield @b if block_given?
215
- self
216
- end
217
- def enable
218
- @b.append ' /enable'
219
- yield @b if block_given?
220
- self
221
- end
222
- def disable
223
- @b.append ' /disable'
224
- yield @b if block_given?
225
- self
226
- end
227
- def run_only_when_logged_in
228
- @b.append ' /it'
229
- yield @b if block_given?
230
- self
231
- end
232
- def delete_upon_completion
233
- @b.append ' /z'
234
- yield @b if block_given?
235
- self
236
- end
237
- def help
238
- @b.append ' /?'
239
- yield @b if block_given?
240
- self
241
- end
242
- end
243
- class Run < CommandBase
244
- def initialize(underlying_builder)
245
- super underlying_builder
246
- @b.append ' /run'
247
- end
248
- def task_name(task_name)
249
- @b.append " /tn #{@b.format task_name}"
250
- yield @b if block_given?
251
- self
252
- end
253
- def computer(computer, username=nil, password=nil)
254
- @b.append " /s #{@b.format computer}"
255
- @b.append " /u #{@b.format username}" unless username.nil?
256
- @b.append " /p #{@b.format_password password}" unless password.nil?
257
- yield @b if block_given?
258
- self
259
- end
260
- def help
261
- @b.append ' /?'
262
- yield @b if block_given?
263
- self
264
- end
265
- end
266
- class End < CommandBase
267
- def initialize(underlying_builder)
268
- super underlying_builder
269
- @b.append ' /end'
270
- end
271
- def task_name(task_name)
272
- @b.append " /tn #{@b.format task_name}"
273
- yield @b if block_given?
274
- self
275
- end
276
- def computer(computer, username=nil, password=nil)
277
- @b.append " /s #{@b.format computer}"
278
- @b.append " /u #{@b.format username}" unless username.nil?
279
- @b.append " /p #{@b.format_password password}" unless password.nil?
280
- yield @b if block_given?
281
- self
282
- end
283
- def help
284
- @b.append ' /?'
285
- yield @b if block_given?
286
- self
287
- end
288
- end
289
- class Query < CommandBase
290
- def initialize(underlying_builder)
291
- super underlying_builder
292
- @b.append ' /query'
293
- end
294
- def format(format)
295
- @b.append " /fo #{@b.format format}"
296
- yield @b if block_given?
297
- self
298
- end
299
- def no_headings
300
- @b.append ' /nh'
301
- yield @b if block_given?
302
- self
303
- end
304
- def advanced_properties
305
- @b.append ' /v'
306
- yield @b if block_given?
307
- self
308
- end
309
- def computer(computer, username=nil, password=nil)
310
- @b.append " /s #{@b.format computer}"
311
- @b.append " /u #{@b.format username}" unless username.nil?
312
- @b.append " /p #{@b.format_password password}" unless password.nil?
313
- yield @b if block_given?
314
- self
315
- end
316
- def help
317
- @b.append ' /?'
318
- yield @b if block_given?
319
- self
320
- end
321
- end
322
- class Delete < CommandBase
323
- def initialize(underlying_builder)
324
- super underlying_builder
325
- @b.append ' /delete'
326
- end
327
- def task_name(task_name)
328
- @b.append " /tn #{@b.format task_name}"
329
- yield @b if block_given?
330
- self
331
- end
332
- def force
333
- @b.append ' /f'
334
- yield @b if block_given?
335
- self
336
- end
337
- def computer(computer, username=nil, password=nil)
338
- @b.append " /s #{@b.format computer}"
339
- @b.append " /u #{@b.format username}" unless username.nil?
340
- @b.append " /p #{@b.format_password password}" unless password.nil?
341
- yield @b if block_given?
342
- self
343
- end
344
- def help
345
- @b.append ' /?'
346
- yield @b if block_given?
347
- self
348
- end
349
- end
350
-
351
- end
352
- end
353
- end