lib/blower/context.rb
# Execute a shell command on each host
# @macro onable
# @macro asable
# @macro quietable
# @macro onceable
Execute a shell command on each host
Execute a shell command on each host
def sh (command, as: user, on: hosts, quiet: false, once: nil)
      self.once once, quiet: quiet do
        log.info "sh: #{command}", quiet: quiet do
          hash_map(hosts) do |host|
            host.sh command, as: as, quiet: quiet
          end
        end
      end
    end
def sh ( command , as : user , on : hosts , quiet : false , once : nil ) self . once once , quiet : quiet do log . info "sh: #{command}" , quiet : quiet do hash_map ( hosts ) do | host | host . sh command , as : as , quiet : quiet end end end end
Execute a shell command on each host
Execute a shell command on each host
command
<not_specific>
as
<not_specific>
user
<not_specific>
on
<not_specific>
hosts
<not_specific>
quiet
<not_specific>
once
<not_specific>
macro
None
macro
None
macro
None
macro
None