Method: Beaker::Options::HostsFileParser.parse_hosts_string
- Defined in:
- lib/beaker/options/hosts_file_parser.rb
.parse_hosts_string(hosts_def_yaml = nil) ⇒ OptionsHash
Read the contents of a host definition as a string into an OptionsHash
58 59 60 61 62 63 64 65 66 67 68 69 |
# File 'lib/beaker/options/hosts_file_parser.rb', line 58 def self.parse_hosts_string(hosts_def_yaml = nil) require 'erb' = return unless hosts_def_yaml = "#{hosts_def_yaml}\nis not a valid YAML string\n\t" = self.merge_hosts_yaml(, ) do process_yaml(hosts_def_yaml, binding) end fix_roles_array() end |