Class: Foreman::Thor::Actions::CapturableERB
- Inherits:
-
ERB
- Object
- ERB
- Foreman::Thor::Actions::CapturableERB
- Defined in:
- lib/foreman/vendor/thor/lib/thor/actions/file_manipulation.rb
Overview
Foreman::Thor::Actions#capture depends on what kind of buffer is used in ERB. Thus CapturableERB fixes ERB to use String buffer.
Instance Method Summary collapse
Instance Method Details
#set_eoutvar(compiler, eoutvar = "_erbout") ⇒ Object
319 320 321 322 323 324 |
# File 'lib/foreman/vendor/thor/lib/thor/actions/file_manipulation.rb', line 319 def set_eoutvar(compiler, eoutvar = "_erbout") compiler.put_cmd = "#{eoutvar}.concat" compiler.insert_cmd = "#{eoutvar}.concat" compiler.pre_cmd = ["#{eoutvar} = ''"] compiler.post_cmd = [eoutvar] end |