function drush_has_boostrapped

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

Determine whether a given bootstrap phase has been completed

@returns TRUE if the specified bootstrap phase has completed.

Parameters

phase: The bootstrap phase to test

2 calls to drush_has_boostrapped()
drush_sql_sync in commands/sql/sync.sql.inc
_drush_sql_query in commands/sql/sql.drush.inc

File

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

Code

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

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