lib/demonz/drupal.rb in capistrano-demonz-0.0.8 vs lib/demonz/drupal.rb in capistrano-demonz-0.0.9

- old
+ new

@@ -258,10 +258,15 @@ if remote_file_exists?(update_script_file) run update_script_file end end + desc "Set release name for site" + task :update_visible_release_name, :roles => :web, :except => { :no_release => true } do + run "#{drush_bin} -r #{latest_release} vset --yes site_release_version `git describe --tags`" + end + desc "Compile SASS (using Compass) for this release" task :compile_sass, :roles => :web, :except => { :no_release => true } do themes = fetch(:themes, []) themes.each do |theme| theme_path = File.join(latest_release, 'sites', 'all', 'themes', theme) @@ -310,9 +315,10 @@ uses_sass = fetch(:uses_sass, false) create_db copy_old_to_new_db run_update_scripts + update_visible_release_name compile_sass if uses_sass # Run drush updb just incase run "#{drush_bin} -r #{latest_release} updb" end