Method: FluentCommandBuilder::Schtasks::V61::End#computer
- Defined in:
- lib/fluent_command_builder/command_builders/schtasks_61.rb
#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 |