Skip to content

Commit b0c3a73

Browse files
author
nVitius
committed
Whitespace/formatting changes
1 parent 4005fe7 commit b0c3a73

4 files changed

Lines changed: 62 additions & 35 deletions

File tree

Aws/AutoScalingCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ class AutoScalingCommand extends AbstractAwsCommand
3636
*
3737
* @return AutoScalingClient
3838
*/
39-
protected function getClient() {
39+
protected function getClient()
40+
{
4041
$credentials = $this->getCredentials();
4142

4243
$client = AutoScalingClient::factory(array(

Aws/Ec2Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
/**
2828
* Authenticates with AWS for use with EC2 commands
2929
*
30-
* @author Mauricio Walters <mwalters@undergroundelephant.com>
30+
* @author Mauricio Walters <mwalters@undergroundelephant.com>
3131
*/
3232
class Ec2Command extends AbstractAwsCommand
3333
{

Command/Aws/Ec2/CreateImageCommand.php

Lines changed: 58 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
<?php
22

33
/**
4-
* Copyright 2014 Underground Elephant
5-
*
6-
* Licensed under the Apache License, Version 2.0 (the "License");
7-
* you may not use this file except in compliance with the License.
8-
* You may obtain a copy of the License at
9-
*
10-
* http://www.apache.org/licenses/LICENSE-2.0
11-
*
12-
* Unless required by applicable law or agreed to in writing, software
13-
* distributed under the License is distributed on an "AS IS" BASIS,
14-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15-
* See the License for the specific language governing permissions and
16-
* limitations under the License.
17-
*
18-
* @package aws-cli-bundle
19-
* @copyright (c) 2014 Underground Elephant
20-
* @license Apache License, Version 2.0
21-
*/
4+
* Copyright 2014 Underground Elephant
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*
18+
* @package aws-cli-bundle
19+
* @copyright (c) 2014 Underground Elephant
20+
* @license Apache License, Version 2.0
21+
*/
2222

2323
namespace Uecode\Bundle\AwsCliBundle\Command\Aws\Ec2;
2424

@@ -30,9 +30,9 @@
3030

3131
/**
3232
* Create Image command
33-
*
34-
* @link http://docs.aws.amazon.com/aws-sdk-php/latest/class-Aws.Ec2.Ec2Client.html#_createImage
35-
* @author Mauricio Walters <mwalters@undergroundelephant.com>
33+
*
34+
* @link http://docs.aws.amazon.com/aws-sdk-php/latest/class-Aws.Ec2.Ec2Client.html#_createImage
35+
* @author Mauricio Walters <mwalters@undergroundelephant.com>
3636
*/
3737
class CreateImageCommand extends Ec2Command
3838
{
@@ -43,14 +43,41 @@ protected function configure()
4343
{
4444
$this
4545
->setName('uecode:aws:ec2:createimage')
46-
->setDescription('Creates an Amazon EBS-backed AMI from an Amazon EBS-backed instance that is either running or stopped.')
47-
->addArgument('Name', InputArgument::REQUIRED, 'A name for the new image.')
48-
->addArgument('InstanceId', InputArgument::REQUIRED, 'The ID of the instance')
49-
->addArgument('Description', InputArgument::OPTIONAL, 'A description for the new image.')
50-
->addOption('BlockDeviceMappings', 'mappings', InputOption::VALUE_OPTIONAL, 'Information about one or more block device mappings. Takes JSON.')
51-
->addOption('NoReboot', 'noreboot', InputOption::VALUE_NONE, 'Amazon EC2 will not shut down the instance before creating the image. Filesystem integrity is not guaranteed.')
52-
->addOption('DryRun', 'dryrun', InputOption::VALUE_NONE, null)
53-
;
46+
->setDescription('Creates an Amazon EBS-backed AMI from an EBS-backed instance.')
47+
->addArgument(
48+
'Name',
49+
InputArgument::REQUIRED,
50+
'A name for the new image.'
51+
)
52+
->addArgument(
53+
'InstanceId',
54+
InputArgument::REQUIRED,
55+
'The ID of the instance'
56+
)
57+
->addArgument(
58+
'Description',
59+
InputArgument::OPTIONAL,
60+
'A description for the new image.'
61+
)
62+
->addOption(
63+
'BlockDeviceMappings',
64+
'mappings',
65+
InputOption::VALUE_OPTIONAL,
66+
'Information about one or more block device mappings. Takes JSON.'
67+
)
68+
->addOption(
69+
'NoReboot',
70+
'noreboot',
71+
InputOption::VALUE_NONE,
72+
'Amazon EC2 will not shut down the instance before creating the image.
73+
Filesystem integrity is not guaranteed.'
74+
)
75+
->addOption(
76+
'DryRun',
77+
'dryrun',
78+
InputOption::VALUE_NONE,
79+
null
80+
);
5481
}
5582

5683
/**
@@ -62,9 +89,8 @@ protected function execute(InputInterface $input, OutputInterface $output)
6289

6390
$options['BlockDeviceMappings'] = json_decode($options['BlockDeviceMappings']);
6491

65-
$client = $this->getClient();
66-
$result = $client->createImage($options);
67-
$output->writeln('AMI Image created with id '.$result->get('ImageId'));
92+
$result = $this->getClient()->createImage($options);
93+
$output->writeln('AMI Image created with id ' . $result->get('ImageId'));
6894

6995
return self::COMMAND_SUCCESS;
7096
}

Command/Aws/Ec2/DeregisterImageCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
* Deregister Image command
3333
*
3434
* @link http://docs.aws.amazon.com/aws-sdk-php/latest/class-Aws.Ec2.Ec2Client.html#_deregisterImage
35-
* @author Mauricio Walters <mwalters@undergroundelephant.com>
35+
* @author Mauricio Walters <mwalters@undergroundelephant.com>
3636
*/
3737
class DeregisterImageCommand extends Ec2Command
3838
{

0 commit comments

Comments
 (0)