Class: Rabbit::GemBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/rabbit/gem-builder.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(spec) ⇒ GemBuilder

Returns a new instance of GemBuilder.


27
28
29
# File 'lib/rabbit/gem-builder.rb', line 27

def initialize(spec)
  @spec = spec
end

Class Method Details

.build(spec) ⇒ Object


22
23
24
# File 'lib/rabbit/gem-builder.rb', line 22

def build(spec)
  new(spec).build
end

Instance Method Details

#buildObject


32
33
34
# File 'lib/rabbit/gem-builder.rb', line 32

def build
  Gem::Builder.new(@spec).build
end