1
0
mirror of https://github.com/hauke68/Magallanes.git synced 2025-09-13 12:40:18 +02:00
Commit Graph

386 Commits

Author SHA1 Message Date
Kirill
a3219e8f68 Default userGroup to 33:33. Removing extra condition. 2015-04-30 15:58:43 -07:00
Kirill
6f1bd5c0cc resultFetch is always false when owner is specified in config 2015-04-29 17:11:18 -07:00
Andrés Montañez
139b897fe5 Issue #210 2015-04-12 16:43:17 -03:00
Andrés Montañez
ce60a706ac SensioLabs Insight fixes 2015-04-12 16:15:46 -03:00
Andrés Montañez
a0f4920333 PSR-2 Fixer 2015-04-12 16:13:06 -03:00
Kuba Turek
288d7304be Merge pull request #176 from claudioflagbit/task-factory-test
Task factory test
2015-03-24 20:27:11 +01:00
Kuba Turek
f605692817 Merge pull request #208 from KillerDiller/develop
don’t fail the initial deployment to a target, and allow ssh without a username
2015-03-24 11:56:04 +01:00
ZesInternational
fd89d2c04a added $currentCopy to the RollbackTask.php 2015-03-13 15:00:58 +01:00
Stefan Paletta
a6bcfdaddd when releasing or rolling back, don’t chown the »current« symlink before we changed / created it. also don’t screw up the ssh cmdline if no username was given. 2015-03-13 11:51:27 +01:00
Claudio Zizza
1acffae330 minor phpdoc fix, test string fixed for unknown task class 2015-03-11 21:41:40 +01:00
Claudio Zizza
2c27e2c46d unittests for task factory and dummy task classes for tests created 2015-03-11 21:41:40 +01:00
Jakub Turek
e7c0b87ccd Move testing setters and getters to BaseTest 2015-03-08 21:21:49 +01:00
Jakub Turek
3b326227ae Remove setter from CompileCommand
Also, let the Compiler be constructed with DI or by itself
2015-03-08 21:21:49 +01:00
Jakub Turek
3792f5fb8c Fix code style in UnlockCommand 2015-03-08 21:21:49 +01:00
Jakub Turek
0bfe649aa5 Fix code style for LockCommand 2015-03-08 21:21:49 +01:00
Jakub Turek
c06a9c7cf1 Fix code style in CompileCommand
according to PSR2 coding rules
2015-03-08 21:21:49 +01:00
Jakub Turek
5602bf83fe Add CompileCommand tests 2015-03-08 21:21:49 +01:00
Jakub Turek
d58e89c41d Set compiler by setter for better testability 2015-03-08 21:21:48 +01:00
Jakub Turek
881f0b2d87 Fix syntax error in ListCommand::run 2015-03-08 21:21:48 +01:00
Jakub Turek
5a1f2502d2 [#202] Remove inconsistency in ssh options
Add UserKnownHostsFile and StrictHostKeyChecking to scp command in TarGz strategy.
2015-03-08 13:11:05 +01:00
Kuba Turek
a45802acea Merge pull request #195 from spongeben/fix-rsync-deploy
Fix 1st deploy bug
2015-03-07 15:07:54 +01:00
Kuba Turek
b8e6ea062e Merge pull request #187 from edpauto/git-rebase-fix
Create release directory for GitRebase strategy
2015-02-24 21:19:41 +01:00
Kuba Turek
9becda4df9 Merge pull request #167 from SenseException/command-factory
Command factory tests
2015-02-21 22:00:37 +01:00
Andrés Montañez
dc18a91cf7 SensioLabs Insight. 2015-02-21 14:23:24 -02:00
Claudio Zizza
27423f1f3e Merge branch 'develop' into command-factory 2015-02-09 20:32:27 +01:00
spongeben
aab71eceac Change "current" symlink owner only if it exists 2015-02-09 14:44:34 +01:00
spongeben
3a19d3ef3c Fix release directory not created on first deploy 2015-02-09 14:43:33 +01:00
Ramunas
5e84f0ada4 doing permission fix before actual relase, prevents from cases when released code cannot be accessed while chown is working 2015-02-08 21:19:34 +02:00
Kuba Turek
24b893bd7c Fix remote deployment path for GitRebaseTask 2015-02-06 20:50:07 +01:00
Kuba Turek
8752790b3f [#185] Create release directory for GitRebase strategy if releases are enabled 2015-02-06 20:39:23 +01:00
Kuba Turek
cd7c39f881 Merge pull request #179 from jhuet/fix/rollback-release-directory
Fix/rollback release directory
2015-02-05 13:17:38 +01:00
Dmitriy Ulyanov
cc615dda81 Ignoring errors while deleting temp files 2015-01-25 21:50:00 +03:00
Andrés Montañez
1cf7c56c39 Merge pull request #180 from MovingImage24/dump_symlinks
make h option for targz optional, default is set h option
2015-01-24 13:21:06 -02:00
Andrés Montañez
4ea95622ad Merge pull request #181 from KillerDiller/master
fix bug in ApplyFaclsTask due to $cdToDirectoryFirst=true
2015-01-24 13:13:58 -02:00
Andrés Montañez
39841a5678 Merge pull request #170 from jhuet/feature/task-permissions
Feature/task permissions
2015-01-24 13:12:16 -02:00
Kuba Turek
acd1891c66 Add shorten version for env.variables in task config 2015-01-18 20:10:26 +01:00
Kuba Turek
e4ba19679a Prepend environment variables to command 2015-01-17 23:34:47 +01:00
Kuba Turek
6b207eb480 Obtain environment variables 2015-01-17 23:29:12 +01:00
Alexander Miehe
55a5c0c640 Fix key name to follow naming convention 2015-01-14 09:30:52 +01:00
Stefan Paletta
bbeedffd82 make ApplyFaclsTask compatible with default AbstractTask::runCommandRemote()parameter $cdToDirectoryFirst=true 2015-01-13 17:16:56 +01:00
Alexander Miehe
4cdb95f3be make h option for targz optional, default is set h option 2015-01-12 19:50:19 +01:00
Jérémy Huet
d25d015356 Rollback directory should include deployment:to config variable 2015-01-12 18:50:32 +01:00
Andrés Montañez
f4c3817b37 Merge branch 'master' into develop 2015-01-09 21:03:06 -02:00
Andrés Montañez
a1deacd4e3 Merge pull request #178 from MovingImage24/master
switch the »current« symlink in an atomic way
2015-01-09 21:02:17 -02:00
Andrés Montañez
f04cced989 Merge branch 'master' into develop 2015-01-09 20:47:26 -02:00
Andrés Montañez
2baf8f3d44 Merge pull request #177 from MovingImage24/connect_timeout
Add config option to set ConnectTimeout for ssh connections
2015-01-09 20:32:39 -02:00
Andrés Montañez
3e07478338 Merge pull request #171 from jhuet/fix/scm-working-directory
Fix/Scm working directory
2015-01-09 20:30:24 -02:00
Stefan Paletta
4e17263773 switch the »current« symlink in an atomic way 2015-01-09 17:27:14 +01:00
Alexander Miehe
70c4823581 Add config option to set ConnectTimeout for ssh connections 2015-01-09 14:05:37 +01:00
Jérémy Huet
5643616e50 Only tries to guess web server user if none provided with 'group' parameter 2014-12-28 16:47:59 +01:00
Dmitry Motylev
3b70a8a3c1 fix: DeployCommand does not fail when no one "Post-Deployment Tasks" failed and failed "Deployment Task" exist 2014-12-23 17:34:48 +00:00
Jérémy Huet
fbc50a52bd Adds a task to only have read permission for web server 2014-12-18 17:46:13 +01:00
Jérémy Huet
42d3d5a8a1 Better usage doc + allow to set owner and group by using www-data:www-data syntax + task now fails if at least one command returns error 2014-12-18 17:45:12 +01:00
Jérémy Huet
209c6b9aa3 typo 2014-12-15 18:50:27 +01:00
Jérémy Huet
ffdadb45cf More generic way to handle command line options 2014-12-15 18:50:09 +01:00
Jérémy Huet
979a86992c More generic way to retrieve web server user 2014-12-13 16:44:47 +01:00
Jérémy Huet
e449a4529f Adds a recursive parameter and allows for more chmod possibilities such as +a 2014-12-13 16:22:56 +01:00
Jérémy Huet
89d82b9992 Changing EOL to Linux LF 2014-12-13 16:05:13 +01:00
Jérémy Huet
9d1e6aba6f Allow for changing permissions on local host too depending on the stage 2014-12-13 15:57:33 +01:00
Jérémy Huet
a58dcbe766 git local commands should be executed in the deployment:from directory 2014-12-13 15:14:43 +01:00
Jérémy Huet
8247b15ad0 Adds PermissionsWritableByApache task that extends Permissions task we predefined parameters 2014-12-13 13:59:57 +01:00
Jérémy Huet
d2b7e0e94f Adds Permissions task. Parameters are : paths, checkPathsExist, owner, group, rights 2014-12-13 13:58:06 +01:00
Андрей Колченко
2a8beeb864 Remove symfony/filesystem from project depends. 2014-12-08 12:57:26 +03:00
Андрей Колченко
e84689934d Merge 2014-12-08 12:56:29 +03:00
Claudio Zizza
5b63f4b5d0 tests for command factory created 2014-12-07 23:00:55 +01:00
Ismael Ambrosi
8ae83cbabd Use instanceof instead of method is_a
Since is_a is a method, it is significantly slower than using instanceof

Following is a perfomance comparison:
http://micro-optimization.com/is_a-vs-instanceof
2014-12-05 02:40:30 -02:00
Andrés Montañez
ba9b322dab Merge pull request #158 from samuel4x4/develop
Bug fix for scm/force-update, add general/manually task, bug fix for symfony2/doctrine-migrate, improve symfony2/cache-clear
2014-12-01 21:33:21 -02:00
Andrés Montañez
555269bf66 Merge pull request #154 from gudron/rollback_exception
Rollback exception. Fixed bug with deployment description in hosts section.
2014-12-01 21:33:10 -02:00
samuel4x4
4d1048cca6 Add optional parameters for symfony2/cache-clear
Add optional parameters for symfony2/cache-clear task like --no-warmup.
2014-11-24 01:36:08 +02:00
samuel4x4
5eb771bf30 Rename DoctrineMigrate to DoctrineMigrateTask
I hope this is the reason it doesn't works.
2014-11-24 01:08:52 +02:00
samuel4x4
e9e5ab1d45 Fix ManuallyTask namespace
namespace Mage\Task\BuiltIn\General
2014-11-24 00:44:23 +02:00
samuel4x4
94673b4af2 manually task
one more example for the manually task
2014-11-23 23:57:00 +02:00
samuel4x4
41c3e00f67 Task for running multiple manually commands
The purpose of this task is to provide a way to run multiple custom
commands for your specific project, before Magallanes will have build-in
tasks for your needs. Also maybe you'll just not consider you should
create custom tasks for all commands you need (e.g. specific user rights
for specific files and directories).
2014-11-23 23:34:58 +02:00
samuel4x4
c010fc662e Change runCommandRemote() to runCommand()
Change runCommandRemote() to runCommand(), you decide if the command is
running local or remote depending of the stage you put the
scm/force-update task. Remove the last $result =
$this->runCommandLocal($command), not necessary.
2014-11-23 23:03:31 +02:00
Alex V Kotelnikov
a632dac80a added in-deploy flag @ rollback task. 2014-11-13 16:47:52 +04:00
Alex V Kotelnikov
5eb26748ab added restriction to run the rollback.
small changes at rollback output.
2014-11-13 16:40:02 +04:00
Alex V Kotelnikov
db4b4299c2 added rollback delete default option from yaml configs 2014-11-13 02:07:20 +04:00
Alex V Kotelnikov
8e603bd0d2 fixed bug with a env-configuration containing deployment description in hosts section 2014-11-13 00:13:19 +04:00
Kuba Turek
d63d105471 Add ability to set 'verbose_logging' for environment 2014-11-11 20:38:26 +01:00
Kuba Turek
0734c7be0a Check if verbose logging is enabled 2014-11-11 20:34:50 +01:00
Kuba Turek
654753b70f Avoid duplicating output when verbose option is turned on 2014-11-11 20:29:46 +01:00
Kuba Turek
67e00bca59 Add verbose logging state variable 2014-11-11 20:27:33 +01:00
Kuba Turek
575632d62b Enable configurable verbose logging 2014-11-11 20:18:27 +01:00
Андрей Колченко
1dc97d77f8 Fix email. 2014-11-05 17:19:40 +03:00
Андрей Колченко
3a41a860d0 Make target dir before invoking "ln".
Fix bug with spaces in path.
2014-11-05 17:16:55 +03:00
Андрей Колченко
ce2da4e270 Getting linked entities. 2014-11-05 16:42:13 +03:00
Андрей Колченко
d52927fe07 Get path and strategy. 2014-11-05 16:39:43 +03:00
Андрей Колченко
4c719f5efd PHP 5.3 does not support "[]" brackets. 2014-11-05 15:37:07 +03:00
Андрей Колченко
642773b5af PSR-2 style. 2014-11-05 15:36:14 +03:00
Andrés Montañez
30a53fcfda Merge branch 'master' into develop 2014-11-01 19:48:31 -02:00
Andrés Montañez
c34fa53af5 Fixes #121 2014-11-01 19:31:04 -02:00
Andrés Montañez
40e8c33846 Related to #130 2014-11-01 19:19:05 -02:00
Andrés Montañez
8771cf2ab1 Fixes #131 2014-11-01 19:09:25 -02:00
Andrés Montañez
e4aafb3d3f Merge pull request #150 from gudron/rollback_exception
Rollback exception
2014-11-01 18:35:12 -02:00
Andrés Montañez
27a4da4115 Merge pull request #149 from gudron/relative_linking
Relative linking @ shared file task.
2014-11-01 18:27:10 -02:00
Andrés Montañez
df632b3fe3 Tweak excludes files. 2014-11-01 18:15:39 -02:00
Andrés Montañez
a71bd5fca0 Merge pull request #148 from gudron/exclude_from_file
Rsync , TarGz exclude from file
2014-11-01 18:08:08 -02:00
Alex V Kotelnikov
b924b92240 added config reload @ after rollback exception 2014-10-31 00:03:31 +04:00
Alex V Kotelnikov
438a81542e changes @ deploy command. added rollback exception functionality. 2014-10-30 23:49:01 +04:00
Alex V Kotelnikov
50e2d6eeb5 small fixes @ link shared files task. wrong constant value 2014-10-30 23:16:07 +04:00