Skip to content

Commit

Permalink
Fixed spelling of Artifact.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSkrypnyk committed Feb 27, 2024
1 parent 2e27264 commit f40dbbe
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 25 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ this commit: `force-push` or `branch`, accommodating different workflow
preferences.

See example of deployed artifact
in [Artefact branches](https://github.com/drevops/git-artifact-destination/branches).
in [Artifact branches](https://github.com/drevops/git-artifact-destination/branches).

## Modes

Expand Down Expand Up @@ -96,16 +96,16 @@ in your repository with the following content:

```php
<?php
use DrevOps\Robo\ArtefactTrait;
use DrevOps\Robo\ArtifactTrait;

/**
* Class RoboFile.
*/
class RoboFile extends \Robo\Tasks
{

use ArtefactTrait {
ArtefactTrait::__construct as private __artifactConstruct;
use ArtifactTrait {
ArtifactTrait::__construct as private __artifactConstruct;
}

public function __construct()
Expand Down
6 changes: 3 additions & 3 deletions RoboFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @see http://robo.li/
*/

use DrevOps\Robo\ArtefactTrait;
use DrevOps\Robo\ArtifactTrait;
use Robo\Tasks;

/**
Expand All @@ -14,8 +14,8 @@
class RoboFile extends Tasks
{

use ArtefactTrait {
ArtefactTrait::__construct as private __artifactConstruct;
use ArtifactTrait {
ArtifactTrait::__construct as private __artifactConstruct;
}

/**
Expand Down
16 changes: 8 additions & 8 deletions src/ArtefactTrait.php → src/ArtifactTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
use Symfony\Component\Finder\SplFileInfo;

/**
* Class Artefact.
* Class Artifact.
*
* Robo task to package current repository with all dependencies and send it
* to the remote repository.
*/
trait ArtefactTrait
trait ArtifactTrait
{

use FilesystemTrait {
Expand Down Expand Up @@ -106,7 +106,7 @@ trait ArtefactTrait
protected $showChanges;

/**
* Artefact build result.
* Artifact build result.
*
* @var bool
*/
Expand All @@ -127,7 +127,7 @@ trait ArtefactTrait
protected $now;

/**
* Artefact constructor.
* Artifact constructor.
*/
public function __construct()
{
Expand Down Expand Up @@ -190,7 +190,7 @@ public function artifact(string $remote, array $opts = [
$this->gitSetDst($remote);

$this->showInfo();
$this->prepareArtefact();
$this->prepareArtifact();

if ($this->needsPush) {
$this->doPush();
Expand Down Expand Up @@ -224,7 +224,7 @@ public function artifact(string $remote, array $opts = [
*
* @throws \Exception
*/
protected function prepareArtefact(): void
protected function prepareArtifact(): void
{
$this->gitSwitchToBranch($this->src, $this->artifactBranch, true);

Expand Down Expand Up @@ -340,7 +340,7 @@ protected function resolveOptions(array $options): void
protected function showInfo(): void
{
$this->writeln('----------------------------------------------------------------------');
$this->writeln(' Artefact information');
$this->writeln(' Artifact information');
$this->writeln('----------------------------------------------------------------------');
$this->writeln(' Build timestamp: '.date('Y/m/d H:i:s', $this->now));
$this->writeln(' Mode: '.$this->mode);
Expand All @@ -358,7 +358,7 @@ protected function showInfo(): void
protected function dumpReport(): void
{
$lines[] = '----------------------------------------------------------------------';
$lines[] = ' Artefact report';
$lines[] = ' Artifact report';
$lines[] = '----------------------------------------------------------------------';
$lines[] = ' Build timestamp: '.date('Y/m/d H:i:s', $this->now);
$lines[] = ' Mode: '.$this->mode;
Expand Down
2 changes: 1 addition & 1 deletion tests/Functional/AbstractFunctionalTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ abstract class AbstractFunctionalTestCase extends AbstractTestCase
protected $currentBranch;

/**
* Artefact branch.
* Artifact branch.
*
* @var string
*/
Expand Down
2 changes: 1 addition & 1 deletion tests/Functional/BranchTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* @group integration
*
* @covers \DrevOps\Robo\GitTrait
* @covers \DrevOps\Robo\ArtefactTrait
* @covers \DrevOps\Robo\ArtifactTrait
* @covers \DrevOps\Robo\FilesystemTrait
*/
class BranchTest extends AbstractFunctionalTestCase
Expand Down
2 changes: 1 addition & 1 deletion tests/Functional/ForcePushTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* @SuppressWarnings(PHPMD.TooManyPublicMethods)
*
* @covers \DrevOps\Robo\GitTrait
* @covers \DrevOps\Robo\ArtefactTrait
* @covers \DrevOps\Robo\ArtifactTrait
* @covers \DrevOps\Robo\FilesystemTrait
*/
class ForcePushTest extends AbstractFunctionalTestCase
Expand Down
6 changes: 3 additions & 3 deletions tests/Functional/GeneralTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*
* @group integration
*
* @covers \DrevOps\Robo\ArtefactTrait
* @covers \DrevOps\Robo\ArtifactTrait
* @covers \DrevOps\Robo\FilesystemTrait
*/
class GeneralTest extends AbstractFunctionalTestCase
Expand Down Expand Up @@ -39,7 +39,7 @@ public function testInfo(): void
$this->gitCreateFixtureCommits(1);
$output = $this->runBuild();

$this->assertStringContainsString('Artefact information', $output);
$this->assertStringContainsString('Artifact information', $output);
$this->assertStringContainsString('Mode: force-push', $output);
$this->assertStringContainsString('Source repository: '.$this->src, $output);
$this->assertStringContainsString('Remote repository: '.$this->dst, $output);
Expand Down Expand Up @@ -85,7 +85,7 @@ public function testReport(): void
$this->assertFileExists($report);
$output = file_get_contents($report);

$this->assertStringContainsString('Artefact report', (string) $output);
$this->assertStringContainsString('Artifact report', (string) $output);
$this->assertStringContainsString(sprintf('Source repository: %s', $this->src), (string) $output);
$this->assertStringContainsString(sprintf('Remote repository: %s', $this->dst), (string) $output);
$this->assertStringContainsString(sprintf('Remote branch: %s', $this->currentBranch), (string) $output);
Expand Down
2 changes: 1 addition & 1 deletion tests/Functional/TagTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* @group integration
*
* @covers \DrevOps\Robo\GitTrait
* @covers \DrevOps\Robo\ArtefactTrait
* @covers \DrevOps\Robo\ArtifactTrait
* @covers \DrevOps\Robo\FilesystemTrait
*/
class TagTest extends AbstractFunctionalTestCase
Expand Down
4 changes: 2 additions & 2 deletions tests/Unit/AbstractUnitTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace DrevOps\Robo\Tests\Unit;

use DrevOps\Robo\ArtefactTrait;
use DrevOps\Robo\ArtifactTrait;
use DrevOps\Robo\Tests\AbstractTestCase;

/**
Expand All @@ -22,7 +22,7 @@ protected function setUp(): void
{
parent::setUp();

$this->mock = $this->getMockForTrait(ArtefactTrait::class);
$this->mock = $this->getMockForTrait(ArtifactTrait::class);
$this->callProtectedMethod($this->mock, 'fsSetRootDir', [$this->fixtureDir]);
}
}
2 changes: 1 addition & 1 deletion tests/Unit/ExcludeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*
* @group unit
*
* @covers \DrevOps\Robo\ArtefactTrait
* @covers \DrevOps\Robo\ArtifactTrait
*/
class ExcludeTest extends AbstractUnitTestCase
{
Expand Down

0 comments on commit f40dbbe

Please sign in to comment.