Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 15 additions & 16 deletions luatest/cluster.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,24 @@
-- server:exec(<...>)
-- end)
--
-- After setting up a cluster object the following methods could
-- be used to interact with it:
-- -- After setting up a cluster object the following methods
-- -- could be used to interact with it:
-- -- * :start() Startup the cluster.
-- -- * :start_instance() Startup a specific instance.
-- -- * :stop() Stop the cluster.
-- -- * :each() Execute a function on each instance.
-- -- * :size() get an amount of instances
-- -- * :drop() Drop the cluster.
-- -- * :sync() Sync the configuration and collect a new set of
-- -- instances
-- -- * :reload() Reload the configuration.
--
-- * :start() Startup the cluster.
-- * :start_instance() Startup a specific instance.
-- * :stop() Stop the cluster.
-- * :each() Execute a function on each instance.
-- * :size() get an amount of instances
-- * :drop() Drop the cluster.
-- * :sync() Sync the configuration and collect a new set of
-- instances
-- * :reload() Reload the configuration.
-- -- The module can also be used for testing failure startup
-- -- cases:
--
-- The module can also be used for testing failure startup
-- cases:
-- Cluster.startup_error(config, "something went wrong")
Comment on lines +16 to +31
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't it be just a prose text? IOW, can we break the @usage section or move it upward?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or eliminate usage of the @usage section and just mark code blocks my myself?

--
-- Cluster:startup_error(config, error_message)
--
-- @module luatest.cluster
-- @classmod luatest.cluster

local fun = require('fun')
local yaml = require('yaml')
Expand Down