Class: Rab::Builder
- Inherits:
-
Object
- Object
- Rab::Builder
- Defined in:
- lib/rab/builder.rb
Instance Attribute Summary collapse
-
#dst ⇒ Object
readonly
Returns the value of attribute dst.
-
#src ⇒ Object
readonly
Returns the value of attribute src.
Instance Method Summary collapse
- #build! ⇒ Object
-
#initialize(src, dst) ⇒ Builder
constructor
A new instance of Builder.
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
#dst ⇒ Object (readonly)
Returns the value of attribute dst.
3 4 5 |
# File 'lib/rab/builder.rb', line 3 def dst @dst end |
#src ⇒ Object (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 |