0.01
No commit activity in last 3 years
No release in over 3 years
`knife batch` is a wonderful little plugin for executing commands a la `knife ssh`, but doing it in groups of `n` with a sleep between execution iterations.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 11, ~> 12
 Project Readme

knife batch

knife batch is a wonderful little plugin for executing commands a la knife ssh, but doing it in groups of n with a sleep between execution iterations.

Installation

gem install knife-batch

Usage

knife batch works exactly like knife ssh but with a couple of additional options. knife batch "role:cluster" "whoami" -B 10 -W 5 will execute whoami against 10 servers with a sleep of 5 seconds in between.

-B INTEGER defines how many servers at max will be batched. -W INTEGER defines the time to sleep in between executions.