module Aruba::Api::Commands

def terminate_all_commands(&block)

Other tags:
    Yield: -
def terminate_all_commands(&block)
  cmds = if block
           all_commands.select(&block)
         else
           all_commands
         end
  cmds.each(&:terminate)
  self
end