Sha256: 89a1070661904d6757d4d01cef7aec1ae47691276063e7192f6e211f394ec2b2

Contents?: true

Size: 325 Bytes

Versions: 9

Compression:

Stored size: 325 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.internal_url}/#{options.bucket}/#{path}"
      response.body
    end

  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
nightcrawler_swift-1.0.0 lib/nightcrawler_swift/commands/download.rb
nightcrawler_swift-0.11.1 lib/nightcrawler_swift/commands/download.rb
nightcrawler_swift-0.11.0 lib/nightcrawler_swift/commands/download.rb
nightcrawler_swift-0.10.0 lib/nightcrawler_swift/commands/download.rb
nightcrawler_swift-0.9.0 lib/nightcrawler_swift/commands/download.rb
nightcrawler_swift-0.8.1 lib/nightcrawler_swift/commands/download.rb
nightcrawler_swift-0.8.0 lib/nightcrawler_swift/commands/download.rb
nightcrawler_swift-0.7.0 lib/nightcrawler_swift/commands/download.rb
nightcrawler_swift-0.6.0 lib/nightcrawler_swift/commands/download.rb