Class: Proxy::AnsibleDirector::Helpers::AnsibleNavigatorHelpers
- Inherits:
-
Object
- Object
- Proxy::AnsibleDirector::Helpers::AnsibleNavigatorHelpers
- Defined in:
- lib/smart_proxy_ansible_director/helpers/ansible_navigator_helpers.rb
Class Method Summary collapse
- .reserialize_execution_environment(execution_environment_json) ⇒ Object
- .reserialize_inventory(inventory_json) ⇒ Object
- .reserialize_playbook(playbook_json) ⇒ Object
Class Method Details
.reserialize_execution_environment(execution_environment_json) ⇒ Object
16 17 18 |
# File 'lib/smart_proxy_ansible_director/helpers/ansible_navigator_helpers.rb', line 16 def reserialize_execution_environment(execution_environment_json) YAML.dump(JSON.parse(execution_environment_json.to_h.to_json)) end |
.reserialize_inventory(inventory_json) ⇒ Object
8 9 10 |
# File 'lib/smart_proxy_ansible_director/helpers/ansible_navigator_helpers.rb', line 8 def reserialize_inventory(inventory_json) YAML.dump(JSON.parse(inventory_json.to_h.to_json)) end |
.reserialize_playbook(playbook_json) ⇒ Object
12 13 14 |
# File 'lib/smart_proxy_ansible_director/helpers/ansible_navigator_helpers.rb', line 12 def reserialize_playbook(playbook_json) YAML.dump(JSON.parse(playbook_json.to_json)) end |