summaryrefslogtreecommitdiff
path: root/Types/StandardGroups.hs
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2013-04-26 13:00:14 -0400
committerJoey Hess <joey@kitenet.net>2013-04-26 13:01:06 -0400
commit8603109294e04fedb3fd0735c3cd0422559a8c81 (patch)
tree0173eca7de9c544e05a02e424cb6108ac302e43b /Types/StandardGroups.hs
parent867cba52a069fe2ae84a1e94b6cbde18b0490d7a (diff)
allow configuring the preferreddir
Diffstat (limited to 'Types/StandardGroups.hs')
-rw-r--r--Types/StandardGroups.hs34
1 files changed, 17 insertions, 17 deletions
diff --git a/Types/StandardGroups.hs b/Types/StandardGroups.hs
index e7764d3871..30b8822820 100644
--- a/Types/StandardGroups.hs
+++ b/Types/StandardGroups.hs
@@ -50,25 +50,25 @@ toStandardGroup "public" = Just PublicGroup
toStandardGroup "unwanted" = Just UnwantedGroup
toStandardGroup _ = Nothing
-descStandardGroup :: Maybe RemoteConfig -> StandardGroup -> String
-descStandardGroup _ ClientGroup = "client: a repository on your computer"
-descStandardGroup _ TransferGroup = "transfer: distributes files to clients"
-descStandardGroup _ BackupGroup = "full backup: backs up all files"
-descStandardGroup _ IncrementalBackupGroup = "incremental backup: backs up files not backed up elsewhere"
-descStandardGroup _ SmallArchiveGroup = "small archive: archives files located in \"archive\" directories"
-descStandardGroup _ FullArchiveGroup = "full archive: archives all files not archived elsewhere"
-descStandardGroup _ SourceGroup = "file source: moves files on to other repositories"
-descStandardGroup _ ManualGroup = "manual mode: only stores files you manually choose"
-descStandardGroup _ UnwantedGroup = "unwanted: remove content from this repository"
-descStandardGroup c PublicGroup = "public: only stores files located in \"" ++ fromJust (specialDirectory c PublicGroup) ++ "\" directories"
+descStandardGroup :: StandardGroup -> String
+descStandardGroup ClientGroup = "client: a repository on your computer"
+descStandardGroup TransferGroup = "transfer: distributes files to clients"
+descStandardGroup BackupGroup = "full backup: backs up all files"
+descStandardGroup IncrementalBackupGroup = "incremental backup: backs up files not backed up elsewhere"
+descStandardGroup SmallArchiveGroup = "small archive: archives files located in \"archive\" directories"
+descStandardGroup FullArchiveGroup = "full archive: archives all files not archived elsewhere"
+descStandardGroup SourceGroup = "file source: moves files on to other repositories"
+descStandardGroup ManualGroup = "manual mode: only stores files you manually choose"
+descStandardGroup UnwantedGroup = "unwanted: remove content from this repository"
+descStandardGroup PublicGroup = "public: publishes files located in an associated directory"
-specialDirectory :: Maybe RemoteConfig -> StandardGroup -> Maybe FilePath
-specialDirectory _ SmallArchiveGroup = Just "archive"
-specialDirectory _ FullArchiveGroup = Just "archive"
-specialDirectory (Just c) PublicGroup = Just $
+associatedDirectory :: Maybe RemoteConfig -> StandardGroup -> Maybe FilePath
+associatedDirectory _ SmallArchiveGroup = Just "archive"
+associatedDirectory _ FullArchiveGroup = Just "archive"
+associatedDirectory (Just c) PublicGroup = Just $
fromMaybe "public" $ M.lookup "preferreddir" c
-specialDirectory Nothing PublicGroup = Just "public"
-specialDirectory _ _ = Nothing
+associatedDirectory Nothing PublicGroup = Just "public"
+associatedDirectory _ _ = Nothing
{- See doc/preferred_content.mdwn for explanations of these expressions. -}
preferredContent :: StandardGroup -> String