Sha256: 6970d4d6bcb07a11091bb330926d6861ea52ba40e679ac5e566d693cf036757a

Contents?: true

Size: 291 Bytes

Versions: 5

Compression:

Stored size: 291 Bytes

Contents

desc "Check that we can access everything"
task :check_write_permissions do
  on roles(:all) do |host|
    if test("[ -w #{fetch(:deploy_to)} ]")
      info "#{fetch(:deploy_to)} is writable on #{host}"
    else
      error "#{fetch(:deploy_to)} is not writable on #{host}"
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
quick_search-core-0.2.0 lib/capistrano/tasks/access_check.cap
quick_search-core-0.1.1 lib/capistrano/tasks/access_check.cap
quick_search-core-0.1.0 lib/capistrano/tasks/access_check.cap
quick_search-core-0.0.1 lib/capistrano/tasks/access_check.cap
quick_search-core-0.0.1.test lib/capistrano/tasks/access_check.cap