Sha256: f8cb06d52609b3896379ce7490fdce6e48762899f5a29ede0aff1230858e2eff
Contents?: true
Size: 267 Bytes
Versions: 49
Compression:
Stored size: 267 Bytes
Contents
module PEBuild module OnMachine def on_machine(machine, cmd) machine.communicate.sudo(cmd) do |type, data| color = (type == :stdout) ? :green : :red machine.ui.info(data.chomp, :color => color, :prefix => true) end end end end
Version data entries
49 entries across 49 versions & 1 rubygems