Module: LxcMonkey::Provider
- Defined in:
- lib/vagabond/cookbooks/lxc/libraries/monkey.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(klass) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/vagabond/cookbooks/lxc/libraries/monkey.rb', line 8 def included(klass) klass.class_eval do alias_method :non_monkey_shell_out!, :shell_out! alias_method :shell_out!, :monkey_shell_out! end end |
Instance Method Details
#monkey_shell_out!(com, opts) ⇒ Object
16 17 18 19 20 21 |
# File 'lib/vagabond/cookbooks/lxc/libraries/monkey.rb', line 16 def monkey_shell_out!(com, opts) if(str = @new_resource.stream_output) opts[:live_stream] = str.kind_of?(IO) ? str : STDOUT end non_monkey_shell_out!(com, opts) end |