Sha256: 8a2ea1c3929b6ebe747de4afe477f2c47f03e890daaef7b2c2076e530dfd4b64

Contents?: true

Size: 1010 Bytes

Versions: 30

Compression:

Stored size: 1010 Bytes

Contents

namespace :cul do
  namespace :wp do
    namespace :update do
      desc "Updates WordPress core to the latest version."
      task :core do
        on roles(:web) do
          within fetch(:wp_docroot) do
            execute :wp, 'core', 'update'
          end
        end
      end

      desc "Updates non-repo-managed plugins to the latest version."
      task :plugins do
        on roles(:web) do
          within fetch(:wp_docroot) do
            execute :wp, 'plugin', 'update', '--all'
          end
        end
      end

      desc "Updates non-repo-managed themes to the latest version."
      task :themes do
        on roles(:web) do
          within fetch(:wp_docroot) do
            execute :wp, 'theme', 'update', '--all'
          end
        end
      end

      desc "Updates WordPress core, plugins, and themes (in that order)."
      task :all do
        invoke 'cul:wp:update:core'
        invoke 'cul:wp:update:plugins'
        invoke 'cul:wp:update:themes'
      end
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
capistrano-cul-0.3.4 lib/capistrano/tasks/wp/update.cap
capistrano-cul-0.3.3 lib/capistrano/tasks/wp/update.cap
capistrano-cul-0.3.2 lib/capistrano/tasks/wp/update.cap
capistrano-cul-0.3.1 lib/capistrano/tasks/wp/update.cap
capistrano-cul-0.3.0 lib/capistrano/tasks/wp/update.cap
capistrano-cul-0.1.7 lib/capistrano/tasks/wp/update.cap
capistrano-cul-0.1.6 lib/capistrano/tasks/wp/update.cap
capistrano-cul-0.1.4 lib/capistrano/tasks/wp/update.cap
capistrano-cul-0.1.3 lib/capistrano/tasks/wp/update.cap
capistrano-cul-0.1.2 lib/capistrano/tasks/wp/update.cap
capistrano-cul-0.1.1 lib/capistrano/tasks/wp/update.cap
capistrano-cul-0.1.0 lib/capistrano/tasks/wp/update.cap
capistrano-cul-0.0.19 lib/capistrano/tasks/wp/update.cap
capistrano-cul-0.0.18 lib/capistrano/tasks/wp/update.cap
capistrano-cul-0.0.17 lib/capistrano/tasks/wp/update.cap
capistrano-cul-0.0.16 lib/capistrano/tasks/wp/update.cap
capistrano-cul-0.0.15 lib/capistrano/tasks/wp/update.cap
capistrano-cul-0.0.14 lib/capistrano/tasks/wp/update.cap
capistrano-cul-0.0.13 lib/capistrano/tasks/wp/update.cap
capistrano-cul-0.0.12 lib/capistrano/tasks/wp/update.cap