Skip to content

Commit

Permalink
Merge pull request #13 from danepowell/orca-composer-2
Browse files Browse the repository at this point in the history
Fix ORCA due to composer 2
  • Loading branch information
danepowell authored Oct 28, 2020
2 parents 03bc477 + a2e1d71 commit 75a6038
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ jobs:

before_install:
- nvm use 12.13.1
- composer self-update 1.10.16
- composer create-project --no-dev acquia/orca ../orca "$ORCA_VERSION"
- ../orca/bin/travis/before_install.sh

Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@ Acquia Drupal Environment Detector

This package provides a common static class and methods for detecting the current Acquia Cloud environment.

It can report several characteristics of the current environment, including:
- Hosting provider (Acquia or non-Acquia)
- Hosting type (ACE, ACSF)
- Hosting realm (prod, devcloud, gardens, etc)
- Environment stage (dev, stage, prod)
- Environment type (IDE, ODE/CDE)
- Common site properties (name, file path)

See all available methods in [src/AcquiaDrupalEnvironmentDetector.php](src/AcquiaDrupalEnvironmentDetector.php).

## Installation and usage

In your project, require the plugin with Composer:
Expand Down
10 changes: 7 additions & 3 deletions src/AcquiaDrupalEnvironmentDetector.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public static function isAcsfEnv($ah_group = NULL, $ah_env = NULL) {
}

/**
* Is AH prod.
* Is this a prod environment on Acquia hosting.
*
* @param string|null $ah_env
* Environment machine name.
Expand All @@ -63,7 +63,11 @@ public static function isAhProdEnv($ah_env = NULL) {
}

/**
* Is AH stage.
* Is this a stage environment on Acquia hosting.
*
* Legacy stage environments are typically named 'stg'. More recently they are
* named 'test'. Some applications may have non-standard environment names,
* these are not supported.
*
* @param string|null $ah_env
* Environment machine name.
Expand All @@ -80,7 +84,7 @@ public static function isAhStageEnv($ah_env = NULL) {
}

/**
* Is AH dev.
* Is this a dev environment on Acquia hosting.
*
* @param string|null $ah_env
* Environment machine name.
Expand Down

0 comments on commit 75a6038

Please sign in to comment.