Class: FluentCommandBuilder::Schtasks::V61::Delete
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::Schtasks::V61::Delete
show all
- Defined in:
- lib/fluent_command_builder/command_builders/schtasks_61.rb
Instance Method Summary
collapse
Methods inherited from CommandBase
#configure!, #execute!, #to_s
Constructor Details
#initialize(underlying_builder) ⇒ Delete
Returns a new instance of Delete.
322
323
324
325
|
# File 'lib/fluent_command_builder/command_builders/schtasks_61.rb', line 322
def initialize(underlying_builder)
super underlying_builder
@b.append ' /delete'
end
|
Instance Method Details
#computer(computer, username = nil, password = nil) {|@b| ... } ⇒ Object
336
337
338
339
340
341
342
|
# File 'lib/fluent_command_builder/command_builders/schtasks_61.rb', line 336
def computer(computer, username=nil, password=nil)
@b.append " /s #{@b.format computer}"
@b.append " /u #{@b.format username}" unless username.nil?
@b.append " /p #{@b.format_password password}" unless password.nil?
yield @b if block_given?
self
end
|
#force {|@b| ... } ⇒ Object
331
332
333
334
335
|
# File 'lib/fluent_command_builder/command_builders/schtasks_61.rb', line 331
def force
@b.append ' /f'
yield @b if block_given?
self
end
|
#help {|@b| ... } ⇒ Object
343
344
345
346
347
|
# File 'lib/fluent_command_builder/command_builders/schtasks_61.rb', line 343
def help
@b.append ' /?'
yield @b if block_given?
self
end
|
#task_name(task_name) {|@b| ... } ⇒ Object
326
327
328
329
330
|
# File 'lib/fluent_command_builder/command_builders/schtasks_61.rb', line 326
def task_name(task_name)
@b.append " /tn #{@b.format task_name}"
yield @b if block_given?
self
end
|