class Capistrano::Distribution::Distributor::AbstractCurl

@abstract Subclass and override {#distribute} to create a distributor that

extracts archives reachable via +curl+ command.

A convenience class for distributors that extract an archive downloaded using the curl command.

Public Instance Methods

check() click to toggle source

Tests whether or not the archive indicated by {#url} is available via the curl command.

@return [Boolean] true if the archive is available; otherwise, false.

@see Abstract#check

# File lib/capistrano/distribution/distributor/abstract_curl.rb, line 21
def check
  context.test 'curl', '--fail', '--location', '--silent', '--head', '--request', 'GET', url
end