lib/fog/artifactory/models/storage/file.rb in fog-artifactory-0.2.0 vs lib/fog/artifactory/models/storage/file.rb in fog-artifactory-0.3.0

- old
+ new

@@ -33,11 +33,11 @@ @directory end def destroy requires :directory, :key - service.client.delete(attributes[:download_uri]) + service.client.delete(download_uri) true end def save(_options = {}) requires :body, :directory, :key @@ -47,22 +47,18 @@ true end def public_url requires :directory, :key - self.download_uri + download_uri end alias_method :url, :public_url def download_uri return attributes[:download_uri] if attributes[:download_uri].present? requires :directory, :key ::File.join(service.client.endpoint, attributes[:directory].key, attributes[:key]) end - - # puts attributes[:directory].key - # URI.join(service.client.endpoint, attributes[:directory].key, attributes[:key]).to_s - # end end end end end