Class: Bosh::Cli::YamlHelper

Inherits:
Object
  • Object
show all
Defined in:
lib/cli/yaml_helper.rb

Class Method Summary collapse

Class Method Details

.check_duplicate_keys(yaml_str) ⇒ Object



47
48
49
50
# File 'lib/cli/yaml_helper.rb', line 47

def check_duplicate_keys(yaml_str)
  document = Psych.parse(yaml_str)
  process_mapping(document.root) if document
end