class Fog::Storage::Artifactory::Files
Public Instance Methods
all(options = {})
click to toggle source
# File lib/fog/artifactory/models/storage/files.rb, line 12 def all(options = {}) requires :directory options = options.reject { |_key, value| value.nil? || value.to_s.empty? } merge_attributes(options) load(service.client.get('/api/search/artifact', name: '.*', repos: directory.key)['results'].map do |artifact| path = URI.parse(artifact['uri']).path endpoint_path = URI.parse(service.client.endpoint).path path.slice!(endpoint_path) service.client.get(path) end) end
get(key, _options = {}, &_block)
click to toggle source
# File lib/fog/artifactory/models/storage/files.rb, line 24 def get(key, _options = {}, &_block) requires :directory new(service.client.get("/api/storage/#{directory.key}#{key}")) end
head(key, options = {})
click to toggle source
# File lib/fog/artifactory/models/storage/files.rb, line 29 def head(key, options = {}) # TODO: implement end
new(attributes = {})
click to toggle source
Calls superclass method
# File lib/fog/artifactory/models/storage/files.rb, line 33 def new(attributes = {}) requires :directory super({ directory: directory }.merge(attributes)) end