Navigation Menu

Skip to content

Commit

Permalink
Extract 'fish' logic into :shell_setup meta dep.
Browse files Browse the repository at this point in the history
  • Loading branch information
benhoskings committed May 19, 2010
1 parent 37fec04 commit a2b6324
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions shells.rb
@@ -1,9 +1,13 @@
dep 'fish' do
requires 'fish installed'
met? { grep which('fish'), '/etc/shells' }
meet { append_to_file which('fish'), '/etc/shells', :sudo => true }
meta :shell_setup do
template {
setup { requires "#{name} installed" }
met? { grep which(name), '/etc/shells' }
meet { append_to_file which(name), '/etc/shells', :sudo => true }
}
end

shell_setup 'fish'

src 'fish installed' do
requires 'ncurses', 'coreutils', 'gettext'
source "git://github.com/benhoskings/fish.git"
Expand Down

0 comments on commit a2b6324

Please sign in to comment.