Hi, I'm working with the Aegir project and getting an introduction to drush.

I installed drush, hosting, and provision a month ago, and now I'd like to know if I'm running the most current versions.

How do I determine the version of Drush I'm running?
How do I determine the version of Drush modules I'm running?

If there was a 'drush version' command, this would be super helpful.

Seems simple enough, if you explain how to do it, I'd love to contribute to writing it. I can php and have been around Drupal for years, but haven't found a way to get into writing code here.

Thanks for your help,

Mike

CommentFileSizeAuthor
#1 version.drush_.inc_.txt3.26 KBMichaelCole

Comments

MichaelCole’s picture

StatusFileSize
new3.26 KB

I wrote this version.drush.inc file. It uses 'cvs status' and looks for "Sticky Tags". There may be a better way, but this is a start.

Mike

aegir@vps10326:~/drupal-5.x$ drush version
Name                    Version                 File Path
----                    -------                 ---------
simpletest              DRUPAL-6--2-0-RC1       /var/aegir/drush/commands/simpletest/simpletest.drush.inc
core                    DRUPAL-6--2-0-RC1       /var/aegir/drush/commands/core/core.drush.inc
sql                     DRUPAL-6--2-0-RC1       /var/aegir/drush/commands/sql/sql.drush.inc
pm                      DRUPAL-6--2-0-RC1       /var/aegir/drush/commands/pm/pm.drush.inc
provision_mysql         DRUPAL-6--0-2-BETA1     /var/aegir/.drush/provision/db_server/provision_mysql.drush.inc
provision_drupal        DRUPAL-6--0-2-BETA1     /var/aegir/.drush/provision/platform/provision_drupal.drush.inc
provision_dns           DRUPAL-6--0-2-BETA1     /var/aegir/.drush/provision/dns_server/provision_dns.drush.inc
provision_apache        DRUPAL-6--0-2-BETA1     /var/aegir/.drush/provision/web_server/provision_apache.drush.inc
provision               DRUPAL-6--0-2-BETA1     /var/aegir/.drush/provision/provision.drush.inc
version                 Unknown.                /var/aegir/.drush/version.drush.inc
hosting_client          DRUPAL-5--0-2-BETA1     profiles/hostmaster/modules/hosting/client/hosting_client.drush.inc
hosting_alias           DRUPAL-5--0-2-BETA1     profiles/hostmaster/modules/hosting/alias/hosting_alias.drush.inc
hosting_migrate         DRUPAL-5--0-2-BETA1     profiles/hostmaster/modules/hosting/migrate/hosting_migrate.drush.inc
hosting_db_server       DRUPAL-5--0-2-BETA1     profiles/hostmaster/modules/hosting/db_server/hosting_db_server.drush.inc
hosting_site            DRUPAL-5--0-2-BETA1     profiles/hostmaster/modules/hosting/site/hosting_site.drush.inc
hosting_platform        DRUPAL-5--0-2-BETA1     profiles/hostmaster/modules/hosting/platform/hosting_platform.drush.inc
hosting_web_server      DRUPAL-5--0-2-BETA1     profiles/hostmaster/modules/hosting/web_server/hosting_web_server.drush.inc
hosting_package         DRUPAL-5--0-2-BETA1     profiles/hostmaster/modules/hosting/package/hosting_package.drush.inc
hosting                 DRUPAL-5--0-2-BETA1     profiles/hostmaster/modules/hosting/hosting.drush.inc
moshe weitzman’s picture

Status: Active » Closed (duplicate)