Skip to content

Commit

Permalink
Merge pull request #52 from jerguslejko/styling
Browse files Browse the repository at this point in the history
Change text styling
  • Loading branch information
taylorotwell authored May 28, 2020
2 parents 14240ce + 8c31a2f commit 6a7226c
Show file tree
Hide file tree
Showing 26 changed files with 26 additions and 30 deletions.
2 changes: 1 addition & 1 deletion src/BuildProcess/CollectSecrets.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class CollectSecrets
*/
public function __invoke()
{
Helpers::step('<bright>Collecting Secrets</>');
Helpers::step('<options=bold>Collecting Secrets</>');

$secrets = collect(
Helpers::app(ConsoleVaporClient::class)
Expand Down
2 changes: 1 addition & 1 deletion src/BuildProcess/CompressApplication.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class CompressApplication
*/
public function __invoke()
{
Helpers::step('<bright>Compressing Application</>');
Helpers::step('<options=bold>Compressing Application</>');

if (PHP_OS == 'Darwin') {
$this->compressApplicationOnMac();
Expand Down
2 changes: 1 addition & 1 deletion src/BuildProcess/CompressVendor.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function __invoke()
return;
}

Helpers::step('<bright>Compressing Vendor Directory</>');
Helpers::step('<options=bold>Compressing Vendor Directory</>');

if (PHP_OS == 'Darwin') {
return $this->compressOnMac();
Expand Down
2 changes: 1 addition & 1 deletion src/BuildProcess/ConfigureArtisan.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class ConfigureArtisan
*/
public function __invoke()
{
Helpers::step('<bright>Configuring Artisan</>');
Helpers::step('<options=bold>Configuring Artisan</>');

file_put_contents(
$this->appPath.'/artisan',
Expand Down
2 changes: 1 addition & 1 deletion src/BuildProcess/ConfigureComposerAutoloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function __invoke()
return;
}

Helpers::step('<bright>Configuring Composer Autoloader</>');
Helpers::step('<options=bold>Configuring Composer Autoloader</>');

file_put_contents(
$this->appPath.'/vendor/composer/autoload_static.php',
Expand Down
2 changes: 1 addition & 1 deletion src/BuildProcess/CopyApplicationToBuildPath.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class CopyApplicationToBuildPath
*/
public function __invoke()
{
Helpers::step('<bright>Copying Application Files</>');
Helpers::step('<options=bold>Copying Application Files</>');

$this->ensureBuildDirectoryExists();

Expand Down
2 changes: 1 addition & 1 deletion src/BuildProcess/ExecuteBuildCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class ExecuteBuildCommands
*/
public function __invoke()
{
Helpers::step('<bright>Executing Build Commands</>');
Helpers::step('<options=bold>Executing Build Commands</>');

foreach (Manifest::buildCommands($this->environment) as $command) {
Helpers::step('<comment>Running Command</comment>: '.$command);
Expand Down
2 changes: 1 addition & 1 deletion src/BuildProcess/ExtractAssetsToSeparateDirectory.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class ExtractAssetsToSeparateDirectory
*/
public function __invoke()
{
Helpers::step('<bright>Extracting Assets</>');
Helpers::step('<options=bold>Extracting Assets</>');

$this->ensureAssetDirectoryExists();

Expand Down
2 changes: 1 addition & 1 deletion src/BuildProcess/ExtractVendorToSeparateDirectory.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function __invoke()
return;
}

Helpers::step('<bright>Extracting Vendor Files</>');
Helpers::step('<options=bold>Extracting Vendor Files</>');

(new Filesystem)->move(
$this->appPath.'/vendor',
Expand Down
2 changes: 1 addition & 1 deletion src/BuildProcess/HarmonizeConfigurationFiles.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class HarmonizeConfigurationFiles
*/
public function __invoke()
{
Helpers::step('<bright>Harmonizing Configuration Files</>');
Helpers::step('<options=bold>Harmonizing Configuration Files</>');

$configFiles = (new Finder)->files()->in($this->appPath.'/config');

Expand Down
2 changes: 1 addition & 1 deletion src/BuildProcess/InjectErrorPages.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class InjectErrorPages
*/
public function __invoke()
{
Helpers::step('<bright>Injecting Error Pages</>');
Helpers::step('<options=bold>Injecting Error Pages</>');

$stubPath = $this->appPath.'/vendor/laravel/vapor-core/stubs';

Expand Down
2 changes: 1 addition & 1 deletion src/BuildProcess/InjectHandlers.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class InjectHandlers
*/
public function __invoke()
{
Helpers::step('<bright>Injecting Serverless Handlers</>');
Helpers::step('<options=bold>Injecting Serverless Handlers</>');

if (! is_dir($this->appPath.'/vendor/laravel/vapor-core')) {
Helpers::abort('Unable to find laravel/vapor-core installation.');
Expand Down
2 changes: 1 addition & 1 deletion src/BuildProcess/InjectRdsCertificate.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class InjectRdsCertificate
*/
public function __invoke()
{
Helpers::step('<bright>Injecting RDS SSL Certificate</>');
Helpers::step('<options=bold>Injecting RDS SSL Certificate</>');

$stubPath = $this->appPath.'/vendor/laravel/vapor-core/stubs';

Expand Down
2 changes: 1 addition & 1 deletion src/BuildProcess/ProcessAssets.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function __construct($assetUrl = null)
*/
public function __invoke()
{
Helpers::step('<bright>Processing Assets</>');
Helpers::step('<options=bold>Processing Assets</>');

foreach (AssetFiles::get($this->appPath.'/public') as $file) {
if (! Str::endsWith($file->getRealPath(), '.css')) {
Expand Down
2 changes: 1 addition & 1 deletion src/BuildProcess/RemoveIgnoredFiles.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class RemoveIgnoredFiles
*/
public function __invoke()
{
Helpers::step('<bright>Removing Ignored Files</>');
Helpers::step('<options=bold>Removing Ignored Files</>');

$this->removeDefaultIgnoredFiles();
$this->removeDefaultIgnoredDirectories();
Expand Down
2 changes: 1 addition & 1 deletion src/BuildProcess/SetBuildEnvironment.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function __construct($environment = null, $assetUrl = null)
*/
public function __invoke()
{
Helpers::step('<bright>Setting Build Environment</>');
Helpers::step('<options=bold>Setting Build Environment</>');

if (! file_exists($envPath = $this->appPath.'/.env')) {
$this->files->put($envPath, '');
Expand Down
4 changes: 0 additions & 4 deletions src/Commands/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,6 @@ protected function execute(InputInterface $input, OutputInterface $output)
*/
protected function configureOutputStyles(OutputInterface $output)
{
$output->getFormatter()->setStyle(
'bright', new OutputFormatterStyle('white', 'default', ['bold'])
);

$output->getFormatter()->setStyle(
'finished', new OutputFormatterStyle('green', 'default', ['bold'])
);
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/CommandCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function handle()
$this->option('command') ?? Helpers::ask('What command would you like to execute')
);

Helpers::step('<bright>Executing Function...</>'.PHP_EOL);
Helpers::step('<options=bold>Executing Function...</>'.PHP_EOL);

// We will poll the backend service to get the invocations status and wait until
// it gets done processing. Once it's done we will be able to show the status
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/DisplaysDeploymentProgress.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ protected function displayDeploymentSteps(Deployment $deployment)
protected function displayActiveDeploymentSteps(Deployment $deployment)
{
foreach ($deployment->displayableSteps($this->displayedSteps) as $step) {
Helpers::step("<bright>{$step}</bright>");
Helpers::step("<options=bold>{$step}</>");

$this->displayedSteps[] = $step;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/DownCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function handle()
{
Helpers::ensure_api_token_is_available();

Helpers::step('<bright>Initiating Maintenance Mode Deployment</bright>');
Helpers::step('<options=bold>Initiating Maintenance Mode Deployment</>');

$deployment = $this->displayDeploymentProgress(
$this->vapor->enableMaintenanceMode(Manifest::id(), $this->argument('environment'))
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/EnvPullCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function handle()

$environment = $this->argument('environment');

Helpers::step('<bright>Downloading Environment File...</>');
Helpers::step('<options=bold>Downloading Environment File...</>');

file_put_contents(
getcwd().'/.env.'.$environment,
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/EnvPushCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function handle()
Helpers::abort('The environment variables for that environment have not been downloaded.');
}

Helpers::step('<bright>Uploading Environment File...</>');
Helpers::step('<options=bold>Uploading Environment File...</>');

$this->vapor->updateEnvironmentVariables(
Manifest::id(), $environment, file_get_contents($file)
Expand Down
4 changes: 2 additions & 2 deletions src/Commands/Output/DeploymentSuccess.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ public function render(Deployment $deployment, DateTimeInterface $startedAt)
'<comment>Deployment ID</comment>',
'<comment>Environment URL (Copied To Clipboard)</comment>'
], [[
"<bright>{$deployment->id}</>",
"<bright>https://{$deployment->vanityDomain()}</>",
"<options=bold>{$deployment->id}</>",
"<options=bold>https://{$deployment->vanityDomain()}</>",
]]);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/RedeployCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function handle()
{
Helpers::ensure_api_token_is_available();

Helpers::step('<bright>Initiating Redeployment</bright>');
Helpers::step('<options=bold>Initiating Redeployment</>');

$deployment = $this->displayDeploymentProgress(
$this->vapor->redeploy(Manifest::id(), $this->argument('environment'))
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/RollbackCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function handle()
$this->formatDeployments($deployments)
);

Helpers::step('<bright>Initiating Rollback</bright>');
Helpers::step('<options=bold>Initiating Rollback</>');

// Once the rollback is running we will show the deployment pipeline as when
// running a typical deployment. After the deployment is over we can push
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/UpCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function handle()
{
Helpers::ensure_api_token_is_available();

Helpers::step('<bright>Initiating Active Mode Deployment</bright>');
Helpers::step('<options=bold>Initiating Active Mode Deployment</>');

$deployment = $this->displayDeploymentProgress(
$this->vapor->disableMaintenanceMode(Manifest::id(), $this->argument('environment'))
Expand Down

0 comments on commit 6a7226c

Please sign in to comment.