Class: FluentCommandBuilder::Schtasks::V61::End
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::Schtasks::V61::End
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) ⇒ End
Returns a new instance of End.
266
267
268
269
|
# File 'lib/fluent_command_builder/command_builders/schtasks_61.rb', line 266
def initialize(underlying_builder)
super underlying_builder
@b.append ' /end'
end
|
Instance Method Details
#computer(computer, username = nil, password = nil) {|@b| ... } ⇒ Object
275
276
277
278
279
280
281
|
# File 'lib/fluent_command_builder/command_builders/schtasks_61.rb', line 275
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
|
#help {|@b| ... } ⇒ Object
282
283
284
285
286
|
# File 'lib/fluent_command_builder/command_builders/schtasks_61.rb', line 282
def help
@b.append ' /?'
yield @b if block_given?
self
end
|
#task_name(task_name) {|@b| ... } ⇒ Object
270
271
272
273
274
|
# File 'lib/fluent_command_builder/command_builders/schtasks_61.rb', line 270
def task_name(task_name)
@b.append " /tn #{@b.format task_name}"
yield @b if block_given?
self
end
|