Class: Blower::Context::HostHash
Instance Method Summary collapse
Instance Method Details
#stash(key) ⇒ Object
276 277 278 279 280 |
# File 'lib/blower/context.rb', line 276 def stash (key) each do |host, data| host[key] = data.strip end end |
#to_s ⇒ Object
270 271 272 273 274 |
# File 'lib/blower/context.rb', line 270 def to_s map do |host, data| "#{host.name.blue} (#{host.address.green})\n" + data.strip.to_s.gsub(/^/, " ") end.join("\n") end |