class CreateGithubRelease::Assertions::GhCommandExists


@api public
Assert that the ‘gh’ command is in the path

def assert

Raises:
  • (SystemExit) - if the assertion fails

Returns:
  • (void) -
def assert
  print 'Checking that the gh command exists...'
  `which gh > /dev/null 2>&1`
  if $CHILD_STATUS.success?
    puts 'OK'
  else
    error 'The gh command was not found'
  end
end