-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Test Framework for Server's status -- -- Hspec-Server is test framework for checking server's status. It is -- inspired by the Ruby library ServerSpec. @package hspec-server @version 0.3.0 module Test.Hspec.Server.Type data ServerOS Ubuntu :: String -> ServerOS Debian :: String -> ServerOS CentOS :: String -> ServerOS Fedora :: String -> ServerOS Redhat :: String -> ServerOS LinuxOther :: String -> ServerOS FreeBSD :: String -> ServerOS MacOS :: String -> ServerOS Windows :: String -> ServerOS OtherOS :: String -> ServerOS AutoDetect :: ServerOS type ServerName = String class ServerType a stSetup :: ServerType a => a -> IO a stOS :: ServerType a => a -> Maybe ServerOS stName :: ServerType a => a -> ServerName stCmd :: ServerType a => a -> FilePath -> [String] -> String -> IO (ExitCode, String, String) type ServerExample dat = ReaderT dat IO with :: ServerType dat => dat -> SpecWith dat -> Spec class (Eq a, Show a) => Sets a include :: Sets a => a -> a -> Bool data ServerStatus SAnd :: (Set ServerStatus) -> ServerStatus Installed :: ServerStatus Enabled :: ServerStatus Running :: ServerStatus Listening :: ServerStatus None :: ServerStatus data CommandStatus CAnd :: (Set CommandStatus) -> CommandStatus Exit :: Int -> CommandStatus Stdout :: String -> CommandStatus Stderr :: String -> CommandStatus CNone :: CommandStatus getStdout :: CommandStatus -> Maybe String getStderr :: CommandStatus -> Maybe String detectOS :: ServerType dat => dat -> IO (Maybe ServerOS) detectLinux :: ServerType dat => dat -> IO (Maybe ServerOS) instance Show ServerOS instance Eq ServerOS instance Show ServerStatus instance Ord ServerStatus instance Eq ServerStatus instance Show CommandStatus instance Ord CommandStatus instance Eq CommandStatus instance Sets CommandStatus instance Sets ServerStatus instance Monoid CommandStatus instance Monoid ServerStatus instance ServerType dat => Example (ServerExample dat ()) module Test.Hspec.Server.Core getServerData :: ServerType dat => ServerExample dat dat getServerOS :: ServerType dat => ServerExample dat (Maybe ServerOS) includes' :: (ServerType dat, Sets s) => s -> s -> ServerExample dat () includes :: (ServerType dat, Sets s) => ServerExample dat s -> s -> ServerExample dat () (@>=) :: (ServerType dat, Sets s) => ServerExample dat s -> s -> ServerExample dat () (@==) :: (ServerType dat, Sets s) => ServerExample dat s -> s -> ServerExample dat () module Test.Hspec.Server.ServerType data Localhost Localhost :: !(Maybe ServerOS) -> Localhost lOS :: Localhost -> !(Maybe ServerOS) localhost :: Localhost data Ssh Ssh :: String -> Maybe String -> Maybe String -> Maybe Int -> Maybe String -> !(Maybe ServerOS) -> Ssh sshHostName :: Ssh -> String sshId :: Ssh -> Maybe String sshConf :: Ssh -> Maybe String sshPort :: Ssh -> Maybe Int sshUser :: Ssh -> Maybe String sshOS :: Ssh -> !(Maybe ServerOS) ssh :: String -> Ssh data Vagrant Vagrant :: String -> Maybe String -> !(Maybe ServerOS) -> Vagrant vHostName :: Vagrant -> String vConf :: Vagrant -> Maybe String vOS :: Vagrant -> !(Maybe ServerOS) vagrant :: String -> Vagrant instance Show Localhost instance Eq Localhost instance Show Ssh instance Eq Ssh instance Show Vagrant instance Eq Vagrant instance ServerType Vagrant instance ServerType Ssh instance ServerType Localhost module Test.Hspec.Server.Command package :: ServerType dat => String -> ServerExample dat ServerStatus process :: ServerType dat => String -> ServerExample dat ServerStatus service :: ServerType dat => String -> ServerExample dat ServerStatus port :: ServerType dat => Int -> ServerExample dat ServerStatus command :: ServerType dat => FilePath -> [String] -> String -> ServerExample dat CommandStatus module Test.Hspec.Server