fluent_command_builder 0.9.6 → 0.9.7
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.
@@ -0,0 +1,19 @@
|
|
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
|
@@ -0,0 +1,353 @@
|
|
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
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent_command_builder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-01-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
16
|
-
requirement: &
|
16
|
+
requirement: &70125449914040 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70125449914040
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: term-ansicolor
|
27
|
-
requirement: &
|
27
|
+
requirement: &70125449913600 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70125449913600
|
36
36
|
description: Fluent Command Builder makes building command lines easy and clean.
|
37
37
|
email: matthew-github@matthewriley.name
|
38
38
|
executables: []
|
@@ -91,6 +91,8 @@ files:
|
|
91
91
|
- lib/fluent_command_builder/command_builders/rake.rb
|
92
92
|
- lib/fluent_command_builder/command_builders/rake_09.rb
|
93
93
|
- lib/fluent_command_builder/command_builders/rake_100.rb
|
94
|
+
- lib/fluent_command_builder/command_builders/schtasks.rb
|
95
|
+
- lib/fluent_command_builder/command_builders/schtasks_61.rb
|
94
96
|
- lib/fluent_command_builder/command_builders/security_osx.rb
|
95
97
|
- lib/fluent_command_builder/command_builders/security_osx_107.rb
|
96
98
|
- lib/fluent_command_builder/command_builders/security_osx_108.rb
|