Class: Gemgate::GemFiles

Inherits:
Object
  • Object
show all
Defined in:
lib/gemgate/gem_files.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#storageObject

Returns the value of attribute storage.



3
4
5
# File 'lib/gemgate/gem_files.rb', line 3

def storage
  @storage
end

Instance Method Details

#add(gem) ⇒ Object



5
6
7
# File 'lib/gemgate/gem_files.rb', line 5

def add(gem)
  storage.create("gems/#{gem.filename}", gem.data)
end