Sha256: a50b0d1f364ff26373adf19078497b06d672eb6cc6e157d70c3deec12f61b25c

Contents?: true

Size: 297 Bytes

Versions: 7

Compression:

Stored size: 297 Bytes

Contents

module NightcrawlerSwift
  class Metadata < Command

    def execute path = nil
      resource_url = "#{connection.internal_url}/#{options.bucket}/#{path}"
      resource_url.gsub!(/\/$/, '') unless path

      response = head resource_url
      response.headers.symbolize_keys
    end

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

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