Class: FluentCommandBuilder::ExecutorBase

Inherits:
Object
  • Object
show all
Defined in:
lib/fluent_command_builder/command_executors/executor_base.rb

Instance Method Summary collapse

Instance Method Details

#execute(command) {|$?| ... } ⇒ Object

Yields:

  • ($?)


4
5
6
7
8
# File 'lib/fluent_command_builder/command_executors/executor_base.rb', line 4

def execute(command)
  result = do_execute command
  yield $? if block_given?
  result
end

#will_fail_on_error?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/fluent_command_builder/command_executors/executor_base.rb', line 14

def will_fail_on_error?
  false
end

#will_print_on_execute?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/fluent_command_builder/command_executors/executor_base.rb', line 10

def will_print_on_execute?
  false
end