Permalink
Browse files

put shell options into separate file

  • Loading branch information...
defn committed Oct 10, 2012
1 parent 352d832 commit 4ae4123631a6b441fa42226cdbee280cc991087c
Showing with 16 additions and 14 deletions.
  1. +1 −14 bin/_poop
  2. +15 −0 lib/_shell
View
@@ -1,19 +1,5 @@
#!/bin/bash
-function install_options {
- if [[ -n "$_poop_mode" ]]; then
- echo -n "-m $_poop_mode "
- fi
-
- if [[ -n "$_poop_owner" ]]; then
- echo -n "-o $_poop_owner"
- fi
-
- if [[ -n "$_poop_group" ]]; then
- echo -n "-g $_poop_group"
- fi
-}
-
function recipe {
local nm_recipe="$1"; shift
set --
@@ -23,5 +9,6 @@ function recipe {
require 'poop/attributes'
require 'poop/directory'
require 'poop/template'
+require 'poop/shell'
end
View
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+function install_options {
+ if [[ -n "$_poop_mode" ]]; then
+ echo -n "-m $_poop_mode "
+ fi
+
+ if [[ -n "$_poop_owner" ]]; then
+ echo -n "-o $_poop_owner"
+ fi
+
+ if [[ -n "$_poop_group" ]]; then
+ echo -n "-g $_poop_group"
+ fi
+}

0 comments on commit 4ae4123

Please sign in to comment.