Skip to content

Commit

Permalink
poop can digest a recipe in recipes/
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Bombadil committed Oct 6, 2012
1 parent 3c5672e commit 929e9bc
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 22 deletions.
6 changes: 6 additions & 0 deletions bin/_poop
Expand Up @@ -89,5 +89,11 @@ function install_options {
fi
}

function recipe {
local nm_recipe="$1"; shift
set --
source "$shome/recipes/$nm_recipe"
}

_poop_resource=
end
26 changes: 4 additions & 22 deletions libexec/poop
Expand Up @@ -15,28 +15,10 @@ require 'poop'

# entry point
function main {
directory "meh"
mode 0750
end

directory "meh/mon"
mode 0700
end

directory "meh/meh"
end

directory "meh/meh"
action delete
end

directory "meh/mon"
action delete
end

directory "meh"
action delete
end
local nm_recipe
for nm_recipe in "$@"; do
recipe "$nm_recipe"
done
}

# parse the command-line
Expand Down
24 changes: 24 additions & 0 deletions recipes/meh
@@ -0,0 +1,24 @@
#!/bin/bash

directory "meh"
mode 0750
end

directory "meh/mon"
mode 0700
end

directory "meh/meh"
end

directory "meh/meh"
action delete
end

directory "meh/mon"
action delete
end

directory "meh"
action delete
end

0 comments on commit 929e9bc

Please sign in to comment.