-- 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.2.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 setup :: ServerType a => a -> IO a name :: ServerType a => a -> ServerName cmd :: ServerType a => a -> FilePath -> [String] -> String -> IO (ExitCode, String, String) data ServerExampleData dat ServerExampleData :: !dat -> !ServerOS -> ServerExampleData dat serverData :: ServerExampleData dat -> !dat serverOS :: ServerExampleData dat -> !ServerOS type ServerExample dat = StateT (ServerExampleData dat) IO type ServerSpec dat = Writer [ServerSpecTree dat] () data ServerSpecTree dat ServerSpecGroup :: String -> [ServerSpecTree dat] -> ServerSpecTree dat ServerSpecItem :: String -> (ServerExample dat ()) -> ServerSpecTree dat class 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 a) module Test.Hspec.Server.Core serverSpecOS :: ServerType dat => dat -> ServerOS -> ServerSpec dat -> Spec serverSpec :: ServerType dat => dat -> ServerSpec dat -> Spec getServerData :: ServerType dat => ServerExample dat dat getServerOS :: ServerExample dat ServerOS it :: ServerType dat => String -> ServerExample dat () -> ServerSpec dat describe :: ServerType dat => String -> ServerSpec dat -> ServerSpec dat includes' :: (ServerType dat, Sets s) => s -> s -> ServerExample dat () includes :: (ServerType dat, Sets s) => ServerExample dat s -> s -> ServerExample dat () module Test.Hspec.Server.ServerType data Localhost Localhost :: Localhost localhost :: Localhost data Ssh Ssh :: String -> Maybe String -> Maybe String -> Maybe Int -> Maybe String -> Ssh sshHostName :: Ssh -> String sshId :: Ssh -> Maybe String sshConf :: Ssh -> Maybe String sshPort :: Ssh -> Maybe Int sshUser :: Ssh -> Maybe String ssh :: String -> Ssh data Vagrant Vagrant :: String -> Maybe String -> Vagrant vHostName :: Vagrant -> String vConf :: Vagrant -> Maybe String 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