Permalink
Browse files

Add opt path helper.

  • Loading branch information...
1 parent 892badc commit 4ca2c7397d74d58908acd0bfc50614127ae90049 @bernd committed May 23, 2012
Showing with 5 additions and 0 deletions.
  1. +4 −0 lib/fpm/cookery/path_helper.rb
  2. +1 −0 spec/path_helper_spec.rb
View
4 lib/fpm/cookery/path_helper.rb
@@ -18,6 +18,10 @@ def etc(path = nil)
current_pathname_for('etc')/path
end
+ def opt(path = nil)
+ current_pathname_for('opt')/path
+ end
+
def var(path = nil)
current_pathname_for('var')/path
end
View
1 spec/path_helper_spec.rb
@@ -13,6 +13,7 @@ def destdir; FPM::Cookery::Path.new('/tmp/dest') end
describe "path helper methods" do
[ ['prefix', '/usr'],
['etc', '/etc'],
+ ['opt', '/opt'],
['var', '/var'],
['bin', '/usr/bin'],
['doc', '/usr/share/doc'],

0 comments on commit 4ca2c73

Please sign in to comment.