lib/blower/context.rb
def read (filename, as: user, on: hosts, quiet: false)
      log.info "read: #{filename}", quiet: quiet do
        hash_map(hosts) do |host|
          host.read filename, as: as
        end
      end
    end
# Reads a remote file from each host.
# @param [String] filename The file to read.
# @return [Hash] A hash of +Host+ objects to +Strings+ of the file contents.
# @macro onable
# @macro asable
# @macro quietable
Reads a remote file from each host.
Reads a remote file from each host .
def read (filename, as: user, on: hosts, quiet: false)
      log.info "read: #{filename}", quiet: quiet do
        hash_map(hosts) do |host|
          host.read filename, as: as
        end
      end
    end
def read ( filename , as : user , on : hosts , quiet : false ) log . info "read: #{filename}" , quiet : quiet do hash_map ( hosts ) do | host | host . read filename , as : as end end end
Reads a remote file from each host.
Reads a remote file from each host .
A hash of +Host+ objects to +Strings+ of the file contents.
A hash of + Host + objects to + Strings + of the file contents .
Hash
filename
as
user
on
hosts
quiet
filename The file to read.
filename The file to read .
macro
None
macro
None
macro
None