Module: BuildrGemjar::GemjarTask::GemProperties
- Included in:
- FileSourcedGem, NamedGem
- Defined in:
- lib/buildr-gemjar.rb
Instance Attribute Summary collapse
-
#unpack_globs ⇒ Object
Returns the value of attribute unpack_globs.
Instance Method Summary collapse
-
#install_root(gem_home) ⇒ Object
If the gem is installed in the given gem home, this method gives the path to its expanded root under ‘#gem_home/gems`.
Instance Attribute Details
#unpack_globs ⇒ Object
Returns the value of attribute unpack_globs.
156 157 158 |
# File 'lib/buildr-gemjar.rb', line 156 def unpack_globs @unpack_globs end |
Instance Method Details
#install_root(gem_home) ⇒ Object
If the gem is installed in the given gem home, this method gives the path to its expanded root under ‘BuildrGemjar::GemjarTask#gem_home/gems`.
161 162 163 |
# File 'lib/buildr-gemjar.rb', line 161 def install_root(gem_home) (gem_home + 'gems').children.detect { |p| p.to_s =~ /#{name}-#{version}/ } end |