Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
The benefits include
- decreased burden in setup: it has a drush.bat for windows; and for linux, all you have to do is ln /usr/bin/php to drush.php
- its' already ported to D7 !!
- it's very close to being, or already is core-worthy
- many people already use it and are familiar with using it at the command line. this project could greatly extend its user base
Another genius proposal! If drush is executed by the webserver then it will write PHP files by the webserver user which is exactly what plugin manager is written not to do.
The only way this could work is by having plugin manager somehow prepare everything from the UI and then having the user ssh into the machine and doing something like "drush pluginmanager apply". But then the difference to just using drush pm is quite minor.
I'm setting this back to active because Frando's "drush pluginmanager apply" idea hasn't had a chance for evaluation. This also relates to running the command on cron. Here's catch__ and chx's discussion about running this on cron:
<catch__> if we can queue stuff and have drush run via cron, that'd be pretty cool.
<chx> because we created an automated mechanism again where you do something on a webserver and automatically files get written and eventually executed by Apahce
<chx> not immediately
<chx> but eventually
<chx> so this needs quite some thought
<catch__> chx: not by apache, run via php cli.
<catch__> chx: extra cron job just for cron.
<catch__> just for drush.
<chx> catch__: there is a chain of actions here. you tell pm , i want this installed. cron runs , php file gets written. so if i can do a CSRFC attack against PM then you are toast...
<chx> *CSRF
<chx> so while Apache does not write PHP, indirectly it does
<catch__> chx: yes of course - and ftp handles this by requiring user/password right?
<chx> yes
<chx> and password is not stored
<chx> now, if you go indirect route then you must store
<catch__> chx: OK, so seems like a solvable problem, just needs to be solid.
<chx> not easy
<catch__> chx: well, settings.php?
<chx> I am not sure it's solveable
I dont think this makes sense as a backend, because Drush would almost definitely need to use a backend to modify/upload files; and since drush already has a function for installing/managing plugins, I'm going to say this is a wont fix.
Just making this "re-active" re: Seeing that webeanbled.com did it quiet well. Therefore I am assuming there must be a safe way to accomplish this. Also interestingly their interface looks pretty close to Plugin Manager's interface.
It's a Drush GUI that uses SSH. Right now it only works on windows but it will not take much work to make it work on Linux/Mac. Current features are pretty limited, but it's getting there as I have free time. Code is pretty simple if anyone wants to jump in and help!
tech note: requires a server with SSH and Drush 4.4 installed.
Comments
Comment #1
mitchell commentedThe benefits include
- decreased burden in setup: it has a drush.bat for windows; and for linux, all you have to do is ln /usr/bin/php to drush.php
- its' already ported to D7 !!
- it's very close to being, or already is core-worthy
- many people already use it and are familiar with using it at the command line. this project could greatly extend its user base
Comment #2
swentel commentedSubscribing, I'll see if I can create a backend for plugin manager.
Edit:: this probably won't work at all with Drush.
Comment #3
chx commentedAnother genius proposal! If drush is executed by the webserver then it will write PHP files by the webserver user which is exactly what plugin manager is written not to do.
Comment #4
Frando commentedThe only way this could work is by having plugin manager somehow prepare everything from the UI and then having the user ssh into the machine and doing something like "drush pluginmanager apply". But then the difference to just using drush pm is quite minor.
Comment #5
mitchell commented@Frando: as per your question in IRC about WordPress Automatic Upgrade, I found on its faq: http://wordpress.org/extend/plugins/wordpress-automatic-upgrade/faq/
Do I need to change permissions on files?
No WPAU will ask you for your FTP credentials and do it automatically.
Comment #6
mitchell commentedI'm setting this back to active because Frando's "drush pluginmanager apply" idea hasn't had a chance for evaluation. This also relates to running the command on cron. Here's catch__ and chx's discussion about running this on cron:
Comment #7
jabapyth commentedI dont think this makes sense as a backend, because Drush would almost definitely need to use a backend to modify/upload files; and since drush already has a function for installing/managing plugins, I'm going to say this is a wont fix.
Comment #8
frazras commentedWebenabled.com does a pretty nice job with a Drush frontend. Anybody here has any clue how they do it?
Comment #9
frazras commentedJust making this "re-active" re: Seeing that webeanbled.com did it quiet well. Therefore I am assuming there must be a safe way to accomplish this. Also interestingly their interface looks pretty close to Plugin Manager's interface.
Comment #10
Anonymous (not verified) commentedComment #11
justindavis commentedsubscribing.
Comment #12
jrowny commentedIf you're feeling adventurous you can build this project with Flash Builder 4... http://code.google.com/p/drushpal/
It's a Drush GUI that uses SSH. Right now it only works on windows but it will not take much work to make it work on Linux/Mac. Current features are pretty limited, but it's getting there as I have free time. Code is pretty simple if anyone wants to jump in and help!
tech note: requires a server with SSH and Drush 4.4 installed.