lib/blower/context.rb
def write (string, to, as: user, on: hosts, quiet: false, once: nil)
      self.once once, quiet: quiet do
        log.info "write: #{string.bytesize} bytes -> #{to}", quiet: quiet do
          hash_map(hosts) do |host|
            host.write string, to, as: as, quiet: quiet
          end
        end
      end
    end
def write (string, to, as: user, on: hosts, quiet: false, once: nil)
      self.once once, quiet: quiet do
        log.info "write: #{string.bytesize} bytes -> #{to}", quiet: quiet do
          hash_map(hosts) do |host|
            host.write string, to, as: as, quiet: quiet
          end
        end
      end
    end
def write ( string , to , as : user , on : hosts , quiet : false , once : nil ) self . once once , quiet : quiet do log . info "write: #{string.bytesize} bytes -> #{to}" , quiet : quiet do hash_map ( hosts ) do | host | host . write string , to , as : as , quiet : quiet end end end end
Writes a string to a file on the host filesystems.
 @param [String] string The string to write.
 @param [String] to The file name to write the string to.
 @macro onable
 @macro asable
 @macro quietable
 @macro onceable
Writes a string to a file on the host filesystems .