diff options
| author | Joey Hess <joeyh@joeyh.name> | 2014-12-14 16:14:05 -0400 |
|---|---|---|
| committer | Joey Hess <joeyh@joeyh.name> | 2014-12-14 16:14:05 -0400 |
| commit | 23399416f1ba89894f65f61b436c2b0f8378e6c5 (patch) | |
| tree | 161b0d4bcf18cd7fb9bf58a7a7089b868dad2777 /src/Propellor/Property/Docker.hs | |
| parent | 71723ca09f369ccf96462cef1e0200e1615677d1 (diff) | |
broke up big function to describe PrivDataField
Diffstat (limited to 'src/Propellor/Property/Docker.hs')
| -rw-r--r-- | src/Propellor/Property/Docker.hs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Propellor/Property/Docker.hs b/src/Propellor/Property/Docker.hs index 2c8af413..b48afbbb 100644 --- a/src/Propellor/Property/Docker.hs +++ b/src/Propellor/Property/Docker.hs @@ -63,9 +63,11 @@ installed = Apt.installed ["docker.io"] configured :: Property configured = prop `requires` installed where - prop = withPrivData DockerAuthentication anyContext $ \getcfg -> + prop = withPrivData src anyContext $ \getcfg -> property "docker configured" $ getcfg $ \cfg -> ensureProperty $ "/root/.dockercfg" `File.hasContent` (lines cfg) + src = PrivDataSourceFileFromCommand DockerAuthentication + "/root/.dockercfg" "docker login" -- | A short descriptive name for a container. -- Should not contain whitespace or other unusual characters, |
