Sha256: ddbf86d04ca49aa577edf2ddfc64f538d7dad6a9ce52bb8f1b2ba23b1812fdfc

Contents?: true

Size: 323 Bytes

Versions: 1

Compression:

Stored size: 323 Bytes

Contents

module NightcrawlerSwift
  class Download < Command

    def execute path
      if path.nil? or path.empty?
        raise Exceptions::ValidationError.new "Download command requires a path parameter"
      end

      response = get "#{connection.public_url}/#{options.bucket}/#{path}"
      response.body
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nightcrawler_swift-0.5.0 lib/nightcrawler_swift/commands/download.rb