function drush_has_boostrapped

8.0.x drush_has_boostrapped($phase)
6.x drush_has_boostrapped($phase)
7.x drush_has_boostrapped($phase)
4.x drush_has_boostrapped($phase)
5.x drush_has_boostrapped($phase)
master drush_has_boostrapped($phase)

Determine whether a given bootstrap phase has been completed

@returns TRUE if the specified bootstrap phase has completed.


phase: The bootstrap phase to test

2 calls to drush_has_boostrapped()
drush_sql_sync in commands/sql/
_drush_sql_query in commands/sql/


includes/, line 224
Functions used by drush to query the environment and setting the current configuration.


function drush_has_boostrapped($phase) {
  $phase_index = drush_get_context('DRUSH_BOOTSTRAP_PHASE');

  return isset($phase_index) && ($phase_index >= $phase);