Method: CloudMaker::ShellExecutor#to_yaml

Defined in:
lib/cloud_maker/shell_executor.rb

#to_yaml(opts = {}) ⇒ Object



17
18
19
20
21
# File 'lib/cloud_maker/shell_executor.rb', line 17

def to_yaml(opts = {})
  YAML.quick_emit( nil, opts ) { |out|
    out.scalar( "tag:yaml.org,2002:str", execute, :plain )
  }
end