propellor spin
This commit is contained in:
parent
5c814d3780
commit
3690257a9c
|
@ -81,7 +81,7 @@ spin host = do
|
||||||
|
|
||||||
-- Display remaining output.
|
-- Display remaining output.
|
||||||
void $ tryIO $ forever $
|
void $ tryIO $ forever $
|
||||||
putStrLn =<< hGetLine fromh
|
showremote =<< hGetLine fromh
|
||||||
hClose fromh
|
hClose fromh
|
||||||
|
|
||||||
where
|
where
|
||||||
|
@ -104,9 +104,10 @@ spin host = do
|
||||||
l <- hGetLine h
|
l <- hGetLine h
|
||||||
case readish =<< fromMarked statusMarker l of
|
case readish =<< fromMarked statusMarker l of
|
||||||
Nothing -> do
|
Nothing -> do
|
||||||
putStrLn l
|
showremote l
|
||||||
getstatus h
|
getstatus h
|
||||||
Just status -> return status
|
Just status -> return status
|
||||||
|
showremote s = putStrLn $ host ++ ": " ++ s
|
||||||
|
|
||||||
data BootStrapStatus = HaveKeyRing | NeedKeyRing
|
data BootStrapStatus = HaveKeyRing | NeedKeyRing
|
||||||
deriving (Read, Show, Eq)
|
deriving (Read, Show, Eq)
|
||||||
|
|
Loading…
Reference in New Issue