Method: Blower::Context#write
- Defined in:
- lib/blower/context.rb
#write(string, to, as: user, on: hosts, quiet: false, once: nil) ⇒ Object
Writes a string to a file on the host filesystems.
195 196 197 198 199 200 201 202 203 |
# File 'lib/blower/context.rb', line 195 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 |