class NightcrawlerSwift::Metadata

Public Instance Methods

execute(path = nil) click to toggle source
# File lib/nightcrawler_swift/commands/metadata.rb, line 4
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