Method: ChefApply::Action::Base#escape_windows_path
- Defined in:
- lib/chef_apply/action/base.rb
#escape_windows_path(p) ⇒ Object
Trying to perform File or Pathname operations on a Windows path with ‘' characters in it fails. So lets convert them to ’/‘ which these libraries handle better.
105 106 107 108 109 110 |
# File 'lib/chef_apply/action/base.rb', line 105 def escape_windows_path(p) if family == :windows p = p.tr("\\", "/") end p end |