| Class | Guestfs::Guestfs |
| In: |
lib/boxgrinder-build/helpers/guestfs-helper.rb
lib/boxgrinder-build/helpers/guestfs-helper.rb |
| Parent: | Object |
| sh | -> | sh_original |
# File lib/boxgrinder-build/helpers/guestfs-helper.rb, line 76
76: def redirect(destination)
77: BoxGrinder::SilencerProxy.new(self, destination)
78: end
# File lib/boxgrinder-build/helpers/guestfs-helper.rb, line 76
76: def redirect(destination)
77: BoxGrinder::SilencerProxy.new(self, destination)
78: end
# File lib/boxgrinder-build/helpers/guestfs-helper.rb, line 64
64: def sh(command)
65: begin
66: output = sh_original(command)
67: puts output
68: rescue => e
69: puts "Error occurred while executing above command, aborting."
70: raise e
71: end
72:
73: output
74: end