Method: Aitch::Namespace#execute!

Defined in:
lib/aitch/namespace.rb

#execute!(*args, &block) ⇒ Object



47
48
49
50
51
52
53
54
# File 'lib/aitch/namespace.rb', line 47

def execute!(*args, &block)
  options = extract_args!(args)
  response = execute(**options, &block)

  raise response.error if response.error?

  response
end