Class: Capistrano::Distribution::Distributor::AbstractCurl Abstract
- Inherits:
-
AbstractArchiver
- Object
- Abstract
- AbstractArchiver
- Capistrano::Distribution::Distributor::AbstractCurl
- Defined in:
- lib/capistrano/distribution/distributor/abstract_curl.rb
Overview
Subclass and override Capistrano::Distribution::Distributor::Abstract#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.
Constant Summary
Constants inherited from AbstractArchiver
Capistrano::Distribution::Distributor::AbstractArchiver::EXT_MATCHER
Instance Attribute Summary
Attributes inherited from AbstractArchiver
Attributes inherited from Abstract
#context, #repo_id, #target, #url
Instance Method Summary collapse
-
#check ⇒ Boolean
Tests whether or not the archive indicated by Capistrano::Distribution::Distributor::Abstract#url is available via the
curlcommand.
Methods inherited from AbstractArchiver
Methods inherited from Abstract
#distribute, #initialize, #release_path, #repo_path
Constructor Details
This class inherits a constructor from Capistrano::Distribution::Distributor::AbstractArchiver
Instance Method Details
#check ⇒ Boolean
Tests whether or not the archive indicated by Capistrano::Distribution::Distributor::Abstract#url is available via the curl command.
21 22 23 |
# File 'lib/capistrano/distribution/distributor/abstract_curl.rb', line 21 def check context.test 'curl', '--fail', '--location', '--silent', '--head', '--request', 'GET', url end |