Module: BuildrGemjar::GemjarTask::GemProperties

Included in:
FileSourcedGem, NamedGem
Defined in:
lib/buildr-gemjar.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#unpack_globsObject

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