| 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 80
80: def redirect(destination)
81: BoxGrinder::SilencerProxy.new(self, destination)
82: end
# File lib/boxgrinder-build/helpers/guestfs-helper.rb, line 80
80: def redirect(destination)
81: BoxGrinder::SilencerProxy.new(self, destination)
82: end
# File lib/boxgrinder-build/helpers/guestfs-helper.rb, line 68
68: def sh(command)
69: begin
70: output = sh_original(command)
71: puts output
72: rescue => e
73: puts "Error occurred while executing above command, aborting."
74: raise e
75: end
76:
77: output
78: end