Skip to content

Commit

Permalink
Add opt path helper.
Browse files Browse the repository at this point in the history
  • Loading branch information
bernd committed May 23, 2012
1 parent 892badc commit 4ca2c73
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/fpm/cookery/path_helper.rb
Expand Up @@ -18,6 +18,10 @@ def etc(path = nil)
current_pathname_for('etc')/path current_pathname_for('etc')/path
end end


def opt(path = nil)
current_pathname_for('opt')/path
end

def var(path = nil) def var(path = nil)
current_pathname_for('var')/path current_pathname_for('var')/path
end end
Expand Down
1 change: 1 addition & 0 deletions spec/path_helper_spec.rb
Expand Up @@ -13,6 +13,7 @@ def destdir; FPM::Cookery::Path.new('/tmp/dest') end
describe "path helper methods" do describe "path helper methods" do
[ ['prefix', '/usr'], [ ['prefix', '/usr'],
['etc', '/etc'], ['etc', '/etc'],
['opt', '/opt'],
['var', '/var'], ['var', '/var'],
['bin', '/usr/bin'], ['bin', '/usr/bin'],
['doc', '/usr/share/doc'], ['doc', '/usr/share/doc'],
Expand Down

0 comments on commit 4ca2c73

Please sign in to comment.