Skip to content

Commit 020ee34

Browse files
author
Andor Dávid
committed
Remove release ceation related codes
1 parent 0f630ec commit 020ee34

File tree

2 files changed

+0
-53
lines changed

2 files changed

+0
-53
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11

22
/fixtures/project-template/*/vendor/
33

4-
/release/
54
/vendor/
65

76
/cheppers-git-hooks-*.tar

RoboFile.php

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -75,58 +75,6 @@ public function __construct()
7575
}
7676
}
7777

78-
/**
79-
* Create release tar balls.
80-
*
81-
* @param string $version
82-
* Example: 1.0.0
83-
*
84-
* @throws \Exception
85-
*/
86-
public function releaseCreate($version)
87-
{
88-
if (!$this->isValidVersionNumber($version)) {
89-
throw new \Exception('Invalid version number', 1);
90-
}
91-
92-
$this->stopOnFail();
93-
94-
/** @var \Robo\Collection\Collection $collection */
95-
$collection = $this->collection();
96-
97-
$name = "{$this->packageVendor}-{$this->packageName}-{$version}";
98-
99-
$fs_stack = $this->taskFilesystemStack();
100-
$collection->add($fs_stack);
101-
102-
$fs_stack
103-
->remove("release/$name")
104-
->remove("release/$name.tar.gz")
105-
->copy('composer.json', "release/$name/composer.json")
106-
->copy('README.md', "release/$name/README.md");
107-
108-
foreach ($this->filesToDeploy as $file_name => $file_meta) {
109-
$fs_stack->copy(
110-
"hooks/$file_name",
111-
"release/$name/$file_name"
112-
);
113-
114-
$fs_stack->chmod(
115-
"release/$name/$file_name",
116-
$file_meta['base_mask'],
117-
0022
118-
);
119-
}
120-
121-
$collection->add(
122-
$this
123-
->taskPack("release/$name.tar.gz")
124-
->addDir($name, "release/$name")
125-
);
126-
127-
$collection->run();
128-
}
129-
13078
public function deployGitHooks()
13179
{
13280
$task = $this->getTaskDeployGitHooks();

0 commit comments

Comments
 (0)