Module: Pgmove::Helper

Includes:
Logger
Included in:
Bucardo, Db
Defined in:
lib/pgmove/helper.rb

Instance Method Summary collapse

Methods included from Logger

#logger, stderr, #stderr

Instance Method Details

#system!(command, display: true, env: {}) ⇒ Object



8
9
10
11
12
# File 'lib/pgmove/helper.rb', line 8

def system!(command, display: true, env: {})
  logger.bullet command if display
  ok = system env, command
  raise "Non zero exit: #{command}" if not ok
end