diff options
| author | Joey Hess <joey@kitenet.net> | 2014-03-30 15:31:57 -0400 |
|---|---|---|
| committer | Joey Hess <joey@kitenet.net> | 2014-03-30 15:38:08 -0400 |
| commit | 90efcd3203d64c2c5691e30ccc23307aae8d20c8 (patch) | |
| tree | 183f38a857a81a3cb1a301b94f827f8a807dc961 /Property/GitHome.hs | |
| parent | 8d31a6226ac9e1dfc75ec7521f039a43e749ed82 (diff) | |
refactor
Diffstat (limited to 'Property/GitHome.hs')
| -rw-r--r-- | Property/GitHome.hs | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/Property/GitHome.hs b/Property/GitHome.hs index 09d21326..99402b8e 100644 --- a/Property/GitHome.hs +++ b/Property/GitHome.hs @@ -1,22 +1,13 @@ module Property.GitHome where -import System.FilePath -import System.Directory -import Control.Applicative -import Control.Monad - -import Property -import Property.User -import Utility.SafeCommand -import Utility.Directory -import Utility.Monad -import Utility.Exception +import Common import qualified Property.Apt as Apt +import Property.User {- Clones Joey Hess's git home directory, and runs its fixups script. -} installedFor :: UserName -> Property installedFor user = check (not <$> hasGitDir user) $ - IOProperty ("githome " ++ user) (go =<< homedir user) + Property ("githome " ++ user) (go =<< homedir user) `requires` Apt.installed ["git", "myrepos"] where go Nothing = noChange |
