Module: FluentCommandBuilder::Schtasks::V61

Defined in:
lib/fluent_command_builder/command_builders/schtasks_61.rb

Defined Under Namespace

Classes: Change, Create, Delete, End, Query, Run, Schtasks

Constant Summary collapse

VERSION =
'6.1'
@@config =
CommandBuilderConfig.new FluentCommandBuilder::Schtasks::COMMAND_NAME, VERSION

Instance Method Summary collapse

Instance Method Details

#configure_schtasks {|@@config| ... } ⇒ Object

Yields:

  • (@@config)


12
13
14
15
16
# File 'lib/fluent_command_builder/command_builders/schtasks_61.rb', line 12

def configure_schtasks
  yield @@config
  @@config.validate_path
  @@config.validate_version
end

#schtasks {|b| ... } ⇒ Object

Yields:

  • (b)


17
18
19
20
21
22
# File 'lib/fluent_command_builder/command_builders/schtasks_61.rb', line 17

def schtasks
  b = UnderlyingBuilder.new @@config
  c = Schtasks.new(b)
  yield b if block_given?
  c
end