Module: FasterS3

Defined in:
lib/faster_s3.rb,
lib/faster_s3/version.rb,
lib/faster_s3/download.rb

Defined Under Namespace

Classes: Download, Part

Constant Summary collapse

VERSION =
"1.1.1"

Class Method Summary collapse

Class Method Details

.download(destination, options) ⇒ Object

Parameters:

  • destination (String)

    File will be written to this destination

  • options (Hash)

Options Hash (options):

  • :access_key_id (String)

    The access key id for the s3 account

  • :secret_access_key (String)

    The secret access key for the s3 account

  • :bucket_name (String)

    The s3 bucket name

  • :path (String)

    The path in s3 of the file

  • :parallel (String)

    Optional - number of parallel parts to download. Default is 8



19
20
21
# File 'lib/faster_s3.rb', line 19

def self.download(destination, options)
  Download.new(destination, options).download
end