Class: Gemgate::Repository

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#gem_files=(value) ⇒ Object

Sets the attribute gem_files

Parameters:

  • value

    the value to set the attribute gem_files to.



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

def gem_files=(value)
  @gem_files = value
end

#index=(value) ⇒ Object

Sets the attribute index

Parameters:

  • value

    the value to set the attribute index to.



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

def index=(value)
  @index = value
end

#realizer=(value) ⇒ Object

Sets the attribute realizer

Parameters:

  • value

    the value to set the attribute realizer to.



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

def realizer=(value)
  @realizer = value
end

Instance Method Details

#add_gem(path) ⇒ Object



5
6
7
8
9
10
# File 'lib/gemgate/repository.rb', line 5

def add_gem(path)
  gem = realizer.call(path)

  gem_files.add(gem)
  index.add(gem)
end