Commit f123e13d authored by Jon Pugh's avatar Jon Pugh

Convert site properties into ProvisionProperties so they can use the defaults and --ask-defaults.

parent 379005a6
......@@ -6,6 +6,7 @@ use Aegir\Provision\Application;
use Aegir\Provision\ServiceSubscriber;
use Aegir\Provision\Provision;
use Symfony\Component\Config\Definition\ConfigurationInterface;
use Symfony\Component\Console\Input\ArgvInput;
* Class SiteContext
......@@ -77,11 +78,21 @@ class SiteContext extends PlatformContext implements ConfigurationInterface
->description('site: The platform this site is run on. (Optional)')
$options['uri'] = 'site: URI, no http:// or trailing /';
$options['language'] = 'site: site language; default en';
$options['profile'] = 'site: Drupal profile to use; default standard';
// @TODO: check for other sites with the URI.
$options['uri'] = Provision::newProperty()
->description('site: URI, no http:// or trailing /')
$options['language'] = Provision::newProperty('site: site language; default en')
//@TODO: Language handling across provision, and an arbitrary site install values tool.
$options['profile'] = Provision::newProperty('site: Drupal profile to use; default standard')
$options['site_path'] = Provision::newProperty()
->description('site: The site configuration path (sites/ If left empty, will be generated automatically.')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment