Class: Rab::Builder

Inherits:
Object
  • Object
show all
Defined in:
lib/rab/builder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(src, dst) ⇒ Builder

Returns a new instance of Builder.



5
6
7
# File 'lib/rab/builder.rb', line 5

def initialize(src, dst)
  @src, @dst = src, dst
end

Instance Attribute Details

#dstObject (readonly)

Returns the value of attribute dst.



3
4
5
# File 'lib/rab/builder.rb', line 3

def dst
  @dst
end

#srcObject (readonly)

Returns the value of attribute src.



3
4
5
# File 'lib/rab/builder.rb', line 3

def src
  @src
end

Instance Method Details

#build!Object



9
10
11
12
# File 'lib/rab/builder.rb', line 9

def build!
  prj = Bower::Project.create!(src)
  Gem::Packer.new(prj).pack!(dst)
end