diff options
author | Ryan Davis <ryand@zenspider.com> | 2011-01-05 02:23:58 -0800 |
---|---|---|
committer | Ryan Davis <ryand@zenspider.com> | 2011-01-05 02:23:58 -0800 |
commit | 5aab31d703ed97a3e580197449a9e0b75cea41bb (patch) | |
tree | 6ecee8dc557bded1815b36bd3e368da0ba53ff1f | |
parent | dbea8e4bc6b003e4ae506e902089b2b903b4d1c8 (diff) | |
download | hoe-5aab31d703ed97a3e580197449a9e0b75cea41bb.tar.gz |
+ Added Hoe::Package#pkg_path to make package hook writing easier.
[git-p4: depot-paths = "//src/hoe/dev/": change = 6104]
-rw-r--r-- | lib/hoe/package.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/hoe/package.rb b/lib/hoe/package.rb index 2af8112..e596716 100644 --- a/lib/hoe/package.rb +++ b/lib/hoe/package.rb @@ -73,6 +73,14 @@ module Hoe::Package end ## + # Returns the path used for packaging. Convenience method for those + # that need to write a package hook. + + def pkg_path + "pkg/#{spec.full_name}" + end + + ## # Install the named gem. def install_gem name, version = nil |